34248d4cb7
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>
26 lines
763 B
Plaintext
26 lines
763 B
Plaintext
CIPHER,100,AES_KEY_SETUP_FAILED
|
|
CIPHER,101,BAD_DECRYPT
|
|
CIPHER,102,BAD_KEY_LENGTH
|
|
CIPHER,103,BUFFER_TOO_SMALL
|
|
CIPHER,104,CTRL_NOT_IMPLEMENTED
|
|
CIPHER,105,CTRL_OPERATION_NOT_IMPLEMENTED
|
|
CIPHER,106,DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH
|
|
CIPHER,107,INITIALIZATION_ERROR
|
|
CIPHER,108,INPUT_NOT_INITIALIZED
|
|
CIPHER,109,INVALID_AD_SIZE
|
|
CIPHER,110,INVALID_KEY_LENGTH
|
|
CIPHER,111,INVALID_NONCE_SIZE
|
|
CIPHER,112,INVALID_OPERATION
|
|
CIPHER,113,IV_TOO_LARGE
|
|
CIPHER,114,NO_CIPHER_SET
|
|
CIPHER,124,NO_DIRECTION_SET
|
|
CIPHER,115,OUTPUT_ALIASES_INPUT
|
|
CIPHER,116,TAG_TOO_LARGE
|
|
CIPHER,117,TOO_LARGE
|
|
CIPHER,118,UNSUPPORTED_AD_SIZE
|
|
CIPHER,119,UNSUPPORTED_INPUT_SIZE
|
|
CIPHER,120,UNSUPPORTED_KEY_SIZE
|
|
CIPHER,121,UNSUPPORTED_NONCE_SIZE
|
|
CIPHER,122,UNSUPPORTED_TAG_SIZE
|
|
CIPHER,123,WRONG_FINAL_BLOCK_LENGTH
|