diff options
Diffstat (limited to 'opacket.c')
-rw-r--r-- | opacket.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |
78 | void | 78 | void |
79 | ssh_packet_put_bignum(struct ssh *ssh, BIGNUM * value) | 79 | ssh_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 | ||
87 | void | 89 | void |
88 | ssh_packet_put_bignum2(struct ssh *ssh, BIGNUM * value) | 90 | ssh_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 |
152 | void | 154 | void |
153 | ssh_packet_get_bignum(struct ssh *ssh, BIGNUM * value) | 155 | ssh_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 | ||
161 | void | 165 | void |
162 | ssh_packet_get_bignum2(struct ssh *ssh, BIGNUM * value) | 166 | ssh_packet_get_bignum2(struct ssh *ssh, BIGNUM * value) |
163 | { | 167 | { |