5 Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
7 Copyright (C) 1997 - 2001 Pekka Riikonen
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
24 /* Forward declaration of the Private Message Payload. */
25 typedef struct SilcPrivateMessagePayloadStruct *SilcPrivateMessagePayload;
29 SilcPrivateMessagePayload
30 silc_private_message_payload_parse(SilcBuffer buffer, SilcCipher cipher);
31 SilcBuffer silc_private_message_payload_encode(unsigned int nickname_len,
32 unsigned char *nickname,
34 unsigned short data_len,
37 void silc_private_message_payload_free(SilcPrivateMessagePayload payload);
39 silc_private_message_get_nickname(SilcPrivateMessagePayload payload,
40 unsigned int *nickname_len);
42 silc_private_message_get_message(SilcPrivateMessagePayload payload,
43 unsigned int *message_len);
45 silc_private_message_get_flags(SilcPrivateMessagePayload payload);