Typo.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 13 Apr 2006 00:26:05 +0000 (00:26 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 13 Apr 2006 00:26:05 +0000 (00:26 +0000)
crypto/dh/dh.h
crypto/dh/dh_err.c
crypto/dh/dh_pmeth.c

index 6ab27e4..b4b181c 100644 (file)
@@ -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
 
index dc09351..64acfde 100644 (file)
@@ -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}
index c516ded..28624cc 100644 (file)
@@ -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();