Skip to content

Commit 4b7a9ad

Browse files
committed
Allow Ed25519/Ed448 provider tests on OpenSSL ≥ 3.0
1 parent 3a798cb commit 4b7a9ad

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

tests/ed25519-keygen-prov.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
#include "helpers_prov.h"
2121
#include "eddsa_common.h"
2222

23-
#if !defined(OPENSSL_NO_EC) && \
24-
(OPENSSL_VERSION_NUMBER >= 0x30000000L) && \
25-
(OPENSSL_VERSION_NUMBER < 0x40000000L)
23+
#if !defined(OPENSSL_NO_EC) && (OPENSSL_VERSION_NUMBER >= 0x30000000L)
2624

2725
static void error_queue(const char *name)
2826
{
@@ -160,10 +158,10 @@ int main(int argc, char *argv[])
160158
#include <stdio.h>
161159

162160
int main() {
163-
fprintf(stderr, "Skipped: requires OpenSSL 3.x built with EC support\n");
161+
fprintf(stderr, "Skipped: requires OpenSSL >= 3.0 built with EC support\n");
164162
return 77;
165163
}
166164

167-
#endif /* !OPENSSL_NO_EC && OpenSSL 3.x */
165+
#endif /* !OPENSSL_NO_EC && OPENSSL_VERSION_NUMBER >= 0x30000000L */
168166

169167
/* vim: set noexpandtab: */

tests/ed448-keygen-prov.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
#include "helpers_prov.h"
2121
#include "eddsa_common.h"
2222

23-
#if !defined(OPENSSL_NO_EC) && \
24-
(OPENSSL_VERSION_NUMBER >= 0x30000000L) && \
25-
(OPENSSL_VERSION_NUMBER < 0x40000000L)
23+
#if !defined(OPENSSL_NO_EC) && (OPENSSL_VERSION_NUMBER >= 0x30000000L)
2624

2725
static void error_queue(const char *name)
2826
{
@@ -160,10 +158,10 @@ int main(int argc, char *argv[])
160158
#include <stdio.h>
161159

162160
int main() {
163-
fprintf(stderr, "Skipped: requires OpenSSL 3.x built with EC support\n");
161+
fprintf(stderr, "Skipped: requires OpenSSL >= 3.0 built with EC support\n");
164162
return 77;
165163
}
166164

167-
#endif /* !OPENSSL_NO_EC && OpenSSL 3.x */
165+
#endif /* !OPENSSL_NO_EC && OPENSSL_VERSION_NUMBER >= 0x30000000L */
168166

169167
/* vim: set noexpandtab: */

0 commit comments

Comments
 (0)