diff options
-rw-r--r-- | src/regress/lib/libcrypto/aead/Makefile | 4 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/aead/aeadtest.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/aead/Makefile b/src/regress/lib/libcrypto/aead/Makefile index bf838aa941..961da9f8db 100644 --- a/src/regress/lib/libcrypto/aead/Makefile +++ b/src/regress/lib/libcrypto/aead/Makefile | |||
@@ -1,7 +1,7 @@ | |||
1 | # $OpenBSD: Makefile,v 1.7 2022/07/30 16:40:23 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.8 2022/08/20 19:25:14 jsing Exp $ |
2 | 2 | ||
3 | PROG= aeadtest | 3 | PROG= aeadtest |
4 | LDADD= -lcrypto | 4 | LDADD= ${CRYPTO_INT} |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | 6 | WARNINGS= Yes |
7 | CFLAGS+= -DLIBRESSL_INTERNAL -Werror | 7 | CFLAGS+= -DLIBRESSL_INTERNAL -Werror |
diff --git a/src/regress/lib/libcrypto/aead/aeadtest.c b/src/regress/lib/libcrypto/aead/aeadtest.c index 567b49a095..2c798a2918 100644 --- a/src/regress/lib/libcrypto/aead/aeadtest.c +++ b/src/regress/lib/libcrypto/aead/aeadtest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: aeadtest.c,v 1.22 2022/07/30 17:09:45 jsing Exp $ */ | 1 | /* $OpenBSD: aeadtest.c,v 1.23 2022/08/20 19:25:14 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2014, Google Inc. | 4 | * Copyright (c) 2014, Google Inc. |
@@ -101,6 +101,7 @@ aead_from_name(const EVP_AEAD **aead, const EVP_CIPHER **cipher, | |||
101 | *cipher = EVP_aes_256_gcm(); | 101 | *cipher = EVP_aes_256_gcm(); |
102 | } else if (strcmp(name, "chacha20-poly1305") == 0) { | 102 | } else if (strcmp(name, "chacha20-poly1305") == 0) { |
103 | *aead = EVP_aead_chacha20_poly1305(); | 103 | *aead = EVP_aead_chacha20_poly1305(); |
104 | *cipher = EVP_chacha20_poly1305(); | ||
104 | } else if (strcmp(name, "xchacha20-poly1305") == 0) { | 105 | } else if (strcmp(name, "xchacha20-poly1305") == 0) { |
105 | *aead = EVP_aead_xchacha20_poly1305(); | 106 | *aead = EVP_aead_xchacha20_poly1305(); |
106 | } else { | 107 | } else { |