From bbbfee30bd3f733940c4ca03300fb7bda46b28de Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sat, 20 May 2017 00:00:13 +0100 Subject: [PATCH] make errors Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/3503) --- crypto/evp/evp_err.c | 2 ++ include/openssl/evp.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/crypto/evp/evp_err.c b/crypto/evp/evp_err.c index eb73a5a555..315129ab0d 100644 --- a/crypto/evp/evp_err.c +++ b/crypto/evp/evp_err.c @@ -93,6 +93,7 @@ static ERR_STRING_DATA EVP_str_functs[] = { {ERR_FUNC(EVP_F_PKEY_SET_TYPE), "pkey_set_type"}, {ERR_FUNC(EVP_F_RC2_MAGIC_TO_METH), "rc2_magic_to_meth"}, {ERR_FUNC(EVP_F_RC5_CTRL), "rc5_ctrl"}, + {ERR_FUNC(EVP_F_UPDATE), "update"}, {0, NULL} }; @@ -143,6 +144,7 @@ static ERR_STRING_DATA EVP_str_reasons[] = { {ERR_REASON(EVP_R_NO_DIGEST_SET), "no digest set"}, {ERR_REASON(EVP_R_NO_KEY_SET), "no key set"}, {ERR_REASON(EVP_R_NO_OPERATION_SET), "no operation set"}, + {ERR_REASON(EVP_R_ONLY_ONESHOT_SUPPORTED), "only oneshot supported"}, {ERR_REASON(EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE), "operation not supported for this keytype"}, {ERR_REASON(EVP_R_OPERATON_NOT_INITIALIZED), "operaton not initialized"}, diff --git a/include/openssl/evp.h b/include/openssl/evp.h index 26a8b7c8d1..0105dd0d3f 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -1593,6 +1593,7 @@ int ERR_load_EVP_strings(void); # define EVP_F_PKEY_SET_TYPE 158 # define EVP_F_RC2_MAGIC_TO_METH 109 # define EVP_F_RC5_CTRL 125 +# define EVP_F_UPDATE 173 /* Reason codes. */ # define EVP_R_AES_KEY_SETUP_FAILED 143 @@ -1637,6 +1638,7 @@ int ERR_load_EVP_strings(void); # define EVP_R_NO_DIGEST_SET 139 # define EVP_R_NO_KEY_SET 154 # define EVP_R_NO_OPERATION_SET 149 +# define EVP_R_ONLY_ONESHOT_SUPPORTED 177 # define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 150 # define EVP_R_OPERATON_NOT_INITIALIZED 151 # define EVP_R_PARTIALLY_OVERLAPPING 162 -- 2.25.1