summaryrefslogtreecommitdiff
path: root/opacket.c
diff options
context:
space:
mode:
Diffstat (limited to 'opacket.c')
-rw-r--r--opacket.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/opacket.c b/opacket.c
index 5eae633b6..b9160d59d 100644
--- a/opacket.c
+++ b/opacket.c
@@ -74,7 +74,7 @@ ssh_packet_put_raw(struct ssh *ssh, const void *buf, u_int len)
74 fatal("%s: %s", __func__, ssh_err(r)); 74 fatal("%s: %s", __func__, ssh_err(r));
75} 75}
76 76
77#ifdef WITH_OPENSSL 77#ifdef WITH_SSH1
78void 78void
79ssh_packet_put_bignum(struct ssh *ssh, BIGNUM * value) 79ssh_packet_put_bignum(struct ssh *ssh, BIGNUM * value)
80{ 80{
@@ -83,7 +83,9 @@ ssh_packet_put_bignum(struct ssh *ssh, BIGNUM * value)
83 if ((r = sshpkt_put_bignum1(ssh, value)) != 0) 83 if ((r = sshpkt_put_bignum1(ssh, value)) != 0)
84 fatal("%s: %s", __func__, ssh_err(r)); 84 fatal("%s: %s", __func__, ssh_err(r));
85} 85}
86#endif
86 87
88#ifdef WITH_OPENSSL
87void 89void
88ssh_packet_put_bignum2(struct ssh *ssh, BIGNUM * value) 90ssh_packet_put_bignum2(struct ssh *ssh, BIGNUM * value)
89{ 91{
@@ -148,7 +150,7 @@ ssh_packet_get_int64(struct ssh *ssh)
148 return val; 150 return val;
149} 151}
150 152
151#ifdef WITH_OPENSSL 153#ifdef WITH_SSH1
152void 154void
153ssh_packet_get_bignum(struct ssh *ssh, BIGNUM * value) 155ssh_packet_get_bignum(struct ssh *ssh, BIGNUM * value)
154{ 156{
@@ -157,7 +159,9 @@ ssh_packet_get_bignum(struct ssh *ssh, BIGNUM * value)
157 if ((r = sshpkt_get_bignum1(ssh, value)) != 0) 159 if ((r = sshpkt_get_bignum1(ssh, value)) != 0)
158 fatal("%s: %s", __func__, ssh_err(r)); 160 fatal("%s: %s", __func__, ssh_err(r));
159} 161}
162#endif
160 163
164#ifdef WITH_OPENSSL
161void 165void
162ssh_packet_get_bignum2(struct ssh *ssh, BIGNUM * value) 166ssh_packet_get_bignum2(struct ssh *ssh, BIGNUM * value)
163{ 167{