]> andersk Git - openssh.git/blame - bufaux.h
- jakob@cvs.openbsd.org 2003/11/10 16:23:41
[openssh.git] / bufaux.h
CommitLineData
b6c7b7b7 1/* $OpenBSD: bufaux.h,v 1.19 2003/11/10 16:23:41 jakob Exp $ */
93c3b6de 2
8efc0c15 3/*
5260325f 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5260325f 5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
6ae2364d 7 *
bcbf86ec 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".
5260325f 13 */
8efc0c15 14
8efc0c15 15#ifndef BUFAUX_H
16#define BUFAUX_H
17
18#include "buffer.h"
42f11eb2 19#include <openssl/bn.h>
8efc0c15 20
b6c7b7b7 21void buffer_put_bignum(Buffer *, const BIGNUM *);
22void buffer_put_bignum2(Buffer *, const BIGNUM *);
4ef6f649 23void buffer_get_bignum(Buffer *, BIGNUM *);
24void buffer_get_bignum2(Buffer *, BIGNUM *);
8efc0c15 25
9b26c596 26u_short buffer_get_short(Buffer *);
27void buffer_put_short(Buffer *, u_short);
28
20a11d35 29u_int buffer_get_int(Buffer *);
2a1e4639 30void buffer_put_int(Buffer *, u_int);
255cabd9 31
255cabd9 32u_int64_t buffer_get_int64(Buffer *);
2a1e4639 33void buffer_put_int64(Buffer *, u_int64_t);
8efc0c15 34
2a1e4639 35int buffer_get_char(Buffer *);
2a1e4639 36void buffer_put_char(Buffer *, int);
8efc0c15 37
6c0fa2b1 38void *buffer_get_string(Buffer *, u_int *);
2a1e4639 39void buffer_put_string(Buffer *, const void *, u_int);
40void buffer_put_cstring(Buffer *, const char *);
8efc0c15 41
b625ad75 42#define buffer_skip_string(b) \
43 do { u_int l = buffer_get_int(b); buffer_consume(b, l); } while(0)
44
5260325f 45#endif /* BUFAUX_H */
This page took 0.163945 seconds and 5 git commands to generate.