summaryrefslogtreecommitdiffstats
path: root/crypto/dh
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-07-17 16:33:31 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-07-17 16:33:31 +0000
commit5c95c2ac23dd30f3c458e2738598383d2ca58181 (patch)
tree181e8b7d0663eeed579bbe7f97760f0ddad52157 /crypto/dh
parent454dbbc593cd8d9ddd7969e94c6118fc64c57f7b (diff)
Fix various error codes to match functions.
Diffstat (limited to 'crypto/dh')
-rw-r--r--crypto/dh/dh.h2
-rw-r--r--crypto/dh/dh_ameth.c2
-rw-r--r--crypto/dh/dh_err.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/crypto/dh/dh.h b/crypto/dh/dh.h
index 10bf3fe5de..ecd61f36c1 100644
--- a/crypto/dh/dh.h
+++ b/crypto/dh/dh.h
@@ -223,7 +223,7 @@ void ERR_load_DH_strings(void);
/* Function codes. */
#define DH_F_COMPUTE_KEY 102
-#define DH_F_DHPARAMS_PRINT 100
+#define DH_F_DO_DH_PRINT 100
#define DH_F_DHPARAMS_PRINT_FP 101
#define DH_F_DH_BUILTIN_GENPARAMS 106
#define DH_F_DH_NEW_METHOD 105
diff --git a/crypto/dh/dh_ameth.c b/crypto/dh/dh_ameth.c
index 2f2589bc25..0ff0fe7f3b 100644
--- a/crypto/dh/dh_ameth.c
+++ b/crypto/dh/dh_ameth.c
@@ -381,7 +381,7 @@ static int do_dh_print(BIO *bp, const DH *x, int indent,
if (0)
{
err:
- DHerr(DH_F_DHPARAMS_PRINT,reason);
+ DHerr(DH_F_DO_DH_PRINT,reason);
}
if (m != NULL) OPENSSL_free(m);
return(ret);
diff --git a/crypto/dh/dh_err.c b/crypto/dh/dh_err.c
index 2fdfc5516e..86d8cdd529 100644
--- a/crypto/dh/dh_err.c
+++ b/crypto/dh/dh_err.c
@@ -71,7 +71,6 @@
static ERR_STRING_DATA DH_str_functs[]=
{
{ERR_FUNC(DH_F_COMPUTE_KEY), "COMPUTE_KEY"},
-{ERR_FUNC(DH_F_DHPARAMS_PRINT), "DHparams_print"},
{ERR_FUNC(DH_F_DHPARAMS_PRINT_FP), "DHparams_print_fp"},
{ERR_FUNC(DH_F_DH_BUILTIN_GENPARAMS), "DH_BUILTIN_GENPARAMS"},
{ERR_FUNC(DH_F_DH_NEW_METHOD), "DH_new_method"},
@@ -80,6 +79,7 @@ static ERR_STRING_DATA DH_str_functs[]=
{ERR_FUNC(DH_F_DH_PRIV_ENCODE), "DH_PRIV_ENCODE"},
{ERR_FUNC(DH_F_DH_PUB_DECODE), "DH_PUB_DECODE"},
{ERR_FUNC(DH_F_DH_PUB_ENCODE), "DH_PUB_ENCODE"},
+{ERR_FUNC(DH_F_DO_DH_PRINT), "DO_DH_PRINT"},
{ERR_FUNC(DH_F_GENERATE_KEY), "GENERATE_KEY"},
{ERR_FUNC(DH_F_GENERATE_PARAMETERS), "GENERATE_PARAMETERS"},
{ERR_FUNC(DH_F_PKEY_DH_DERIVE), "PKEY_DH_DERIVE"},