summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/packet.h b/packet.h
index 170203cab..0dfa36da1 100644
--- a/packet.h
+++ b/packet.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.h,v 1.86 2018/07/09 21:20:26 markus Exp $ */ 1/* $OpenBSD: packet.h,v 1.90 2019/01/21 10:35:09 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -176,7 +176,8 @@ int sshpkt_send(struct ssh *ssh);
176int sshpkt_disconnect(struct ssh *, const char *fmt, ...) 176int sshpkt_disconnect(struct ssh *, const char *fmt, ...)
177 __attribute__((format(printf, 2, 3))); 177 __attribute__((format(printf, 2, 3)));
178int sshpkt_add_padding(struct ssh *, u_char); 178int sshpkt_add_padding(struct ssh *, u_char);
179void sshpkt_fatal(struct ssh *ssh, const char *tag, int r); 179void sshpkt_fatal(struct ssh *ssh, int r, const char *fmt, ...)
180 __attribute__((format(printf, 3, 4)));
180int sshpkt_msg_ignore(struct ssh *, u_int); 181int sshpkt_msg_ignore(struct ssh *, u_int);
181 182
182int sshpkt_put(struct ssh *ssh, const void *v, size_t len); 183int sshpkt_put(struct ssh *ssh, const void *v, size_t len);
@@ -198,16 +199,13 @@ int sshpkt_get_string(struct ssh *ssh, u_char **valp, size_t *lenp);
198int sshpkt_get_string_direct(struct ssh *ssh, const u_char **valp, size_t *lenp); 199int sshpkt_get_string_direct(struct ssh *ssh, const u_char **valp, size_t *lenp);
199int sshpkt_peek_string_direct(struct ssh *ssh, const u_char **valp, size_t *lenp); 200int sshpkt_peek_string_direct(struct ssh *ssh, const u_char **valp, size_t *lenp);
200int sshpkt_get_cstring(struct ssh *ssh, char **valp, size_t *lenp); 201int sshpkt_get_cstring(struct ssh *ssh, char **valp, size_t *lenp);
202int sshpkt_getb_froms(struct ssh *ssh, struct sshbuf **valp);
201int sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g); 203int sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g);
202int sshpkt_get_bignum2(struct ssh *ssh, BIGNUM *v); 204int sshpkt_get_bignum2(struct ssh *ssh, BIGNUM **valp);
203int sshpkt_get_end(struct ssh *ssh); 205int sshpkt_get_end(struct ssh *ssh);
204void sshpkt_fmt_connection_id(struct ssh *ssh, char *s, size_t l); 206void sshpkt_fmt_connection_id(struct ssh *ssh, char *s, size_t l);
205const u_char *sshpkt_ptr(struct ssh *, size_t *lenp); 207const u_char *sshpkt_ptr(struct ssh *, size_t *lenp);
206 208
207/* OLD API */
208extern struct ssh *active_state;
209#include "opacket.h"
210
211#if !defined(WITH_OPENSSL) 209#if !defined(WITH_OPENSSL)
212# undef BIGNUM 210# undef BIGNUM
213# undef EC_KEY 211# undef EC_KEY