X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcprivate.h;h=e5da22eab400bee1672536f7b75df2d24feb1234;hb=a818c5b5411bbc4436d1c5f011236985c96bb787;hp=0f274f2439962970689e4f0efeec85deaf94fc4c;hpb=89329650d986e09749d9c6a039797aaccfb30f27;p=silc.git diff --git a/lib/silccore/silcprivate.h b/lib/silccore/silcprivate.h index 0f274f24..e5da22ea 100644 --- a/lib/silccore/silcprivate.h +++ b/lib/silccore/silcprivate.h @@ -1,24 +1,24 @@ -/****h* silccore/silcprivate.h - * - * NAME - * - * silcprivate.h - * - * COPYRIGHT - * - * Author: Pekka Riikonen - * - * Copyright (C) 1997 - 2001 Pekka Riikonen - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. +/* + + silcprivate.h + + Author: Pekka Riikonen + + Copyright (C) 1997 - 2001 Pekka Riikonen + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + +*/ + +/****h* silccore/SilcPrivateAPI * * DESCRIPTION * @@ -55,7 +55,9 @@ typedef struct SilcPrivateMessagePayloadStruct *SilcPrivateMessagePayload; * SYNOPSIS * * SilcPrivateMessagePayload - * silc_private_message_payload_parse(SilcBuffer buffer, SilcCipher cipher); + * silc_private_message_payload_parse(unsigned char *payload, + * SilcUInt32 payload_len, + * SilcCipher cipher); * * DESCRIPTION * @@ -64,15 +66,17 @@ typedef struct SilcPrivateMessagePayloadStruct *SilcPrivateMessagePayload; * ***/ SilcPrivateMessagePayload -silc_private_message_payload_parse(SilcBuffer buffer, SilcCipher cipher); +silc_private_message_payload_parse(unsigned char *payload, + SilcUInt32 payload_len, + SilcCipher cipher); /****f* silccore/SilcPrivateAPI/silc_private_message_payload_encode * * SYNOPSIS * - * SilcBuffer silc_private_message_payload_encode(uint16 flags, - * uint16 data_len, - * unsigned char *data, + * SilcBuffer silc_private_message_payload_encode(SilcUInt16 flags, + * SilcUInt16 data_len, + * const unsigned char *data, * SilcCipher cipher); * * DESCRIPTION @@ -82,9 +86,9 @@ silc_private_message_payload_parse(SilcBuffer buffer, SilcCipher cipher); * if the private message private keys are used. * ***/ -SilcBuffer silc_private_message_payload_encode(uint16 flags, - uint16 data_len, - unsigned char *data, +SilcBuffer silc_private_message_payload_encode(SilcUInt16 flags, + SilcUInt16 data_len, + const unsigned char *data, SilcCipher cipher); /****f* silccore/SilcPrivateAPI/silc_private_message_payload_free @@ -105,7 +109,7 @@ void silc_private_message_payload_free(SilcPrivateMessagePayload payload); * * SYNOPSIS * - * uint16 + * SilcUInt16 * silc_private_message_get_flags(SilcPrivateMessagePayload payload); * * DESCRIPTION @@ -115,7 +119,7 @@ void silc_private_message_payload_free(SilcPrivateMessagePayload payload); * channel message flags. * ***/ -uint16 +SilcUInt16 silc_private_message_get_flags(SilcPrivateMessagePayload payload); /****f* silccore/SilcPrivateAPI/silc_private_message_get_message @@ -124,7 +128,7 @@ silc_private_message_get_flags(SilcPrivateMessagePayload payload); * * unsigned char * * silc_private_message_get_nickname(SilcPrivateMessagePayload payload, - * uint32 *nickname_len); + * SilcUInt32 *nickname_len); * * DESCRIPTION * @@ -133,6 +137,6 @@ silc_private_message_get_flags(SilcPrivateMessagePayload payload); ***/ unsigned char * silc_private_message_get_message(SilcPrivateMessagePayload payload, - uint32 *message_len); + SilcUInt32 *message_len); #endif