diff options
author | David Benjamin <davidben@chromium.org> | 2015-06-29 19:37:55 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-07-16 05:03:03 +0300 |
commit | 207bb4391f0551bd51115031bc48a8f2f97ba980 (patch) | |
tree | 614ea2d23050879a8e8fd2ebaae5b3e27f7a9dc6 /crypto/err | |
parent | 3570d73bf1261340c0c3039553cb4ef690f3d8ba (diff) |
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>
Diffstat (limited to 'crypto/err')
-rw-r--r-- | crypto/err/err.c | 2 | ||||
-rw-r--r-- | crypto/err/err_data_generate.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/err/err.c b/crypto/err/err.c index f19d26bf..417d3227 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -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) { diff --git a/crypto/err/err_data_generate.go b/crypto/err/err_data_generate.go index 8b1c02d9..24e0d66f 100644 --- a/crypto/err/err_data_generate.go +++ b/crypto/err/err_data_generate.go @@ -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 |