AlgorithmIdentifier bugs
[oweals/openssl.git] / crypto / dh / dh_err.c
index 86764a3e84fddaf5590468bce2bec19e482f352a..97c9584f535cffb54df0ada5c904dd28ab9fc2cd 100644 (file)
@@ -1,6 +1,6 @@
 /* crypto/dh/dh_err.c */
 /* ====================================================================
- * Copyright (c) 1999 The OpenSSL Project.  All rights reserved.
+ * Copyright (c) 1999-2002 The OpenSSL Project.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -63,7 +63,7 @@
 #include <openssl/dh.h>
 
 /* BEGIN ERROR CODES */
-#ifndef OPENSSL_NO_ERR
+#ifndef NO_ERR
 static ERR_STRING_DATA DH_str_functs[]=
        {
 {ERR_PACK(0,DH_F_DHPARAMS_PRINT,0),    "DHparams_print"},
@@ -77,6 +77,7 @@ static ERR_STRING_DATA DH_str_functs[]=
 
 static ERR_STRING_DATA DH_str_reasons[]=
        {
+{DH_R_BAD_GENERATOR                      ,"bad generator"},
 {DH_R_NO_PRIVATE_VALUE                   ,"no private value"},
 {0,NULL}
        };
@@ -90,7 +91,7 @@ void ERR_load_DH_strings(void)
        if (init)
                {
                init=0;
-#ifndef OPENSSL_NO_ERR
+#ifndef NO_ERR
                ERR_load_strings(ERR_LIB_DH,DH_str_functs);
                ERR_load_strings(ERR_LIB_DH,DH_str_reasons);
 #endif