]> andersk Git - openssh.git/blob - bufaux.h
- markus@cvs.openbsd.org 2002/02/11 16:19:39
[openssh.git] / bufaux.h
1 /*
2  * Author: Tatu Ylonen <ylo@cs.hut.fi>
3  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4  *                    All rights reserved
5  *
6  * As far as I am concerned, the code I have written for this software
7  * can be used freely for any purpose.  Any derived versions of this
8  * software must be clearly marked as such, and if the derived work is
9  * incompatible with the protocol description in the RFC file, it must be
10  * called by a name other than "ssh" or "Secure Shell".
11  */
12
13 /* RCSID("$OpenBSD: bufaux.h,v 1.15 2001/12/28 14:13:13 markus Exp $"); */
14
15 #ifndef BUFAUX_H
16 #define BUFAUX_H
17
18 #include "buffer.h"
19 #include <openssl/bn.h>
20
21 void    buffer_put_bignum(Buffer *, BIGNUM *);
22 void    buffer_put_bignum2(Buffer *, BIGNUM *);
23 void    buffer_get_bignum(Buffer *, BIGNUM *);
24 void    buffer_get_bignum2(Buffer *, BIGNUM *);
25
26 u_int buffer_get_int(Buffer *);
27 void    buffer_put_int(Buffer *, u_int);
28
29 #ifdef HAVE_U_INT64_T
30 u_int64_t buffer_get_int64(Buffer *);
31 void    buffer_put_int64(Buffer *, u_int64_t);
32 #endif
33
34 int     buffer_get_char(Buffer *);
35
36 void    buffer_put_char(Buffer *, int);
37
38 void   *buffer_get_string(Buffer *, u_int *);
39
40 void    buffer_put_string(Buffer *, const void *, u_int);
41 void    buffer_put_cstring(Buffer *, const char *);
42
43 #endif                          /* BUFAUX_H */
This page took 0.036433 seconds and 5 git commands to generate.