summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp_err.c
diff options
context:
space:
mode:
authortb <>2019-03-17 18:07:41 +0000
committertb <>2019-03-17 18:07:41 +0000
commitfb0b540c39c782c9152081c2021f54363e04307c (patch)
treedd2e39bee98dd971a0881b58b8d9c80b4aed5bb3 /src/lib/libcrypto/evp/evp_err.c
parent373c84ef2291a7b228066cf92fe5b23e39cd35aa (diff)
downloadopenbsd-fb0b540c39c782c9152081c2021f54363e04307c.tar.gz
openbsd-fb0b540c39c782c9152081c2021f54363e04307c.tar.bz2
openbsd-fb0b540c39c782c9152081c2021f54363e04307c.zip
Provide EVP_aes_{128,192,256}_wrap(). This is a compatible
implementation based on the one in OpenSSL 1.0.2r which is still freely licensed. The functions are undocumented in OpenSSL. To use them, one needs to set the undocumented EVP_CIPHER_CTX_FLAG_WRAP_ALLOW flag on the EVP_CIPHER_CTX. resolves #505 ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/evp_err.c')
-rw-r--r--src/lib/libcrypto/evp/evp_err.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_err.c b/src/lib/libcrypto/evp/evp_err.c
index 1e1cc8350b..814637c739 100644
--- a/src/lib/libcrypto/evp/evp_err.c
+++ b/src/lib/libcrypto/evp/evp_err.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_err.c,v 1.22 2017/01/29 17:49:23 beck Exp $ */ 1/* $OpenBSD: evp_err.c,v 1.23 2019/03/17 18:07:41 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -147,6 +147,7 @@ static ERR_STRING_DATA EVP_str_reasons[] = {
147 {ERR_REASON(EVP_R_UNSUPPORTED_PRF) , "unsupported prf"}, 147 {ERR_REASON(EVP_R_UNSUPPORTED_PRF) , "unsupported prf"},
148 {ERR_REASON(EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM), "unsupported private key algorithm"}, 148 {ERR_REASON(EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM), "unsupported private key algorithm"},
149 {ERR_REASON(EVP_R_UNSUPPORTED_SALT_TYPE) , "unsupported salt type"}, 149 {ERR_REASON(EVP_R_UNSUPPORTED_SALT_TYPE) , "unsupported salt type"},
150 {ERR_REASON(EVP_R_WRAP_MODE_NOT_ALLOWED), "wrap mode not allowed"},
150 {ERR_REASON(EVP_R_WRONG_FINAL_BLOCK_LENGTH), "wrong final block length"}, 151 {ERR_REASON(EVP_R_WRONG_FINAL_BLOCK_LENGTH), "wrong final block length"},
151 {ERR_REASON(EVP_R_WRONG_PUBLIC_KEY_TYPE) , "wrong public key type"}, 152 {ERR_REASON(EVP_R_WRONG_PUBLIC_KEY_TYPE) , "wrong public key type"},
152 {0, NULL} 153 {0, NULL}