Skip to content

Commit c3f1e50

Browse files
authored
Merge pull request #235 from sebastian-carpenter/macro-and-test-updates
Macro rename and compiler error fix
2 parents c1fa9ed + 2760db4 commit c3f1e50

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/wolfprovider/settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
#ifndef NO_RSA
121121
#define WP_HAVE_RSA
122122
#if defined(WC_RSA_PSS) && LIBWOLFSSL_VERSION_HEX >= 0x05005000
123-
#define WOLFSSL_RSA_PSS_ENCODING
123+
#define WP_RSA_PSS_ENCODING
124124
#endif
125125
#endif
126126

src/wp_wolfprov.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ static const OSSL_ALGORITHM wolfprov_encoder[] = {
740740
{ WP_NAMES_RSA, WP_ENCODER_PROPERTIES(type-specific, pem),
741741
wp_rsa_kp_pem_encoder_functions,
742742
"" },
743-
#ifdef WOLFSSL_RSA_PSS_ENCODING
743+
#ifdef WP_RSA_PSS_ENCODING
744744
{ WP_NAMES_RSA_PSS, WP_ENCODER_PROPERTIES(SubjectPublicKeyInfo, der),
745745
wp_rsapss_spki_der_encoder_functions,
746746
"" },

test/test_tls1_prf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static int test_tls1_prf_calc(OSSL_LIB_CTX* libCtx, unsigned char *key,
2828
int err = 0;
2929
EVP_PKEY_CTX *ctx = NULL;
3030
unsigned char secret[32] = { 0, };
31-
unsigned char label[5] = "Label";
31+
unsigned char label[] = "Label";
3232
unsigned char seed[32] = { 0, };
3333
size_t len = keyLen;
3434

0 commit comments

Comments
 (0)