[BACK]Return to bufaux.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/bufaux.h between version 1.3 and 1.4

version 1.3, 1999/11/24 00:26:01 version 1.4, 1999/11/24 19:53:44
Line 18 
Line 18 
   
 #include "buffer.h"  #include "buffer.h"
   
 /* Stores an BIGNUM in the buffer with a 2-byte msb first bit count, followed  /*
    by (bits+7)/8 bytes of binary data, msb first. */   * Stores an BIGNUM in the buffer with a 2-byte msb first bit count, followed
    * by (bits+7)/8 bytes of binary data, msb first.
    */
 void    buffer_put_bignum(Buffer * buffer, BIGNUM * value);  void    buffer_put_bignum(Buffer * buffer, BIGNUM * value);
   
 /* Retrieves an BIGNUM from the buffer. */  /* Retrieves an BIGNUM from the buffer. */
Line 37 
Line 39 
 /* Stores a character in the buffer. */  /* Stores a character in the buffer. */
 void    buffer_put_char(Buffer * buffer, int value);  void    buffer_put_char(Buffer * buffer, int value);
   
 /* Returns an arbitrary binary string from the buffer.  The string cannot  /*
    be longer than 256k.  The returned value points to memory allocated   * Returns an arbitrary binary string from the buffer.  The string cannot be
    with xmalloc; it is the responsibility of the calling function to free   * longer than 256k.  The returned value points to memory allocated with
    the data.  If length_ptr is non-NULL, the length of the returned data   * xmalloc; it is the responsibility of the calling function to free the
    will be stored there.  A null character will be automatically appended   * data.  If length_ptr is non-NULL, the length of the returned data will be
    to the returned string, and is not counted in length. */   * stored there.  A null character will be automatically appended to the
    * returned string, and is not counted in length.
    */
 char   *buffer_get_string(Buffer * buffer, unsigned int *length_ptr);  char   *buffer_get_string(Buffer * buffer, unsigned int *length_ptr);
   
 /* Stores and arbitrary binary string in the buffer. */  /* Stores and arbitrary binary string in the buffer. */

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4