From 4ba797c29f641f429986a780c6a761661ba4ed99 Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 21 Oct 2022 13:39:35 +0000 Subject: [PATCH] Add EVP_chacha20_poly1305() Omission reported by jca. ok jca jsing --- lib/libcrypto/evp/c_all.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libcrypto/evp/c_all.c b/lib/libcrypto/evp/c_all.c index 690215c8e85..8fc1aa6a175 100644 --- a/lib/libcrypto/evp/c_all.c +++ b/lib/libcrypto/evp/c_all.c @@ -1,4 +1,4 @@ -/* $OpenBSD: c_all.c,v 1.27 2022/01/14 08:38:05 tb Exp $ */ +/* $OpenBSD: c_all.c,v 1.28 2022/10/21 13:39:35 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -224,6 +224,9 @@ OpenSSL_add_all_ciphers_internal(void) #ifndef OPENSSL_NO_CHACHA EVP_add_cipher(EVP_chacha20()); #endif +#if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) + EVP_add_cipher(EVP_chacha20_poly1305()); +#endif #ifndef OPENSSL_NO_GOST EVP_add_cipher(EVP_gost2814789_ecb()); -- 2.20.1