diff options
Diffstat (limited to 'bufbn.c')
-rw-r--r-- | bufbn.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -20,12 +20,15 @@ | |||
20 | 20 | ||
21 | #include "includes.h" | 21 | #include "includes.h" |
22 | 22 | ||
23 | #ifdef WITH_OPENSSL | ||
24 | |||
23 | #include <sys/types.h> | 25 | #include <sys/types.h> |
24 | 26 | ||
25 | #include "buffer.h" | 27 | #include "buffer.h" |
26 | #include "log.h" | 28 | #include "log.h" |
27 | #include "ssherr.h" | 29 | #include "ssherr.h" |
28 | 30 | ||
31 | #ifdef WITH_SSH1 | ||
29 | int | 32 | int |
30 | buffer_put_bignum_ret(Buffer *buffer, const BIGNUM *value) | 33 | buffer_put_bignum_ret(Buffer *buffer, const BIGNUM *value) |
31 | { | 34 | { |
@@ -63,6 +66,7 @@ buffer_get_bignum(Buffer *buffer, BIGNUM *value) | |||
63 | if (buffer_get_bignum_ret(buffer, value) == -1) | 66 | if (buffer_get_bignum_ret(buffer, value) == -1) |
64 | fatal("%s: buffer error", __func__); | 67 | fatal("%s: buffer error", __func__); |
65 | } | 68 | } |
69 | #endif /* WITH_SSH1 */ | ||
66 | 70 | ||
67 | int | 71 | int |
68 | buffer_put_bignum2_ret(Buffer *buffer, const BIGNUM *value) | 72 | buffer_put_bignum2_ret(Buffer *buffer, const BIGNUM *value) |
@@ -101,3 +105,5 @@ buffer_get_bignum2(Buffer *buffer, BIGNUM *value) | |||
101 | if (buffer_get_bignum2_ret(buffer, value) == -1) | 105 | if (buffer_get_bignum2_ret(buffer, value) == -1) |
102 | fatal("%s: buffer error", __func__); | 106 | fatal("%s: buffer error", __func__); |
103 | } | 107 | } |
108 | |||
109 | #endif /* WITH_OPENSSL */ | ||