diff options
Diffstat (limited to 'src/lib/libcrypto/err/err.h')
| -rw-r--r-- | src/lib/libcrypto/err/err.h | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/src/lib/libcrypto/err/err.h b/src/lib/libcrypto/err/err.h index bf28fce492..2efa18866a 100644 --- a/src/lib/libcrypto/err/err.h +++ b/src/lib/libcrypto/err/err.h | |||
| @@ -59,14 +59,11 @@ | |||
| 59 | #ifndef HEADER_ERR_H | 59 | #ifndef HEADER_ERR_H |
| 60 | #define HEADER_ERR_H | 60 | #define HEADER_ERR_H |
| 61 | 61 | ||
| 62 | #include <openssl/e_os2.h> | ||
| 63 | |||
| 64 | #ifndef OPENSSL_NO_FP_API | 62 | #ifndef OPENSSL_NO_FP_API |
| 65 | #include <stdio.h> | 63 | #include <stdio.h> |
| 66 | #include <stdlib.h> | 64 | #include <stdlib.h> |
| 67 | #endif | 65 | #endif |
| 68 | 66 | ||
| 69 | #include <openssl/ossl_typ.h> | ||
| 70 | #ifndef OPENSSL_NO_BIO | 67 | #ifndef OPENSSL_NO_BIO |
| 71 | #include <openssl/bio.h> | 68 | #include <openssl/bio.h> |
| 72 | #endif | 69 | #endif |
| @@ -89,13 +86,10 @@ extern "C" { | |||
| 89 | #define ERR_TXT_MALLOCED 0x01 | 86 | #define ERR_TXT_MALLOCED 0x01 |
| 90 | #define ERR_TXT_STRING 0x02 | 87 | #define ERR_TXT_STRING 0x02 |
| 91 | 88 | ||
| 92 | #define ERR_FLAG_MARK 0x01 | ||
| 93 | |||
| 94 | #define ERR_NUM_ERRORS 16 | 89 | #define ERR_NUM_ERRORS 16 |
| 95 | typedef struct err_state_st | 90 | typedef struct err_state_st |
| 96 | { | 91 | { |
| 97 | unsigned long pid; | 92 | unsigned long pid; |
| 98 | int err_flags[ERR_NUM_ERRORS]; | ||
| 99 | unsigned long err_buffer[ERR_NUM_ERRORS]; | 93 | unsigned long err_buffer[ERR_NUM_ERRORS]; |
| 100 | char *err_data[ERR_NUM_ERRORS]; | 94 | char *err_data[ERR_NUM_ERRORS]; |
| 101 | int err_data_flags[ERR_NUM_ERRORS]; | 95 | int err_data_flags[ERR_NUM_ERRORS]; |
| @@ -137,10 +131,7 @@ typedef struct err_state_st | |||
| 137 | #define ERR_LIB_OCSP 39 | 131 | #define ERR_LIB_OCSP 39 |
| 138 | #define ERR_LIB_UI 40 | 132 | #define ERR_LIB_UI 40 |
| 139 | #define ERR_LIB_COMP 41 | 133 | #define ERR_LIB_COMP 41 |
| 140 | #define ERR_LIB_ECDSA 42 | 134 | #define ERR_LIB_FIPS 42 |
| 141 | #define ERR_LIB_ECDH 43 | ||
| 142 | #define ERR_LIB_STORE 44 | ||
| 143 | #define ERR_LIB_CMS 45 | ||
| 144 | 135 | ||
| 145 | #define ERR_LIB_USER 128 | 136 | #define ERR_LIB_USER 128 |
| 146 | 137 | ||
| @@ -169,10 +160,7 @@ typedef struct err_state_st | |||
| 169 | #define OCSPerr(f,r) ERR_PUT_error(ERR_LIB_OCSP,(f),(r),__FILE__,__LINE__) | 160 | #define OCSPerr(f,r) ERR_PUT_error(ERR_LIB_OCSP,(f),(r),__FILE__,__LINE__) |
| 170 | #define UIerr(f,r) ERR_PUT_error(ERR_LIB_UI,(f),(r),__FILE__,__LINE__) | 161 | #define UIerr(f,r) ERR_PUT_error(ERR_LIB_UI,(f),(r),__FILE__,__LINE__) |
| 171 | #define COMPerr(f,r) ERR_PUT_error(ERR_LIB_COMP,(f),(r),__FILE__,__LINE__) | 162 | #define COMPerr(f,r) ERR_PUT_error(ERR_LIB_COMP,(f),(r),__FILE__,__LINE__) |
| 172 | #define ECDSAerr(f,r) ERR_PUT_error(ERR_LIB_ECDSA,(f),(r),__FILE__,__LINE__) | 163 | #define FIPSerr(f,r) ERR_PUT_error(ERR_LIB_FIPS,(f),(r),__FILE__,__LINE__) |
| 173 | #define ECDHerr(f,r) ERR_PUT_error(ERR_LIB_ECDH,(f),(r),__FILE__,__LINE__) | ||
| 174 | #define STOREerr(f,r) ERR_PUT_error(ERR_LIB_STORE,(f),(r),__FILE__,__LINE__) | ||
| 175 | #define CMSerr(f,r) ERR_PUT_error(ERR_LIB_CMS,(f),(r),__FILE__,__LINE__) | ||
| 176 | 164 | ||
| 177 | /* Borland C seems too stupid to be able to shift and do longs in | 165 | /* Borland C seems too stupid to be able to shift and do longs in |
| 178 | * the pre-processor :-( */ | 166 | * the pre-processor :-( */ |
| @@ -197,6 +185,7 @@ typedef struct err_state_st | |||
| 197 | #define SYS_F_WSASTARTUP 9 /* Winsock stuff */ | 185 | #define SYS_F_WSASTARTUP 9 /* Winsock stuff */ |
| 198 | #define SYS_F_OPENDIR 10 | 186 | #define SYS_F_OPENDIR 10 |
| 199 | #define SYS_F_FREAD 11 | 187 | #define SYS_F_FREAD 11 |
| 188 | #define SYS_F_GETADDRINFO 12 | ||
| 200 | 189 | ||
| 201 | 190 | ||
| 202 | /* reasons */ | 191 | /* reasons */ |
| @@ -225,9 +214,6 @@ typedef struct err_state_st | |||
| 225 | #define ERR_R_OCSP_LIB ERR_LIB_OCSP /* 39 */ | 214 | #define ERR_R_OCSP_LIB ERR_LIB_OCSP /* 39 */ |
| 226 | #define ERR_R_UI_LIB ERR_LIB_UI /* 40 */ | 215 | #define ERR_R_UI_LIB ERR_LIB_UI /* 40 */ |
| 227 | #define ERR_R_COMP_LIB ERR_LIB_COMP /* 41 */ | 216 | #define ERR_R_COMP_LIB ERR_LIB_COMP /* 41 */ |
| 228 | #define ERR_R_ECDSA_LIB ERR_LIB_ECDSA /* 42 */ | ||
| 229 | #define ERR_R_ECDH_LIB ERR_LIB_ECDH /* 43 */ | ||
| 230 | #define ERR_R_STORE_LIB ERR_LIB_STORE /* 44 */ | ||
| 231 | 217 | ||
| 232 | #define ERR_R_NESTED_ASN1_ERROR 58 | 218 | #define ERR_R_NESTED_ASN1_ERROR 58 |
| 233 | #define ERR_R_BAD_ASN1_OBJECT_HEADER 59 | 219 | #define ERR_R_BAD_ASN1_OBJECT_HEADER 59 |
| @@ -242,7 +228,6 @@ typedef struct err_state_st | |||
| 242 | #define ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED (2|ERR_R_FATAL) | 228 | #define ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED (2|ERR_R_FATAL) |
| 243 | #define ERR_R_PASSED_NULL_PARAMETER (3|ERR_R_FATAL) | 229 | #define ERR_R_PASSED_NULL_PARAMETER (3|ERR_R_FATAL) |
| 244 | #define ERR_R_INTERNAL_ERROR (4|ERR_R_FATAL) | 230 | #define ERR_R_INTERNAL_ERROR (4|ERR_R_FATAL) |
| 245 | #define ERR_R_DISABLED (5|ERR_R_FATAL) | ||
| 246 | 231 | ||
| 247 | /* 99 is the maximum possible ERR_R_... code, higher values | 232 | /* 99 is the maximum possible ERR_R_... code, higher values |
| 248 | * are reserved for the individual libraries */ | 233 | * are reserved for the individual libraries */ |
| @@ -301,11 +286,8 @@ void ERR_release_err_state_table(LHASH **hash); | |||
| 301 | 286 | ||
| 302 | int ERR_get_next_error_library(void); | 287 | int ERR_get_next_error_library(void); |
| 303 | 288 | ||
| 304 | int ERR_set_mark(void); | 289 | /* This opaque type encapsulates the low-level error-state functions */ |
| 305 | int ERR_pop_to_mark(void); | 290 | typedef struct st_ERR_FNS ERR_FNS; |
| 306 | |||
| 307 | /* Already defined in ossl_typ.h */ | ||
| 308 | /* typedef struct st_ERR_FNS ERR_FNS; */ | ||
| 309 | /* An application can use this function and provide the return value to loaded | 291 | /* An application can use this function and provide the return value to loaded |
| 310 | * modules that should use the application's ERR state/functionality */ | 292 | * modules that should use the application's ERR state/functionality */ |
| 311 | const ERR_FNS *ERR_get_implementation(void); | 293 | const ERR_FNS *ERR_get_implementation(void); |
