packet.h (197679) | packet.h (221420) |
---|---|
1/* $OpenBSD: packet.h,v 1.52 2009/06/27 09:29:06 andreas Exp $ */ | 1/* $OpenBSD: packet.h,v 1.55 2010/11/13 23:27:50 djm Exp $ */ |
2 3/* 4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6 * All rights reserved 7 * Interface for the packet protocol functions. 8 * 9 * As far as I am concerned, the code I have written for this software --- 4 unchanged lines hidden (view full) --- 14 */ 15 16#ifndef PACKET_H 17#define PACKET_H 18 19#include <termios.h> 20 21#include <openssl/bn.h> | 2 3/* 4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6 * All rights reserved 7 * Interface for the packet protocol functions. 8 * 9 * As far as I am concerned, the code I have written for this software --- 4 unchanged lines hidden (view full) --- 14 */ 15 16#ifndef PACKET_H 17#define PACKET_H 18 19#include <termios.h> 20 21#include <openssl/bn.h> |
22#ifdef OPENSSL_HAS_ECC 23#include <openssl/ec.h> 24#endif |
|
22 23void packet_set_connection(int, int); 24void packet_set_timeout(int, int); 25void packet_set_nonblocking(void); 26int packet_get_connection_in(void); 27int packet_get_connection_out(void); 28void packet_close(void); 29void packet_set_encryption_key(const u_char *, u_int, int); 30u_int packet_get_encryption_key(u_char *); 31void packet_set_protocol_flags(u_int); 32u_int packet_get_protocol_flags(void); 33void packet_start_compression(int); | 25 26void packet_set_connection(int, int); 27void packet_set_timeout(int, int); 28void packet_set_nonblocking(void); 29int packet_get_connection_in(void); 30int packet_get_connection_out(void); 31void packet_close(void); 32void packet_set_encryption_key(const u_char *, u_int, int); 33u_int packet_get_encryption_key(u_char *); 34void packet_set_protocol_flags(u_int); 35u_int packet_get_protocol_flags(void); 36void packet_start_compression(int); |
34void packet_set_interactive(int); | 37void packet_set_interactive(int, int, int); |
35int packet_is_interactive(void); 36void packet_set_server(void); 37void packet_set_authenticated(void); 38 39void packet_start(u_char); 40void packet_put_char(int ch); 41void packet_put_int(u_int value); 42void packet_put_int64(u_int64_t value); 43void packet_put_bignum(BIGNUM * value); 44void packet_put_bignum2(BIGNUM * value); | 38int packet_is_interactive(void); 39void packet_set_server(void); 40void packet_set_authenticated(void); 41 42void packet_start(u_char); 43void packet_put_char(int ch); 44void packet_put_int(u_int value); 45void packet_put_int64(u_int64_t value); 46void packet_put_bignum(BIGNUM * value); 47void packet_put_bignum2(BIGNUM * value); |
48#ifdef OPENSSL_HAS_ECC 49void packet_put_ecpoint(const EC_GROUP *, const EC_POINT *); 50#endif |
|
45void packet_put_string(const void *buf, u_int len); 46void packet_put_cstring(const char *str); 47void packet_put_raw(const void *buf, u_int len); 48void packet_send(void); 49 50int packet_read(void); 51void packet_read_expect(int type); 52int packet_read_poll(void); 53void packet_process_incoming(const char *buf, u_int len); 54int packet_read_seqnr(u_int32_t *seqnr_p); 55int packet_read_poll_seqnr(u_int32_t *seqnr_p); 56 57u_int packet_get_char(void); 58u_int packet_get_int(void); 59u_int64_t packet_get_int64(void); 60void packet_get_bignum(BIGNUM * value); 61void packet_get_bignum2(BIGNUM * value); | 51void packet_put_string(const void *buf, u_int len); 52void packet_put_cstring(const char *str); 53void packet_put_raw(const void *buf, u_int len); 54void packet_send(void); 55 56int packet_read(void); 57void packet_read_expect(int type); 58int packet_read_poll(void); 59void packet_process_incoming(const char *buf, u_int len); 60int packet_read_seqnr(u_int32_t *seqnr_p); 61int packet_read_poll_seqnr(u_int32_t *seqnr_p); 62 63u_int packet_get_char(void); 64u_int packet_get_int(void); 65u_int64_t packet_get_int64(void); 66void packet_get_bignum(BIGNUM * value); 67void packet_get_bignum2(BIGNUM * value); |
68#ifdef OPENSSL_HAS_ECC 69void packet_get_ecpoint(const EC_GROUP *, EC_POINT *); 70#endif |
|
62void *packet_get_raw(u_int *length_ptr); 63void *packet_get_string(u_int *length_ptr); | 71void *packet_get_raw(u_int *length_ptr); 72void *packet_get_string(u_int *length_ptr); |
73char *packet_get_cstring(u_int *length_ptr); |
|
64void *packet_get_string_ptr(u_int *length_ptr); 65void packet_disconnect(const char *fmt,...) __attribute__((format(printf, 1, 2))); 66void packet_send_debug(const char *fmt,...) __attribute__((format(printf, 1, 2))); 67 68void set_newkeys(int mode); 69int packet_get_keyiv_len(int); 70void packet_get_keyiv(int, u_char *, u_int); 71int packet_get_keycontext(int, u_char *); --- 47 unchanged lines hidden --- | 74void *packet_get_string_ptr(u_int *length_ptr); 75void packet_disconnect(const char *fmt,...) __attribute__((format(printf, 1, 2))); 76void packet_send_debug(const char *fmt,...) __attribute__((format(printf, 1, 2))); 77 78void set_newkeys(int mode); 79int packet_get_keyiv_len(int); 80void packet_get_keyiv(int, u_char *, u_int); 81int packet_get_keycontext(int, u_char *); --- 47 unchanged lines hidden --- |