diff options
author | David von Oheimb <David.von.Oheimb@siemens.com> | 2019-07-26 11:03:12 +0200 |
---|---|---|
committer | Nicola Tuveri <nic.tuv@gmail.com> | 2019-07-31 17:07:44 +0300 |
commit | ffc2b6373aabcdcfbb0ac725a00a907834202c4f (patch) | |
tree | 93b490379828c4f89ee3e3f459833304787ff2bd /include | |
parent | 74f4cc0276b8fe003c036544219a0371266fc32c (diff) |
make RSA and DSA operations throw MISSING_PRIVATE_KEY if needed, adapt ECDSA
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/9466)
(cherry picked from commit 7408f6759f1b0100438ca236ea8f549454aaf2d5)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/dsaerr.h | 1 | ||||
-rw-r--r-- | include/openssl/rsaerr.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/openssl/dsaerr.h b/include/openssl/dsaerr.h index 772ee2c13e..495a1ac89d 100644 --- a/include/openssl/dsaerr.h +++ b/include/openssl/dsaerr.h @@ -61,6 +61,7 @@ int ERR_load_DSA_strings(void); # define DSA_R_INVALID_DIGEST_TYPE 106 # define DSA_R_INVALID_PARAMETERS 112 # define DSA_R_MISSING_PARAMETERS 101 +# define DSA_R_MISSING_PRIVATE_KEY 111 # define DSA_R_MODULUS_TOO_LARGE 103 # define DSA_R_NO_PARAMETERS_SET 107 # define DSA_R_PARAMETER_ENCODING_ERROR 105 diff --git a/include/openssl/rsaerr.h b/include/openssl/rsaerr.h index b3cb035c8e..59b15e13e9 100644 --- a/include/openssl/rsaerr.h +++ b/include/openssl/rsaerr.h @@ -130,6 +130,7 @@ int ERR_load_RSA_strings(void); # define RSA_R_KEY_PRIME_NUM_INVALID 165 # define RSA_R_KEY_SIZE_TOO_SMALL 120 # define RSA_R_LAST_OCTET_INVALID 134 +# define RSA_R_MISSING_PRIVATE_KEY 179 # define RSA_R_MGF1_DIGEST_NOT_ALLOWED 152 # define RSA_R_MODULUS_TOO_LARGE 105 # define RSA_R_MP_COEFFICIENT_NOT_INVERSE_OF_R 168 |