summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2022-08-20 19:25:15 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2022-08-20 19:25:15 +0000
commit61d323fe176ae1f1ce92ed3f12fd649b63a02a87 (patch)
tree82373e728d0a17cac6d525dd0ef5f54f643773b5 /regress
parenta0d7c339fb0067cf5cfa59577c88365f3640f1ea (diff)
Test EVP_chacha20_poly1305() (linking statically for now)
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libcrypto/aead/Makefile4
-rw-r--r--regress/lib/libcrypto/aead/aeadtest.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/regress/lib/libcrypto/aead/Makefile b/regress/lib/libcrypto/aead/Makefile
index bf838aa941a..961da9f8db9 100644
--- a/regress/lib/libcrypto/aead/Makefile
+++ b/regress/lib/libcrypto/aead/Makefile
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile,v 1.7 2022/07/30 16:40:23 jsing Exp $
+# $OpenBSD: Makefile,v 1.8 2022/08/20 19:25:14 jsing Exp $
PROG= aeadtest
-LDADD= -lcrypto
+LDADD= ${CRYPTO_INT}
DPADD= ${LIBCRYPTO}
WARNINGS= Yes
CFLAGS+= -DLIBRESSL_INTERNAL -Werror
diff --git a/regress/lib/libcrypto/aead/aeadtest.c b/regress/lib/libcrypto/aead/aeadtest.c
index 567b49a0958..2c798a29188 100644
--- a/regress/lib/libcrypto/aead/aeadtest.c
+++ b/regress/lib/libcrypto/aead/aeadtest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aeadtest.c,v 1.22 2022/07/30 17:09:45 jsing Exp $ */
+/* $OpenBSD: aeadtest.c,v 1.23 2022/08/20 19:25:14 jsing Exp $ */
/*
* Copyright (c) 2022 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2014, Google Inc.
@@ -101,6 +101,7 @@ aead_from_name(const EVP_AEAD **aead, const EVP_CIPHER **cipher,
*cipher = EVP_aes_256_gcm();
} else if (strcmp(name, "chacha20-poly1305") == 0) {
*aead = EVP_aead_chacha20_poly1305();
+ *cipher = EVP_chacha20_poly1305();
} else if (strcmp(name, "xchacha20-poly1305") == 0) {
*aead = EVP_aead_xchacha20_poly1305();
} else {