From: jsing Date: Sat, 20 Aug 2022 19:25:14 +0000 (+0000) Subject: Test EVP_chacha20_poly1305() (linking statically for now) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=711d32f887317b2d261baab50a7bb9253a75109e;p=openbsd Test EVP_chacha20_poly1305() (linking statically for now) --- 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 * 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 {