diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-04-13 00:26:05 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-04-13 00:26:05 +0000 |
commit | 52c11dce31a57269b3fb9f47a8f3a190362c8066 (patch) | |
tree | a2c22a3a3ed1e3bec964693f19dd46449c49cdca /crypto/dh | |
parent | 3ba0885a3e0d52c6bef91ce9bea26cd3eabd3594 (diff) |
Typo.
Diffstat (limited to 'crypto/dh')
-rw-r--r-- | crypto/dh/dh.h | 1 | ||||
-rw-r--r-- | crypto/dh/dh_err.c | 1 | ||||
-rw-r--r-- | crypto/dh/dh_pmeth.c | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/crypto/dh/dh.h b/crypto/dh/dh.h index 6ab27e44c3..b4b181c4d9 100644 --- a/crypto/dh/dh.h +++ b/crypto/dh/dh.h @@ -242,6 +242,7 @@ void ERR_load_DH_strings(void); #define DH_R_BN_ERROR 106 #define DH_R_DECODE_ERROR 104 #define DH_R_INVALID_PUBKEY 102 +#define DH_R_NO_PARAMETERS_SET 107 #define DH_R_NO_PRIVATE_VALUE 100 #define DH_R_PARAMETER_ENCODING_ERROR 105 diff --git a/crypto/dh/dh_err.c b/crypto/dh/dh_err.c index dc093514c5..64acfdea11 100644 --- a/crypto/dh/dh_err.c +++ b/crypto/dh/dh_err.c @@ -93,6 +93,7 @@ static ERR_STRING_DATA DH_str_reasons[]= {ERR_REASON(DH_R_BN_ERROR) ,"bn error"}, {ERR_REASON(DH_R_DECODE_ERROR) ,"decode error"}, {ERR_REASON(DH_R_INVALID_PUBKEY) ,"invalid public key"}, +{ERR_REASON(DH_R_NO_PARAMETERS_SET) ,"no parameters set"}, {ERR_REASON(DH_R_NO_PRIVATE_VALUE) ,"no private value"}, {ERR_REASON(DH_R_PARAMETER_ENCODING_ERROR),"parameter encoding error"}, {0,NULL} diff --git a/crypto/dh/dh_pmeth.c b/crypto/dh/dh_pmeth.c index c516dede10..28624ccd64 100644 --- a/crypto/dh/dh_pmeth.c +++ b/crypto/dh/dh_pmeth.c @@ -169,7 +169,7 @@ static int pkey_dh_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) DH *dh = NULL; if (ctx->pkey == NULL) { - DHerr(DH_F_PKEY_DH_KEYGEN, DSA_R_NO_PARAMETERS_SET); + DHerr(DH_F_PKEY_DH_KEYGEN, DH_R_NO_PARAMETERS_SET); return 0; } dh = DH_new(); |