diff options
Diffstat (limited to 'src/lib/libcrypto/buffer/buf_err.c')
-rw-r--r-- | src/lib/libcrypto/buffer/buf_err.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/lib/libcrypto/buffer/buf_err.c b/src/lib/libcrypto/buffer/buf_err.c index 1fc32a6861..5eee653e14 100644 --- a/src/lib/libcrypto/buffer/buf_err.c +++ b/src/lib/libcrypto/buffer/buf_err.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* crypto/buffer/buf_err.c */ | 1 | /* crypto/buffer/buf_err.c */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions | 6 | * modification, are permitted provided that the following conditions |
@@ -64,15 +64,11 @@ | |||
64 | 64 | ||
65 | /* BEGIN ERROR CODES */ | 65 | /* BEGIN ERROR CODES */ |
66 | #ifndef OPENSSL_NO_ERR | 66 | #ifndef OPENSSL_NO_ERR |
67 | |||
68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_BUF,func,0) | ||
69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_BUF,0,reason) | ||
70 | |||
71 | static ERR_STRING_DATA BUF_str_functs[]= | 67 | static ERR_STRING_DATA BUF_str_functs[]= |
72 | { | 68 | { |
73 | {ERR_FUNC(BUF_F_BUF_MEM_GROW), "BUF_MEM_grow"}, | 69 | {ERR_PACK(0,BUF_F_BUF_MEM_GROW,0), "BUF_MEM_grow"}, |
74 | {ERR_FUNC(BUF_F_BUF_MEM_NEW), "BUF_MEM_new"}, | 70 | {ERR_PACK(0,BUF_F_BUF_MEM_NEW,0), "BUF_MEM_new"}, |
75 | {ERR_FUNC(BUF_F_BUF_STRDUP), "BUF_strdup"}, | 71 | {ERR_PACK(0,BUF_F_BUF_STRDUP,0), "BUF_strdup"}, |
76 | {0,NULL} | 72 | {0,NULL} |
77 | }; | 73 | }; |
78 | 74 | ||
@@ -91,8 +87,8 @@ void ERR_load_BUF_strings(void) | |||
91 | { | 87 | { |
92 | init=0; | 88 | init=0; |
93 | #ifndef OPENSSL_NO_ERR | 89 | #ifndef OPENSSL_NO_ERR |
94 | ERR_load_strings(0,BUF_str_functs); | 90 | ERR_load_strings(ERR_LIB_BUF,BUF_str_functs); |
95 | ERR_load_strings(0,BUF_str_reasons); | 91 | ERR_load_strings(ERR_LIB_BUF,BUF_str_reasons); |
96 | #endif | 92 | #endif |
97 | 93 | ||
98 | } | 94 | } |