diff options
author | David Benjamin <davidben@chromium.org> | 2015-06-29 06:36:21 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-07-16 05:02:08 +0300 |
commit | 34248d4cb74eee28bb226fd1d480aef03838ac4d (patch) | |
tree | ef9cf5e7d5118edb18195e3a8454e2acf010ebb3 /include/openssl/obj.h | |
parent | 7f15ff53d82a1991d6732d2303eb652b1cf7e023 (diff) |
Get rid of err function codes.
Running make_errors.go every time a function is renamed is incredibly
tedious. Plus we keep getting them wrong.
Instead, sample __func__ (__FUNCTION__ in MSVC) in the OPENSSL_PUT_ERROR macro
and store it alongside file and line number. This doesn't change the format of
ERR_print_errors, however ERR_error_string_n now uses the placeholder
"OPENSSL_internal" rather than an actual function name since that only takes
the uint32_t packed error code as input.
This updates err scripts to not emit the function string table. The
OPENSSL_PUT_ERROR invocations, for now, still include the extra
parameter. That will be removed in a follow-up.
BUG=468039
Change-Id: Iaa2ef56991fb58892fa8a1283b3b8b995fbb308d
Reviewed-on: https://boringssl-review.googlesource.com/5275
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/obj.h')
-rw-r--r-- | include/openssl/obj.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/openssl/obj.h b/include/openssl/obj.h index ac7d0e1b..0c7ae60b 100644 --- a/include/openssl/obj.h +++ b/include/openssl/obj.h @@ -193,10 +193,6 @@ OPENSSL_EXPORT int OBJ_find_sigid_by_algs(int *out_sign_nid, int digest_nid, } /* extern C */ #endif -#define OBJ_F_OBJ_create 100 -#define OBJ_F_OBJ_dup 101 -#define OBJ_F_OBJ_nid2obj 102 -#define OBJ_F_OBJ_txt2obj 103 #define OBJ_R_UNKNOWN_NID 100 #endif /* OPENSSL_HEADER_OBJECTS_H */ |