From: Pekka Riikonen Date: Tue, 26 Mar 2002 18:30:42 +0000 (+0000) Subject: comment updates X-Git-Tag: silc.client.0.8.4~5 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=517c26a90223f5d5d7908c4285ab333d4ae09029 comment updates --- diff --git a/lib/silccore/silcpacket.h b/lib/silccore/silcpacket.h index 669a4e89..e3c4b6ea 100644 --- a/lib/silccore/silcpacket.h +++ b/lib/silccore/silcpacket.h @@ -449,7 +449,9 @@ void silc_packet_encrypt(SilcCipher cipher, SilcHmac hmac, SilcUInt32 sequence, * `assembled_packet' pointer sent by the caller. The `assembled_packet' * is a reference to the socket connection's outgoing buffer. The * returned packet can be encrypted, and then sent to network by calling - * silc_packet_send function. + * silc_packet_send function. The `assembled_packet' may be freely + * modified (like encrypted etc.) but it must not be freed, since it is + * reference from `sock' outgoing buffer, and it is const. * ***/ bool silc_packet_assemble(SilcPacketContext *packet, SilcRng rng, @@ -481,7 +483,9 @@ bool silc_packet_assemble(SilcPacketContext *packet, SilcRng rng, * This returns the prepared data area into the `packet' pointer provided * caller, which can be used then to add data to it, and later encrypt * it. The `packet' includes reference to the socket connection's - * outgoing buffer. + * outgoing buffer. The `packet' may be freely modified (like + * encrypted etc.) but it must not be freed, since it is reference from + * `sock' outgoing buffer, and it is const. * ***/ bool silc_packet_send_prepare(SilcSocketConnection sock,