summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--regress/unittests/sshbuf/test_sshbuf_getput_crypto.c7
-rw-r--r--regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c4
-rw-r--r--regress/unittests/sshkey/common.c4
-rw-r--r--regress/unittests/sshkey/test_file.c4
-rw-r--r--regress/unittests/sshkey/test_fuzz.c4
-rw-r--r--regress/unittests/sshkey/test_sshkey.c4
7 files changed, 29 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index e2f2574be..17c422c32 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,13 @@
120140825 120140825
2 - (djm) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c]
3 [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c]
4 [regress/unittests/sshkey/common.c]
5 [regress/unittests/sshkey/test_file.c]
6 [regress/unittests/sshkey/test_fuzz.c]
7 [regress/unittests/sshkey/test_sshkey.c] Don't include openssl/ec.h
8 on !ECC OpenSSL systems
9
1020140825
2 - (djm) [bufec.c] Skip this file on !ECC OpenSSL 11 - (djm) [bufec.c] Skip this file on !ECC OpenSSL
3 - (djm) [INSTALL] Recommend libcrypto be built -fPIC, mention LibreSSL, 12 - (djm) [INSTALL] Recommend libcrypto be built -fPIC, mention LibreSSL,
4 update OpenSSL version requirement. 13 update OpenSSL version requirement.
diff --git a/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c b/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
index e181b8f93..0c4c71ecd 100644
--- a/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
+++ b/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
@@ -17,8 +17,10 @@
17#include <string.h> 17#include <string.h>
18 18
19#include <openssl/bn.h> 19#include <openssl/bn.h>
20#include <openssl/ec.h>
21#include <openssl/objects.h> 20#include <openssl/objects.h>
21#ifdef OPENSSL_HAS_NISTP256
22# include <openssl/ec.h>
23#endif
22 24
23#include "../test_helper/test_helper.h" 25#include "../test_helper/test_helper.h"
24#include "ssherr.h" 26#include "ssherr.h"
@@ -32,7 +34,7 @@ sshbuf_getput_crypto_tests(void)
32 struct sshbuf *p1; 34 struct sshbuf *p1;
33 const u_char *d; 35 const u_char *d;
34 size_t s; 36 size_t s;
35 BIGNUM *bn, *bn2, *bn_x, *bn_y; 37 BIGNUM *bn, *bn2;
36 /* This one has num_bits != num_bytes * 8 to test bignum1 encoding */ 38 /* This one has num_bits != num_bytes * 8 to test bignum1 encoding */
37 const char *hexbn1 = "0102030405060708090a0b0c0d0e0f10"; 39 const char *hexbn1 = "0102030405060708090a0b0c0d0e0f10";
38 /* This one has MSB set to test bignum2 encoding negative-avoidance */ 40 /* This one has MSB set to test bignum2 encoding negative-avoidance */
@@ -47,6 +49,7 @@ sshbuf_getput_crypto_tests(void)
47 0x7f, 0xff, 0x11 49 0x7f, 0xff, 0x11
48 }; 50 };
49#ifdef OPENSSL_HAS_NISTP256 51#ifdef OPENSSL_HAS_NISTP256
52 BIGNUM *bn_x, *bn_y;
50 int ec256_nid = NID_X9_62_prime256v1; 53 int ec256_nid = NID_X9_62_prime256v1;
51 char *ec256_x = "0C828004839D0106AA59575216191357" 54 char *ec256_x = "0C828004839D0106AA59575216191357"
52 "34B451459DADB586677EF9DF55784999"; 55 "34B451459DADB586677EF9DF55784999";
diff --git a/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c b/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c
index 2a242e9f2..8c3269b13 100644
--- a/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c
+++ b/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c
@@ -17,8 +17,10 @@
17#include <string.h> 17#include <string.h>
18 18
19#include <openssl/bn.h> 19#include <openssl/bn.h>
20#include <openssl/ec.h>
21#include <openssl/objects.h> 20#include <openssl/objects.h>
21#ifdef OPENSSL_HAS_NISTP256
22# include <openssl/ec.h>
23#endif
22 24
23#include "../test_helper/test_helper.h" 25#include "../test_helper/test_helper.h"
24#include "ssherr.h" 26#include "ssherr.h"
diff --git a/regress/unittests/sshkey/common.c b/regress/unittests/sshkey/common.c
index bed9a62b3..0a4b3a90c 100644
--- a/regress/unittests/sshkey/common.c
+++ b/regress/unittests/sshkey/common.c
@@ -20,10 +20,12 @@
20#include <unistd.h> 20#include <unistd.h>
21 21
22#include <openssl/bn.h> 22#include <openssl/bn.h>
23#include <openssl/ec.h>
24#include <openssl/rsa.h> 23#include <openssl/rsa.h>
25#include <openssl/dsa.h> 24#include <openssl/dsa.h>
26#include <openssl/objects.h> 25#include <openssl/objects.h>
26#ifdef OPENSSL_HAS_NISTP256
27# include <openssl/ec.h>
28#endif
27 29
28#include "../test_helper/test_helper.h" 30#include "../test_helper/test_helper.h"
29 31
diff --git a/regress/unittests/sshkey/test_file.c b/regress/unittests/sshkey/test_file.c
index d113e2da8..764f7fb76 100644
--- a/regress/unittests/sshkey/test_file.c
+++ b/regress/unittests/sshkey/test_file.c
@@ -20,10 +20,12 @@
20#include <unistd.h> 20#include <unistd.h>
21 21
22#include <openssl/bn.h> 22#include <openssl/bn.h>
23#include <openssl/ec.h>
24#include <openssl/rsa.h> 23#include <openssl/rsa.h>
25#include <openssl/dsa.h> 24#include <openssl/dsa.h>
26#include <openssl/objects.h> 25#include <openssl/objects.h>
26#ifdef OPENSSL_HAS_NISTP256
27# include <openssl/ec.h>
28#endif
27 29
28#include "../test_helper/test_helper.h" 30#include "../test_helper/test_helper.h"
29 31
diff --git a/regress/unittests/sshkey/test_fuzz.c b/regress/unittests/sshkey/test_fuzz.c
index f9da086a4..a3f61a6df 100644
--- a/regress/unittests/sshkey/test_fuzz.c
+++ b/regress/unittests/sshkey/test_fuzz.c
@@ -20,10 +20,12 @@
20#include <unistd.h> 20#include <unistd.h>
21 21
22#include <openssl/bn.h> 22#include <openssl/bn.h>
23#include <openssl/ec.h>
24#include <openssl/rsa.h> 23#include <openssl/rsa.h>
25#include <openssl/dsa.h> 24#include <openssl/dsa.h>
26#include <openssl/objects.h> 25#include <openssl/objects.h>
26#ifdef OPENSSL_HAS_NISTP256
27# include <openssl/ec.h>
28#endif
27 29
28#include "../test_helper/test_helper.h" 30#include "../test_helper/test_helper.h"
29 31
diff --git a/regress/unittests/sshkey/test_sshkey.c b/regress/unittests/sshkey/test_sshkey.c
index 292303063..ef0c67956 100644
--- a/regress/unittests/sshkey/test_sshkey.c
+++ b/regress/unittests/sshkey/test_sshkey.c
@@ -17,9 +17,11 @@
17#include <string.h> 17#include <string.h>
18 18
19#include <openssl/bn.h> 19#include <openssl/bn.h>
20#include <openssl/ec.h>
21#include <openssl/rsa.h> 20#include <openssl/rsa.h>
22#include <openssl/dsa.h> 21#include <openssl/dsa.h>
22#ifdef OPENSSL_HAS_NISTP256
23# include <openssl/ec.h>
24#endif
23 25
24#include "../test_helper/test_helper.h" 26#include "../test_helper/test_helper.h"
25 27