summaryrefslogtreecommitdiff
path: root/bufbn.c
diff options
context:
space:
mode:
Diffstat (limited to 'bufbn.c')
-rw-r--r--bufbn.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bufbn.c b/bufbn.c
index b7f7cb122..33ae7f73f 100644
--- a/bufbn.c
+++ b/bufbn.c
@@ -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
29int 32int
30buffer_put_bignum_ret(Buffer *buffer, const BIGNUM *value) 33buffer_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
67int 71int
68buffer_put_bignum2_ret(Buffer *buffer, const BIGNUM *value) 72buffer_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 */