Skip to content

Commit e48872f

Browse files
authored
Merge pull request #120 from ColtonWilley/wp_temp_fix_hkdf_test_fail
Temporary test fix due to changing behavior in openssl master
2 parents eff28c0 + ac78d35 commit e48872f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test_hkdf.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ static int test_hkdf_calc(OSSL_LIB_CTX* libCtx, unsigned char *key, int keyLen,
9191
return err;
9292
}
9393

94+
#if OPENSSL_VERSION_NUMBER <= 0x30400000L
95+
9496
static int test_hkdf_double_set_salt(OSSL_LIB_CTX* libCtx, unsigned char *key,
9597
int keyLen, const EVP_MD *md, int mode)
9698
{
@@ -165,6 +167,8 @@ static int test_hkdf_double_set_salt(OSSL_LIB_CTX* libCtx, unsigned char *key,
165167
return err;
166168
}
167169

170+
#endif
171+
168172
static int test_hkdf_md(const EVP_MD *md, int mode)
169173
{
170174
int err = 0;
@@ -194,6 +198,8 @@ static int test_hkdf_md(const EVP_MD *md, int mode)
194198
err = 1;
195199
}
196200

201+
#if OPENSSL_VERSION_NUMBER <= 0x30400000L
202+
197203
memset(oKey, 0, sizeof(oKey));
198204
memset(wKey, 0, sizeof(wKey));
199205

@@ -218,6 +224,8 @@ static int test_hkdf_md(const EVP_MD *md, int mode)
218224
err = 1;
219225
}
220226

227+
#endif
228+
221229
return err;
222230
}
223231

0 commit comments

Comments
 (0)