Skip to content

Commit d1ed2c3

Browse files
committed
fix PR tests
1 parent 6a67fd7 commit d1ed2c3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/internal.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27082,11 +27082,7 @@ const char* wolfSSL_ERR_reason_error_string(unsigned long e)
2708227082
return "HTTP Application string error";
2708327083

2708427084
case UNSUPPORTED_PROTO_VERSION:
27085-
#ifdef OPENSSL_EXTRA
27086-
return "WRONG_SSL_VERSION";
27087-
#else
2708827085
return "bad/unsupported protocol version";
27089-
#endif
2709027086

2709127087
case FALCON_KEY_SIZE_E:
2709227088
return "Wrong key size for Falcon.";
@@ -27176,6 +27172,9 @@ const char* wolfSSL_ERR_reason_error_string(unsigned long e)
2717627172
/* TODO: -WOLFSSL_X509_V_ERR_CERT_SIGNATURE_FAILURE. Conflicts with
2717727173
* -WOLFSSL_ERROR_WANT_CONNECT.
2717827174
*/
27175+
case -SSL_R_WRONG_SSL_VERSION:
27176+
return "WRONG_SSL_VERSION";
27177+
2717927178
case -WOLFSSL_X509_V_ERR_CRL_HAS_EXPIRED:
2718027179
return "CRL has expired";
2718127180

wolfssl/ssl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2629,6 +2629,8 @@ enum {
26292629
WOLFSSL_X509_V_ERR_CERT_REJECTED = 28,
26302630
WOLFSSL_X509_V_ERR_SUBJECT_ISSUER_MISMATCH = 29,
26312631

2632+
SSL_R_WRONG_SSL_VERSION = -UNSUPPORTED_PROTO_VERSION,
2633+
26322634
#ifdef HAVE_OCSP
26332635
/* OCSP Flags */
26342636
WOLFSSL_OCSP_NOCERTS = 1,

0 commit comments

Comments
 (0)