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

Diff for /src/usr.bin/ssh/sshbuf.h between version 1.7 and 1.8

version 1.7, 2016/05/02 08:49:03 version 1.8, 2016/11/25 23:22:04
Line 135 
Line 135 
 int     sshbuf_check_reserve(const struct sshbuf *buf, size_t len);  int     sshbuf_check_reserve(const struct sshbuf *buf, size_t len);
   
 /*  /*
    * Preallocates len additional bytes in buf.
    * Useful for cases where the caller knows how many bytes will ultimately be
    * required to avoid realloc in the buffer code.
    * Returns 0 on success, or a negative SSH_ERR_* error code on failure.
    */
   int     sshbuf_allocate(struct sshbuf *buf, size_t len);
   
   /*
  * Reserve len bytes in buf.   * Reserve len bytes in buf.
  * Returns 0 on success and a pointer to the first reserved byte via the   * Returns 0 on success and a pointer to the first reserved byte via the
  * optional dpp parameter or a negative * SSH_ERR_* error code on failure.   * optional dpp parameter or a negative * SSH_ERR_* error code on failure.

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8