New error code ERR_R_DISABLED
authorBodo Möller <bodo@openssl.org>
Fri, 2 Aug 2002 12:27:21 +0000 (12:27 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 2 Aug 2002 12:27:21 +0000 (12:27 +0000)
Submitted by: Douglas Stebila <douglas.stebila@sun.com>

crypto/err/err.c
crypto/err/err.h

index 5abe44e6d57d7b63cf6475a3ef275c93eb080db6..85ff9a52ddcb78635412394ecb1a43ecfffda848 100644 (file)
@@ -208,6 +208,7 @@ static ERR_STRING_DATA ERR_str_reasons[]=
 {ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED     ,"called a function you should not call"},
 {ERR_R_PASSED_NULL_PARAMETER           ,"passed a null parameter"},
 {ERR_R_INTERNAL_ERROR                  ,"internal error"},
+{ERR_R_DISABLED                                ,"called a function that was disabled at compile-time"},
 
 {0,NULL},
        };
index 8728ff7c02e631acbc53355612525568459c2fe4..b591d11cd6436e95cd8195cc6768f8bc07407a92 100644 (file)
@@ -228,6 +228,7 @@ typedef struct err_state_st
 #define        ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED       (2|ERR_R_FATAL)
 #define        ERR_R_PASSED_NULL_PARAMETER             (3|ERR_R_FATAL)
 #define        ERR_R_INTERNAL_ERROR                    (4|ERR_R_FATAL)
+#define        ERR_R_DISABLED                          (5|ERR_R_FATAL)
 
 /* 99 is the maximum possible ERR_R_... code, higher values
  * are reserved for the individual libraries */