ERR_LIB_USER should be the last error.
Consumers sometimes use ERR_LIB_USER + <favorite number> instead of ERR_get_next_error_library. To avoid causing them grief, keep ERR_LIB_USER last. Change-Id: Id19ae7836c41d5b156044bd20d417daf643bdda2 Reviewed-on: https://boringssl-review.googlesource.com/5290 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
3570d73bf1
commit
207bb4391f
@ -512,8 +512,8 @@ static const char *const kLibraryNames[ERR_NUM_LIBS] = {
|
||||
"HMAC routines", /* ERR_LIB_HMAC */
|
||||
"Digest functions", /* ERR_LIB_DIGEST */
|
||||
"Cipher functions", /* ERR_LIB_CIPHER */
|
||||
"User defined functions", /* ERR_LIB_USER */
|
||||
"HKDF functions", /* ERR_LIB_HKDF */
|
||||
"User defined functions", /* ERR_LIB_USER */
|
||||
};
|
||||
|
||||
const char *ERR_lib_error_string(uint32_t packed_error) {
|
||||
|
@ -59,8 +59,8 @@ var libraryNames = []string{
|
||||
"HMAC",
|
||||
"DIGEST",
|
||||
"CIPHER",
|
||||
"USER",
|
||||
"HKDF",
|
||||
"USER",
|
||||
}
|
||||
|
||||
// stringList is a map from uint32 -> string which can output data for a sorted
|
||||
|
@ -430,8 +430,8 @@ enum {
|
||||
ERR_LIB_HMAC,
|
||||
ERR_LIB_DIGEST,
|
||||
ERR_LIB_CIPHER,
|
||||
ERR_LIB_USER,
|
||||
ERR_LIB_HKDF,
|
||||
ERR_LIB_USER,
|
||||
ERR_NUM_LIBS
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user