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

Annotation of src/usr.bin/ssh/bufaux.h, Revision 1.17.2.3

1.17.2.1  jason       1: /*     $OpenBSD: bufaux.h,v 1.18 2002/04/20 09:14:58 markus Exp $      */
1.16      stevesk     2:
1.1       deraadt     3: /*
1.3       deraadt     4:  * Author: Tatu Ylonen <ylo@cs.hut.fi>
                      5:  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
                      6:  *                    All rights reserved
1.6       markus      7:  *
1.8       deraadt     8:  * As far as I am concerned, the code I have written for this software
                      9:  * can be used freely for any purpose.  Any derived versions of this
                     10:  * software must be clearly marked as such, and if the derived work is
                     11:  * incompatible with the protocol description in the RFC file, it must be
                     12:  * called by a name other than "ssh" or "Secure Shell".
1.3       deraadt    13:  */
1.1       deraadt    14:
                     15: #ifndef BUFAUX_H
                     16: #define BUFAUX_H
                     17:
                     18: #include "buffer.h"
1.11      markus     19: #include <openssl/bn.h>
1.1       deraadt    20:
1.12      itojun     21: void    buffer_put_bignum(Buffer *, BIGNUM *);
                     22: void    buffer_put_bignum2(Buffer *, BIGNUM *);
1.15      markus     23: void   buffer_get_bignum(Buffer *, BIGNUM *);
                     24: void   buffer_get_bignum2(Buffer *, BIGNUM *);
1.17.2.1  jason      25:
                     26: u_short        buffer_get_short(Buffer *);
                     27: void   buffer_put_short(Buffer *, u_short);
1.1       deraadt    28:
1.13      markus     29: u_int  buffer_get_int(Buffer *);
                     30: void    buffer_put_int(Buffer *, u_int);
                     31:
1.12      itojun     32: u_int64_t buffer_get_int64(Buffer *);
                     33: void   buffer_put_int64(Buffer *, u_int64_t);
1.1       deraadt    34:
1.12      itojun     35: int     buffer_get_char(Buffer *);
                     36: void    buffer_put_char(Buffer *, int);
1.1       deraadt    37:
1.14      stevesk    38: void   *buffer_get_string(Buffer *, u_int *);
1.12      itojun     39: void    buffer_put_string(Buffer *, const void *, u_int);
                     40: void   buffer_put_cstring(Buffer *, const char *);
1.17      provos     41:
                     42: #define buffer_skip_string(b) \
                     43:     do { u_int l = buffer_get_int(b); buffer_consume(b, l); } while(0)
1.1       deraadt    44:
1.3       deraadt    45: #endif                         /* BUFAUX_H */