diff options
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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); | |||
176 | int sshpkt_disconnect(struct ssh *, const char *fmt, ...) | 176 | int sshpkt_disconnect(struct ssh *, const char *fmt, ...) |
177 | __attribute__((format(printf, 2, 3))); | 177 | __attribute__((format(printf, 2, 3))); |
178 | int sshpkt_add_padding(struct ssh *, u_char); | 178 | int sshpkt_add_padding(struct ssh *, u_char); |
179 | void sshpkt_fatal(struct ssh *ssh, const char *tag, int r); | 179 | void sshpkt_fatal(struct ssh *ssh, int r, const char *fmt, ...) |
180 | __attribute__((format(printf, 3, 4))); | ||
180 | int sshpkt_msg_ignore(struct ssh *, u_int); | 181 | int sshpkt_msg_ignore(struct ssh *, u_int); |
181 | 182 | ||
182 | int sshpkt_put(struct ssh *ssh, const void *v, size_t len); | 183 | int 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); | |||
198 | int sshpkt_get_string_direct(struct ssh *ssh, const u_char **valp, size_t *lenp); | 199 | int sshpkt_get_string_direct(struct ssh *ssh, const u_char **valp, size_t *lenp); |
199 | int sshpkt_peek_string_direct(struct ssh *ssh, const u_char **valp, size_t *lenp); | 200 | int sshpkt_peek_string_direct(struct ssh *ssh, const u_char **valp, size_t *lenp); |
200 | int sshpkt_get_cstring(struct ssh *ssh, char **valp, size_t *lenp); | 201 | int sshpkt_get_cstring(struct ssh *ssh, char **valp, size_t *lenp); |
202 | int sshpkt_getb_froms(struct ssh *ssh, struct sshbuf **valp); | ||
201 | int sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g); | 203 | int sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g); |
202 | int sshpkt_get_bignum2(struct ssh *ssh, BIGNUM *v); | 204 | int sshpkt_get_bignum2(struct ssh *ssh, BIGNUM **valp); |
203 | int sshpkt_get_end(struct ssh *ssh); | 205 | int sshpkt_get_end(struct ssh *ssh); |
204 | void sshpkt_fmt_connection_id(struct ssh *ssh, char *s, size_t l); | 206 | void sshpkt_fmt_connection_id(struct ssh *ssh, char *s, size_t l); |
205 | const u_char *sshpkt_ptr(struct ssh *, size_t *lenp); | 207 | const u_char *sshpkt_ptr(struct ssh *, size_t *lenp); |
206 | 208 | ||
207 | /* OLD API */ | ||
208 | extern 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 |