X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcpubkey.h;h=510c04726335721695d7830be62cc989b4b56c22;hb=HEAD;hp=4bf004b9c7469e97ef52bd0a8eccff11ff0bd2db;hpb=8fd8212bcd16f2b53fbedff2a9b9a4e8c15b9695;p=silc.git diff --git a/lib/silccore/silcpubkey.h b/lib/silccore/silcpubkey.h index 4bf004b9..510c0472 100644 --- a/lib/silccore/silcpubkey.h +++ b/lib/silccore/silcpubkey.h @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 2005 Pekka Riikonen + Copyright (C) 2005 - 2007 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 @@ -34,7 +34,8 @@ * * SYNOPSIS * - * SilcBool silc_public_key_payload_encode(SilcPublicKey public_key); + * SilcBuffer silc_public_key_payload_encode(SilcStack stack, + * SilcPublicKey public_key); * * DESCRIPTION * @@ -42,8 +43,13 @@ * `public_key'. Returns the allocated and encoded payload buffer, * or NULL on error. * + * If `stack' is non-NULL the returned buffer is allocated from `stack'. + * This call will consume the `stack' so caller should push the stack + * before calling and then later pop it. + * ***/ -SilcBuffer silc_public_key_payload_encode(SilcPublicKey public_key); +SilcBuffer silc_public_key_payload_encode(SilcStack stack, + SilcPublicKey public_key); /****f* silccore/SilcPubKeyAPI/silc_public_key_payload_decode *