diff options
| author | 2019-01-21 09:54:11 +0000 | |
|---|---|---|
| committer | 2019-01-21 09:54:11 +0000 | |
| commit | f37f3ee23e78db3061951f8cc15291bbef4b09cf (patch) | |
| tree | 174db40b7acff1092f402685d6208400049486f9 /usr.bin/ssh/packet.c | |
| parent | remove obsolete (SSH v.1) sshbuf_get/put_bignum1 functions (diff) | |
| download | wireguard-openbsd-f37f3ee23e78db3061951f8cc15291bbef4b09cf.tar.xz wireguard-openbsd-f37f3ee23e78db3061951f8cc15291bbef4b09cf.zip | |
Make sshpkt_get_bignum2() allocate the bignum it is parsing rather
than make the caller do it. Saves a lot of boilerplate code.
from markus@ ok djm@
Diffstat (limited to 'usr.bin/ssh/packet.c')
| -rw-r--r-- | usr.bin/ssh/packet.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c index 245023a23b5..41320e4e539 100644 --- a/usr.bin/ssh/packet.c +++ b/usr.bin/ssh/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.280 2019/01/19 21:33:14 djm Exp $ */ +/* $OpenBSD: packet.c,v 1.281 2019/01/21 09:54:11 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -2523,11 +2523,10 @@ sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g) return sshbuf_get_ec(ssh->state->incoming_packet, v, g); } - int -sshpkt_get_bignum2(struct ssh *ssh, BIGNUM *v) +sshpkt_get_bignum2(struct ssh *ssh, BIGNUM **valp) { - return sshbuf_get_bignum2(ssh->state->incoming_packet, v); + return sshbuf_get_bignum2(ssh->state->incoming_packet, valp); } #endif /* WITH_OPENSSL */ |
