diff options
Diffstat (limited to 'src/lib/libcrypto/objects/obj_err.c')
-rw-r--r-- | src/lib/libcrypto/objects/obj_err.c | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/src/lib/libcrypto/objects/obj_err.c b/src/lib/libcrypto/objects/obj_err.c index 0682979b38..2b5f43e3cc 100644 --- a/src/lib/libcrypto/objects/obj_err.c +++ b/src/lib/libcrypto/objects/obj_err.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* crypto/objects/obj_err.c */ | 1 | /* crypto/objects/obj_err.c */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2004 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,26 +64,22 @@ | |||
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_OBJ,func,0) | ||
69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_OBJ,0,reason) | ||
70 | |||
71 | static ERR_STRING_DATA OBJ_str_functs[]= | 67 | static ERR_STRING_DATA OBJ_str_functs[]= |
72 | { | 68 | { |
73 | {ERR_FUNC(OBJ_F_OBJ_ADD_OBJECT), "OBJ_add_object"}, | 69 | {ERR_PACK(0,OBJ_F_OBJ_ADD_OBJECT,0), "OBJ_add_object"}, |
74 | {ERR_FUNC(OBJ_F_OBJ_CREATE), "OBJ_create"}, | 70 | {ERR_PACK(0,OBJ_F_OBJ_CREATE,0), "OBJ_create"}, |
75 | {ERR_FUNC(OBJ_F_OBJ_DUP), "OBJ_dup"}, | 71 | {ERR_PACK(0,OBJ_F_OBJ_DUP,0), "OBJ_dup"}, |
76 | {ERR_FUNC(OBJ_F_OBJ_NAME_NEW_INDEX), "OBJ_NAME_new_index"}, | 72 | {ERR_PACK(0,OBJ_F_OBJ_NAME_NEW_INDEX,0), "OBJ_NAME_new_index"}, |
77 | {ERR_FUNC(OBJ_F_OBJ_NID2LN), "OBJ_nid2ln"}, | 73 | {ERR_PACK(0,OBJ_F_OBJ_NID2LN,0), "OBJ_nid2ln"}, |
78 | {ERR_FUNC(OBJ_F_OBJ_NID2OBJ), "OBJ_nid2obj"}, | 74 | {ERR_PACK(0,OBJ_F_OBJ_NID2OBJ,0), "OBJ_nid2obj"}, |
79 | {ERR_FUNC(OBJ_F_OBJ_NID2SN), "OBJ_nid2sn"}, | 75 | {ERR_PACK(0,OBJ_F_OBJ_NID2SN,0), "OBJ_nid2sn"}, |
80 | {0,NULL} | 76 | {0,NULL} |
81 | }; | 77 | }; |
82 | 78 | ||
83 | static ERR_STRING_DATA OBJ_str_reasons[]= | 79 | static ERR_STRING_DATA OBJ_str_reasons[]= |
84 | { | 80 | { |
85 | {ERR_REASON(OBJ_R_MALLOC_FAILURE) ,"malloc failure"}, | 81 | {OBJ_R_MALLOC_FAILURE ,"malloc failure"}, |
86 | {ERR_REASON(OBJ_R_UNKNOWN_NID) ,"unknown nid"}, | 82 | {OBJ_R_UNKNOWN_NID ,"unknown nid"}, |
87 | {0,NULL} | 83 | {0,NULL} |
88 | }; | 84 | }; |
89 | 85 | ||
@@ -97,8 +93,8 @@ void ERR_load_OBJ_strings(void) | |||
97 | { | 93 | { |
98 | init=0; | 94 | init=0; |
99 | #ifndef OPENSSL_NO_ERR | 95 | #ifndef OPENSSL_NO_ERR |
100 | ERR_load_strings(0,OBJ_str_functs); | 96 | ERR_load_strings(ERR_LIB_OBJ,OBJ_str_functs); |
101 | ERR_load_strings(0,OBJ_str_reasons); | 97 | ERR_load_strings(ERR_LIB_OBJ,OBJ_str_reasons); |
102 | #endif | 98 | #endif |
103 | 99 | ||
104 | } | 100 | } |