From 52c11dce31a57269b3fb9f47a8f3a190362c8066 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 13 Apr 2006 00:26:05 +0000 Subject: [PATCH] Typo. --- crypto/dh/dh.h | 1 + crypto/dh/dh_err.c | 1 + crypto/dh/dh_pmeth.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.25.1