]>
Commit | Line | Data |
---|---|---|
8efc0c15 | 1 | /* |
5260325f | 2 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
5260325f | 3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
4 | * All rights reserved | |
6ae2364d | 5 | * |
bcbf86ec | 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". | |
5260325f | 11 | */ |
8efc0c15 | 12 | |
255cabd9 | 13 | /* RCSID("$OpenBSD: bufaux.h,v 1.13 2001/06/26 17:27:22 markus Exp $"); */ |
8efc0c15 | 14 | |
15 | #ifndef BUFAUX_H | |
16 | #define BUFAUX_H | |
17 | ||
18 | #include "buffer.h" | |
42f11eb2 | 19 | #include <openssl/bn.h> |
8efc0c15 | 20 | |
2a1e4639 | 21 | void buffer_put_bignum(Buffer *, BIGNUM *); |
22 | void buffer_put_bignum2(Buffer *, BIGNUM *); | |
8efc0c15 | 23 | |
2a1e4639 | 24 | int buffer_get_bignum(Buffer *, BIGNUM *); |
25 | int buffer_get_bignum2(Buffer *, BIGNUM *); | |
8efc0c15 | 26 | |
2a1e4639 | 27 | u_int buffer_get_int(Buffer *); |
2a1e4639 | 28 | void buffer_put_int(Buffer *, u_int); |
255cabd9 | 29 | |
afecff1d | 30 | #ifdef HAVE_U_INT64_T |
255cabd9 | 31 | u_int64_t buffer_get_int64(Buffer *); |
2a1e4639 | 32 | void buffer_put_int64(Buffer *, u_int64_t); |
afecff1d | 33 | #endif |
8efc0c15 | 34 | |
2a1e4639 | 35 | int buffer_get_char(Buffer *); |
8efc0c15 | 36 | |
2a1e4639 | 37 | void buffer_put_char(Buffer *, int); |
8efc0c15 | 38 | |
2a1e4639 | 39 | char *buffer_get_string(Buffer *, u_int *); |
8efc0c15 | 40 | |
2a1e4639 | 41 | void buffer_put_string(Buffer *, const void *, u_int); |
42 | void buffer_put_cstring(Buffer *, const char *); | |
8efc0c15 | 43 | |
5260325f | 44 | #endif /* BUFAUX_H */ |