diff options
-rw-r--r-- | src/regress/lib/libcrypto/evp/evp_test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/evp/evp_test.c b/src/regress/lib/libcrypto/evp/evp_test.c index 0b1f54f6af..eff071fa51 100644 --- a/src/regress/lib/libcrypto/evp/evp_test.c +++ b/src/regress/lib/libcrypto/evp/evp_test.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_test.c,v 1.6 2023/09/28 14:54:39 tb Exp $ */ | 1 | /* $OpenBSD: evp_test.c,v 1.7 2023/09/29 06:53:05 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -345,11 +345,13 @@ static int | |||
345 | evp_pkey_iv_len_testcase(const struct evp_iv_len_test *test) | 345 | evp_pkey_iv_len_testcase(const struct evp_iv_len_test *test) |
346 | { | 346 | { |
347 | const EVP_CIPHER *cipher = test->cipher(); | 347 | const EVP_CIPHER *cipher = test->cipher(); |
348 | const char *name = OBJ_nid2ln(EVP_CIPHER_nid(cipher)); | 348 | const char *name; |
349 | EVP_CIPHER_CTX *ctx; | 349 | EVP_CIPHER_CTX *ctx; |
350 | int ret; | 350 | int ret; |
351 | int failure = 1; | 351 | int failure = 1; |
352 | 352 | ||
353 | assert(cipher != NULL); | ||
354 | name = OBJ_nid2ln(EVP_CIPHER_nid(cipher)); | ||
353 | assert(name != NULL); | 355 | assert(name != NULL); |
354 | 356 | ||
355 | if ((ctx = EVP_CIPHER_CTX_new()) == NULL) { | 357 | if ((ctx = EVP_CIPHER_CTX_new()) == NULL) { |