mirror of
https://github.com/openssl/openssl.git
synced 2025-03-31 20:10:45 +08:00
ERR: clean away everything related to _F_ macros from util/mkerr.pl
Instead, we preserve all the pre-3.0 _F_ macros in the backward compatibility headers include/openssl/cryptoerr_legacy.h and include/openssl/sslerr_legacy.h Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13392)
This commit is contained in:
parent
bbde856619
commit
b14c8465c0
File diff suppressed because it is too large
Load Diff
@ -27,10 +27,442 @@ extern "C" {
|
||||
|
||||
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
||||
OSSL_DEPRECATEDIN_3_0 int ERR_load_SSL_strings(void);
|
||||
|
||||
/* Collected _F_ macros from OpenSSL 1.1.1 */
|
||||
|
||||
/*
|
||||
* SSL function codes.
|
||||
*/
|
||||
# define SSL_F_ADD_CLIENT_KEY_SHARE_EXT 0
|
||||
# define SSL_F_ADD_KEY_SHARE 0
|
||||
# define SSL_F_BYTES_TO_CIPHER_LIST 0
|
||||
# define SSL_F_CHECK_SUITEB_CIPHER_LIST 0
|
||||
# define SSL_F_CIPHERSUITE_CB 0
|
||||
# define SSL_F_CONSTRUCT_CA_NAMES 0
|
||||
# define SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS 0
|
||||
# define SSL_F_CONSTRUCT_STATEFUL_TICKET 0
|
||||
# define SSL_F_CONSTRUCT_STATELESS_TICKET 0
|
||||
# define SSL_F_CREATE_SYNTHETIC_MESSAGE_HASH 0
|
||||
# define SSL_F_CREATE_TICKET_PREQUEL 0
|
||||
# define SSL_F_CT_MOVE_SCTS 0
|
||||
# define SSL_F_CT_STRICT 0
|
||||
# define SSL_F_CUSTOM_EXT_ADD 0
|
||||
# define SSL_F_CUSTOM_EXT_PARSE 0
|
||||
# define SSL_F_D2I_SSL_SESSION 0
|
||||
# define SSL_F_DANE_CTX_ENABLE 0
|
||||
# define SSL_F_DANE_MTYPE_SET 0
|
||||
# define SSL_F_DANE_TLSA_ADD 0
|
||||
# define SSL_F_DERIVE_SECRET_KEY_AND_IV 0
|
||||
# define SSL_F_DO_DTLS1_WRITE 0
|
||||
# define SSL_F_DO_SSL3_WRITE 0
|
||||
# define SSL_F_DTLS1_BUFFER_RECORD 0
|
||||
# define SSL_F_DTLS1_CHECK_TIMEOUT_NUM 0
|
||||
# define SSL_F_DTLS1_HEARTBEAT 0
|
||||
# define SSL_F_DTLS1_HM_FRAGMENT_NEW 0
|
||||
# define SSL_F_DTLS1_PREPROCESS_FRAGMENT 0
|
||||
# define SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS 0
|
||||
# define SSL_F_DTLS1_PROCESS_RECORD 0
|
||||
# define SSL_F_DTLS1_READ_BYTES 0
|
||||
# define SSL_F_DTLS1_READ_FAILED 0
|
||||
# define SSL_F_DTLS1_RETRANSMIT_MESSAGE 0
|
||||
# define SSL_F_DTLS1_WRITE_APP_DATA_BYTES 0
|
||||
# define SSL_F_DTLS1_WRITE_BYTES 0
|
||||
# define SSL_F_DTLSV1_LISTEN 0
|
||||
# define SSL_F_DTLS_CONSTRUCT_CHANGE_CIPHER_SPEC 0
|
||||
# define SSL_F_DTLS_CONSTRUCT_HELLO_VERIFY_REQUEST 0
|
||||
# define SSL_F_DTLS_GET_REASSEMBLED_MESSAGE 0
|
||||
# define SSL_F_DTLS_PROCESS_HELLO_VERIFY 0
|
||||
# define SSL_F_DTLS_RECORD_LAYER_NEW 0
|
||||
# define SSL_F_DTLS_WAIT_FOR_DRY 0
|
||||
# define SSL_F_EARLY_DATA_COUNT_OK 0
|
||||
# define SSL_F_FINAL_EARLY_DATA 0
|
||||
# define SSL_F_FINAL_EC_PT_FORMATS 0
|
||||
# define SSL_F_FINAL_EMS 0
|
||||
# define SSL_F_FINAL_KEY_SHARE 0
|
||||
# define SSL_F_FINAL_MAXFRAGMENTLEN 0
|
||||
# define SSL_F_FINAL_RENEGOTIATE 0
|
||||
# define SSL_F_FINAL_SERVER_NAME 0
|
||||
# define SSL_F_FINAL_SIG_ALGS 0
|
||||
# define SSL_F_GET_CERT_VERIFY_TBS_DATA 0
|
||||
# define SSL_F_NSS_KEYLOG_INT 0
|
||||
# define SSL_F_OPENSSL_INIT_SSL 0
|
||||
# define SSL_F_OSSL_STATEM_CLIENT13_READ_TRANSITION 0
|
||||
# define SSL_F_OSSL_STATEM_CLIENT13_WRITE_TRANSITION 0
|
||||
# define SSL_F_OSSL_STATEM_CLIENT_CONSTRUCT_MESSAGE 0
|
||||
# define SSL_F_OSSL_STATEM_CLIENT_POST_PROCESS_MESSAGE 0
|
||||
# define SSL_F_OSSL_STATEM_CLIENT_PROCESS_MESSAGE 0
|
||||
# define SSL_F_OSSL_STATEM_CLIENT_READ_TRANSITION 0
|
||||
# define SSL_F_OSSL_STATEM_CLIENT_WRITE_TRANSITION 0
|
||||
# define SSL_F_OSSL_STATEM_SERVER13_READ_TRANSITION 0
|
||||
# define SSL_F_OSSL_STATEM_SERVER13_WRITE_TRANSITION 0
|
||||
# define SSL_F_OSSL_STATEM_SERVER_CONSTRUCT_MESSAGE 0
|
||||
# define SSL_F_OSSL_STATEM_SERVER_POST_PROCESS_MESSAGE 0
|
||||
# define SSL_F_OSSL_STATEM_SERVER_POST_WORK 0
|
||||
# define SSL_F_OSSL_STATEM_SERVER_PRE_WORK 0
|
||||
# define SSL_F_OSSL_STATEM_SERVER_PROCESS_MESSAGE 0
|
||||
# define SSL_F_OSSL_STATEM_SERVER_READ_TRANSITION 0
|
||||
# define SSL_F_OSSL_STATEM_SERVER_WRITE_TRANSITION 0
|
||||
# define SSL_F_PARSE_CA_NAMES 0
|
||||
# define SSL_F_PITEM_NEW 0
|
||||
# define SSL_F_PQUEUE_NEW 0
|
||||
# define SSL_F_PROCESS_KEY_SHARE_EXT 0
|
||||
# define SSL_F_READ_STATE_MACHINE 0
|
||||
# define SSL_F_SET_CLIENT_CIPHERSUITE 0
|
||||
# define SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET 0
|
||||
# define SSL_F_SRP_GENERATE_SERVER_MASTER_SECRET 0
|
||||
# define SSL_F_SRP_VERIFY_SERVER_PARAM 0
|
||||
# define SSL_F_SSL3_CHANGE_CIPHER_STATE 0
|
||||
# define SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM 0
|
||||
# define SSL_F_SSL3_CTRL 0
|
||||
# define SSL_F_SSL3_CTX_CTRL 0
|
||||
# define SSL_F_SSL3_DIGEST_CACHED_RECORDS 0
|
||||
# define SSL_F_SSL3_DO_CHANGE_CIPHER_SPEC 0
|
||||
# define SSL_F_SSL3_ENC 0
|
||||
# define SSL_F_SSL3_FINAL_FINISH_MAC 0
|
||||
# define SSL_F_SSL3_FINISH_MAC 0
|
||||
# define SSL_F_SSL3_GENERATE_KEY_BLOCK 0
|
||||
# define SSL_F_SSL3_GENERATE_MASTER_SECRET 0
|
||||
# define SSL_F_SSL3_GET_RECORD 0
|
||||
# define SSL_F_SSL3_INIT_FINISHED_MAC 0
|
||||
# define SSL_F_SSL3_OUTPUT_CERT_CHAIN 0
|
||||
# define SSL_F_SSL3_READ_BYTES 0
|
||||
# define SSL_F_SSL3_READ_N 0
|
||||
# define SSL_F_SSL3_SETUP_KEY_BLOCK 0
|
||||
# define SSL_F_SSL3_SETUP_READ_BUFFER 0
|
||||
# define SSL_F_SSL3_SETUP_WRITE_BUFFER 0
|
||||
# define SSL_F_SSL3_WRITE_BYTES 0
|
||||
# define SSL_F_SSL3_WRITE_PENDING 0
|
||||
# define SSL_F_SSL_ADD_CERT_CHAIN 0
|
||||
# define SSL_F_SSL_ADD_CERT_TO_BUF 0
|
||||
# define SSL_F_SSL_ADD_CERT_TO_WPACKET 0
|
||||
# define SSL_F_SSL_ADD_CLIENTHELLO_RENEGOTIATE_EXT 0
|
||||
# define SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT 0
|
||||
# define SSL_F_SSL_ADD_CLIENTHELLO_USE_SRTP_EXT 0
|
||||
# define SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK 0
|
||||
# define SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK 0
|
||||
# define SSL_F_SSL_ADD_SERVERHELLO_RENEGOTIATE_EXT 0
|
||||
# define SSL_F_SSL_ADD_SERVERHELLO_TLSEXT 0
|
||||
# define SSL_F_SSL_ADD_SERVERHELLO_USE_SRTP_EXT 0
|
||||
# define SSL_F_SSL_BAD_METHOD 0
|
||||
# define SSL_F_SSL_BUILD_CERT_CHAIN 0
|
||||
# define SSL_F_SSL_BYTES_TO_CIPHER_LIST 0
|
||||
# define SSL_F_SSL_CACHE_CIPHERLIST 0
|
||||
# define SSL_F_SSL_CERT_ADD0_CHAIN_CERT 0
|
||||
# define SSL_F_SSL_CERT_DUP 0
|
||||
# define SSL_F_SSL_CERT_NEW 0
|
||||
# define SSL_F_SSL_CERT_SET0_CHAIN 0
|
||||
# define SSL_F_SSL_CHECK_PRIVATE_KEY 0
|
||||
# define SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT 0
|
||||
# define SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO 0
|
||||
# define SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG 0
|
||||
# define SSL_F_SSL_CHOOSE_CLIENT_VERSION 0
|
||||
# define SSL_F_SSL_CIPHER_DESCRIPTION 0
|
||||
# define SSL_F_SSL_CIPHER_LIST_TO_BYTES 0
|
||||
# define SSL_F_SSL_CIPHER_PROCESS_RULESTR 0
|
||||
# define SSL_F_SSL_CIPHER_STRENGTH_SORT 0
|
||||
# define SSL_F_SSL_CLEAR 0
|
||||
# define SSL_F_SSL_CLIENT_HELLO_GET1_EXTENSIONS_PRESENT 0
|
||||
# define SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD 0
|
||||
# define SSL_F_SSL_CONF_CMD 0
|
||||
# define SSL_F_SSL_CREATE_CIPHER_LIST 0
|
||||
# define SSL_F_SSL_CTRL 0
|
||||
# define SSL_F_SSL_CTX_CHECK_PRIVATE_KEY 0
|
||||
# define SSL_F_SSL_CTX_ENABLE_CT 0
|
||||
# define SSL_F_SSL_CTX_MAKE_PROFILES 0
|
||||
# define SSL_F_SSL_CTX_NEW 0
|
||||
# define SSL_F_SSL_CTX_SET_ALPN_PROTOS 0
|
||||
# define SSL_F_SSL_CTX_SET_CIPHER_LIST 0
|
||||
# define SSL_F_SSL_CTX_SET_CLIENT_CERT_ENGINE 0
|
||||
# define SSL_F_SSL_CTX_SET_CT_VALIDATION_CALLBACK 0
|
||||
# define SSL_F_SSL_CTX_SET_SESSION_ID_CONTEXT 0
|
||||
# define SSL_F_SSL_CTX_SET_SSL_VERSION 0
|
||||
# define SSL_F_SSL_CTX_SET_TLSEXT_MAX_FRAGMENT_LENGTH 0
|
||||
# define SSL_F_SSL_CTX_USE_CERTIFICATE 0
|
||||
# define SSL_F_SSL_CTX_USE_CERTIFICATE_ASN1 0
|
||||
# define SSL_F_SSL_CTX_USE_CERTIFICATE_FILE 0
|
||||
# define SSL_F_SSL_CTX_USE_PRIVATEKEY 0
|
||||
# define SSL_F_SSL_CTX_USE_PRIVATEKEY_ASN1 0
|
||||
# define SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE 0
|
||||
# define SSL_F_SSL_CTX_USE_PSK_IDENTITY_HINT 0
|
||||
# define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY 0
|
||||
# define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_ASN1 0
|
||||
# define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_FILE 0
|
||||
# define SSL_F_SSL_CTX_USE_SERVERINFO 0
|
||||
# define SSL_F_SSL_CTX_USE_SERVERINFO_EX 0
|
||||
# define SSL_F_SSL_CTX_USE_SERVERINFO_FILE 0
|
||||
# define SSL_F_SSL_DANE_DUP 0
|
||||
# define SSL_F_SSL_DANE_ENABLE 0
|
||||
# define SSL_F_SSL_DERIVE 0
|
||||
# define SSL_F_SSL_DO_CONFIG 0
|
||||
# define SSL_F_SSL_DO_HANDSHAKE 0
|
||||
# define SSL_F_SSL_DUP_CA_LIST 0
|
||||
# define SSL_F_SSL_ENABLE_CT 0
|
||||
# define SSL_F_SSL_GENERATE_PKEY_GROUP 0
|
||||
# define SSL_F_SSL_GENERATE_SESSION_ID 0
|
||||
# define SSL_F_SSL_GET_NEW_SESSION 0
|
||||
# define SSL_F_SSL_GET_PREV_SESSION 0
|
||||
# define SSL_F_SSL_GET_SERVER_CERT_INDEX 0
|
||||
# define SSL_F_SSL_GET_SIGN_PKEY 0
|
||||
# define SSL_F_SSL_HANDSHAKE_HASH 0
|
||||
# define SSL_F_SSL_INIT_WBIO_BUFFER 0
|
||||
# define SSL_F_SSL_KEY_UPDATE 0
|
||||
# define SSL_F_SSL_LOAD_CLIENT_CA_FILE 0
|
||||
# define SSL_F_SSL_LOG_MASTER_SECRET 0
|
||||
# define SSL_F_SSL_LOG_RSA_CLIENT_KEY_EXCHANGE 0
|
||||
# define SSL_F_SSL_MODULE_INIT 0
|
||||
# define SSL_F_SSL_NEW 0
|
||||
# define SSL_F_SSL_NEXT_PROTO_VALIDATE 0
|
||||
# define SSL_F_SSL_PARSE_CLIENTHELLO_RENEGOTIATE_EXT 0
|
||||
# define SSL_F_SSL_PARSE_CLIENTHELLO_TLSEXT 0
|
||||
# define SSL_F_SSL_PARSE_CLIENTHELLO_USE_SRTP_EXT 0
|
||||
# define SSL_F_SSL_PARSE_SERVERHELLO_RENEGOTIATE_EXT 0
|
||||
# define SSL_F_SSL_PARSE_SERVERHELLO_TLSEXT 0
|
||||
# define SSL_F_SSL_PARSE_SERVERHELLO_USE_SRTP_EXT 0
|
||||
# define SSL_F_SSL_PEEK 0
|
||||
# define SSL_F_SSL_PEEK_EX 0
|
||||
# define SSL_F_SSL_PEEK_INTERNAL 0
|
||||
# define SSL_F_SSL_READ 0
|
||||
# define SSL_F_SSL_READ_EARLY_DATA 0
|
||||
# define SSL_F_SSL_READ_EX 0
|
||||
# define SSL_F_SSL_READ_INTERNAL 0
|
||||
# define SSL_F_SSL_RENEGOTIATE 0
|
||||
# define SSL_F_SSL_RENEGOTIATE_ABBREVIATED 0
|
||||
# define SSL_F_SSL_SCAN_CLIENTHELLO_TLSEXT 0
|
||||
# define SSL_F_SSL_SCAN_SERVERHELLO_TLSEXT 0
|
||||
# define SSL_F_SSL_SESSION_DUP 0
|
||||
# define SSL_F_SSL_SESSION_NEW 0
|
||||
# define SSL_F_SSL_SESSION_PRINT_FP 0
|
||||
# define SSL_F_SSL_SESSION_SET1_ID 0
|
||||
# define SSL_F_SSL_SESSION_SET1_ID_CONTEXT 0
|
||||
# define SSL_F_SSL_SET_ALPN_PROTOS 0
|
||||
# define SSL_F_SSL_SET_CERT 0
|
||||
# define SSL_F_SSL_SET_CERT_AND_KEY 0
|
||||
# define SSL_F_SSL_SET_CIPHER_LIST 0
|
||||
# define SSL_F_SSL_SET_CT_VALIDATION_CALLBACK 0
|
||||
# define SSL_F_SSL_SET_FD 0
|
||||
# define SSL_F_SSL_SET_PKEY 0
|
||||
# define SSL_F_SSL_SET_RFD 0
|
||||
# define SSL_F_SSL_SET_SESSION 0
|
||||
# define SSL_F_SSL_SET_SESSION_ID_CONTEXT 0
|
||||
# define SSL_F_SSL_SET_SESSION_TICKET_EXT 0
|
||||
# define SSL_F_SSL_SET_TLSEXT_MAX_FRAGMENT_LENGTH 0
|
||||
# define SSL_F_SSL_SET_WFD 0
|
||||
# define SSL_F_SSL_SHUTDOWN 0
|
||||
# define SSL_F_SSL_SRP_CTX_INIT 0
|
||||
# define SSL_F_SSL_START_ASYNC_JOB 0
|
||||
# define SSL_F_SSL_UNDEFINED_FUNCTION 0
|
||||
# define SSL_F_SSL_UNDEFINED_VOID_FUNCTION 0
|
||||
# define SSL_F_SSL_USE_CERTIFICATE 0
|
||||
# define SSL_F_SSL_USE_CERTIFICATE_ASN1 0
|
||||
# define SSL_F_SSL_USE_CERTIFICATE_FILE 0
|
||||
# define SSL_F_SSL_USE_PRIVATEKEY 0
|
||||
# define SSL_F_SSL_USE_PRIVATEKEY_ASN1 0
|
||||
# define SSL_F_SSL_USE_PRIVATEKEY_FILE 0
|
||||
# define SSL_F_SSL_USE_PSK_IDENTITY_HINT 0
|
||||
# define SSL_F_SSL_USE_RSAPRIVATEKEY 0
|
||||
# define SSL_F_SSL_USE_RSAPRIVATEKEY_ASN1 0
|
||||
# define SSL_F_SSL_USE_RSAPRIVATEKEY_FILE 0
|
||||
# define SSL_F_SSL_VALIDATE_CT 0
|
||||
# define SSL_F_SSL_VERIFY_CERT_CHAIN 0
|
||||
# define SSL_F_SSL_VERIFY_CLIENT_POST_HANDSHAKE 0
|
||||
# define SSL_F_SSL_WRITE 0
|
||||
# define SSL_F_SSL_WRITE_EARLY_DATA 0
|
||||
# define SSL_F_SSL_WRITE_EARLY_FINISH 0
|
||||
# define SSL_F_SSL_WRITE_EX 0
|
||||
# define SSL_F_SSL_WRITE_INTERNAL 0
|
||||
# define SSL_F_STATE_MACHINE 0
|
||||
# define SSL_F_TLS12_CHECK_PEER_SIGALG 0
|
||||
# define SSL_F_TLS12_COPY_SIGALGS 0
|
||||
# define SSL_F_TLS13_CHANGE_CIPHER_STATE 0
|
||||
# define SSL_F_TLS13_ENC 0
|
||||
# define SSL_F_TLS13_FINAL_FINISH_MAC 0
|
||||
# define SSL_F_TLS13_GENERATE_SECRET 0
|
||||
# define SSL_F_TLS13_HKDF_EXPAND 0
|
||||
# define SSL_F_TLS13_RESTORE_HANDSHAKE_DIGEST_FOR_PHA 0
|
||||
# define SSL_F_TLS13_SAVE_HANDSHAKE_DIGEST_FOR_PHA 0
|
||||
# define SSL_F_TLS13_SETUP_KEY_BLOCK 0
|
||||
# define SSL_F_TLS1_CHANGE_CIPHER_STATE 0
|
||||
# define SSL_F_TLS1_CHECK_DUPLICATE_EXTENSIONS 0
|
||||
# define SSL_F_TLS1_ENC 0
|
||||
# define SSL_F_TLS1_EXPORT_KEYING_MATERIAL 0
|
||||
# define SSL_F_TLS1_GET_CURVELIST 0
|
||||
# define SSL_F_TLS1_PRF 0
|
||||
# define SSL_F_TLS1_SAVE_U16 0
|
||||
# define SSL_F_TLS1_SETUP_KEY_BLOCK 0
|
||||
# define SSL_F_TLS1_SET_GROUPS 0
|
||||
# define SSL_F_TLS1_SET_RAW_SIGALGS 0
|
||||
# define SSL_F_TLS1_SET_SERVER_SIGALGS 0
|
||||
# define SSL_F_TLS1_SET_SHARED_SIGALGS 0
|
||||
# define SSL_F_TLS1_SET_SIGALGS 0
|
||||
# define SSL_F_TLS_CHOOSE_SIGALG 0
|
||||
# define SSL_F_TLS_CLIENT_KEY_EXCHANGE_POST_WORK 0
|
||||
# define SSL_F_TLS_COLLECT_EXTENSIONS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CERTIFICATE_AUTHORITIES 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CERTIFICATE_REQUEST 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CERT_STATUS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CERT_STATUS_BODY 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CERT_VERIFY 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CHANGE_CIPHER_SPEC 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CKE_DHE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CKE_ECDHE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CKE_GOST 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CKE_PSK_PREAMBLE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CKE_RSA 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CKE_SRP 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CLIENT_HELLO 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CLIENT_KEY_EXCHANGE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CLIENT_VERIFY 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_ALPN 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_CERTIFICATE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_COOKIE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_EARLY_DATA 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_EC_PT_FORMATS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_EMS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_ETM 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_HELLO 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_KEY_EXCHANGE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_KEY_SHARE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_MAXFRAGMENTLEN 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_NPN 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_PADDING 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_POST_HANDSHAKE_AUTH 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_PSK 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_RENEGOTIATE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_SCT 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_SERVER_NAME 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_SIG_ALGS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_SRP 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_STATUS_REQUEST 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_VERSIONS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_USE_SRTP 0
|
||||
# define SSL_F_TLS_CONSTRUCT_CTOS_VERIFY 0
|
||||
# define SSL_F_TLS_CONSTRUCT_ENCRYPTED_EXTENSIONS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_END_OF_EARLY_DATA 0
|
||||
# define SSL_F_TLS_CONSTRUCT_EXTENSIONS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_FINISHED 0
|
||||
# define SSL_F_TLS_CONSTRUCT_HELLO_REQUEST 0
|
||||
# define SSL_F_TLS_CONSTRUCT_HELLO_RETRY_REQUEST 0
|
||||
# define SSL_F_TLS_CONSTRUCT_KEY_UPDATE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_NEW_SESSION_TICKET 0
|
||||
# define SSL_F_TLS_CONSTRUCT_NEXT_PROTO 0
|
||||
# define SSL_F_TLS_CONSTRUCT_SERVER_CERTIFICATE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_SERVER_HELLO 0
|
||||
# define SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_ALPN 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_CERTIFICATE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_COOKIE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_DONE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_EARLY_DATA 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_EARLY_DATA_INFO 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_EC_PT_FORMATS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_EMS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_ETM 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_HELLO 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_KEY_EXCHANGE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_MAXFRAGMENTLEN 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_NEXT_PROTO_NEG 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_PSK 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_RENEGOTIATE 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_SERVER_NAME 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_SESSION_TICKET 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_STATUS_REQUEST 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_GROUPS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_VERSIONS 0
|
||||
# define SSL_F_TLS_CONSTRUCT_STOC_USE_SRTP 0
|
||||
# define SSL_F_TLS_EARLY_POST_PROCESS_CLIENT_HELLO 0
|
||||
# define SSL_F_TLS_FINISH_HANDSHAKE 0
|
||||
# define SSL_F_TLS_GET_MESSAGE_BODY 0
|
||||
# define SSL_F_TLS_GET_MESSAGE_HEADER 0
|
||||
# define SSL_F_TLS_HANDLE_ALPN 0
|
||||
# define SSL_F_TLS_HANDLE_STATUS_REQUEST 0
|
||||
# define SSL_F_TLS_PARSE_CERTIFICATE_AUTHORITIES 0
|
||||
# define SSL_F_TLS_PARSE_CLIENTHELLO_TLSEXT 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_ALPN 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_COOKIE 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_EARLY_DATA 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_EC_PT_FORMATS 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_EMS 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_KEY_SHARE 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_MAXFRAGMENTLEN 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_POST_HANDSHAKE_AUTH 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_PSK 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_PSK_KEX_MODES 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_RENEGOTIATE 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_SERVER_NAME 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_SESSION_TICKET 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_SIG_ALGS 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_SIG_ALGS_CERT 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_SRP 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_STATUS_REQUEST 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_SUPPORTED_GROUPS 0
|
||||
# define SSL_F_TLS_PARSE_CTOS_USE_SRTP 0
|
||||
# define SSL_F_TLS_PARSE_STOC_ALPN 0
|
||||
# define SSL_F_TLS_PARSE_STOC_COOKIE 0
|
||||
# define SSL_F_TLS_PARSE_STOC_EARLY_DATA 0
|
||||
# define SSL_F_TLS_PARSE_STOC_EARLY_DATA_INFO 0
|
||||
# define SSL_F_TLS_PARSE_STOC_EC_PT_FORMATS 0
|
||||
# define SSL_F_TLS_PARSE_STOC_KEY_SHARE 0
|
||||
# define SSL_F_TLS_PARSE_STOC_MAXFRAGMENTLEN 0
|
||||
# define SSL_F_TLS_PARSE_STOC_NPN 0
|
||||
# define SSL_F_TLS_PARSE_STOC_PSK 0
|
||||
# define SSL_F_TLS_PARSE_STOC_RENEGOTIATE 0
|
||||
# define SSL_F_TLS_PARSE_STOC_SCT 0
|
||||
# define SSL_F_TLS_PARSE_STOC_SERVER_NAME 0
|
||||
# define SSL_F_TLS_PARSE_STOC_SESSION_TICKET 0
|
||||
# define SSL_F_TLS_PARSE_STOC_STATUS_REQUEST 0
|
||||
# define SSL_F_TLS_PARSE_STOC_SUPPORTED_VERSIONS 0
|
||||
# define SSL_F_TLS_PARSE_STOC_USE_SRTP 0
|
||||
# define SSL_F_TLS_POST_PROCESS_CLIENT_HELLO 0
|
||||
# define SSL_F_TLS_POST_PROCESS_CLIENT_KEY_EXCHANGE 0
|
||||
# define SSL_F_TLS_PREPARE_CLIENT_CERTIFICATE 0
|
||||
# define SSL_F_TLS_PROCESS_AS_HELLO_RETRY_REQUEST 0
|
||||
# define SSL_F_TLS_PROCESS_CERTIFICATE_REQUEST 0
|
||||
# define SSL_F_TLS_PROCESS_CERT_STATUS 0
|
||||
# define SSL_F_TLS_PROCESS_CERT_STATUS_BODY 0
|
||||
# define SSL_F_TLS_PROCESS_CERT_VERIFY 0
|
||||
# define SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC 0
|
||||
# define SSL_F_TLS_PROCESS_CKE_DHE 0
|
||||
# define SSL_F_TLS_PROCESS_CKE_ECDHE 0
|
||||
# define SSL_F_TLS_PROCESS_CKE_GOST 0
|
||||
# define SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE 0
|
||||
# define SSL_F_TLS_PROCESS_CKE_RSA 0
|
||||
# define SSL_F_TLS_PROCESS_CKE_SRP 0
|
||||
# define SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE 0
|
||||
# define SSL_F_TLS_PROCESS_CLIENT_HELLO 0
|
||||
# define SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE 0
|
||||
# define SSL_F_TLS_PROCESS_ENCRYPTED_EXTENSIONS 0
|
||||
# define SSL_F_TLS_PROCESS_END_OF_EARLY_DATA 0
|
||||
# define SSL_F_TLS_PROCESS_FINISHED 0
|
||||
# define SSL_F_TLS_PROCESS_HELLO_REQ 0
|
||||
# define SSL_F_TLS_PROCESS_HELLO_RETRY_REQUEST 0
|
||||
# define SSL_F_TLS_PROCESS_INITIAL_SERVER_FLIGHT 0
|
||||
# define SSL_F_TLS_PROCESS_KEY_EXCHANGE 0
|
||||
# define SSL_F_TLS_PROCESS_KEY_UPDATE 0
|
||||
# define SSL_F_TLS_PROCESS_NEW_SESSION_TICKET 0
|
||||
# define SSL_F_TLS_PROCESS_NEXT_PROTO 0
|
||||
# define SSL_F_TLS_PROCESS_SERVER_CERTIFICATE 0
|
||||
# define SSL_F_TLS_PROCESS_SERVER_DONE 0
|
||||
# define SSL_F_TLS_PROCESS_SERVER_HELLO 0
|
||||
# define SSL_F_TLS_PROCESS_SKE_DHE 0
|
||||
# define SSL_F_TLS_PROCESS_SKE_ECDHE 0
|
||||
# define SSL_F_TLS_PROCESS_SKE_PSK_PREAMBLE 0
|
||||
# define SSL_F_TLS_PROCESS_SKE_SRP 0
|
||||
# define SSL_F_TLS_PSK_DO_BINDER 0
|
||||
# define SSL_F_TLS_SCAN_CLIENTHELLO_TLSEXT 0
|
||||
# define SSL_F_TLS_SETUP_HANDSHAKE 0
|
||||
# define SSL_F_USE_CERTIFICATE_CHAIN_FILE 0
|
||||
# define SSL_F_WPACKET_INTERN_INIT_LEN 0
|
||||
# define SSL_F_WPACKET_START_SUB_PACKET_LEN__ 0
|
||||
# define SSL_F_WRITE_STATE_MACHINE 0
|
||||
# endif
|
||||
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
222
util/mkerr.pl
222
util/mkerr.pl
@ -125,24 +125,17 @@ if ( $internal ) {
|
||||
}
|
||||
|
||||
# Data parsed out of the config and state files.
|
||||
# We always map function-code values to zero, so items marked below with
|
||||
# an asterisk could eventually be removed. TODO(4.0)
|
||||
my %hpubinc; # lib -> public header
|
||||
my %libpubinc; # public header -> lib
|
||||
my %hprivinc; # lib -> private header
|
||||
my %libprivinc; # private header -> lib
|
||||
my %cskip; # error_file -> lib
|
||||
my %errorfile; # lib -> error file name
|
||||
my %fmax; # lib -> max assigned function code*
|
||||
my %rmax; # lib -> max assigned reason code
|
||||
my %fassigned; # lib -> colon-separated list of assigned function codes*
|
||||
my %rassigned; # lib -> colon-separated list of assigned reason codes
|
||||
my %fnew; # lib -> count of new function codes*
|
||||
my %rnew; # lib -> count of new reason codes
|
||||
my %rextra; # "extra" reason code -> lib
|
||||
my %rcodes; # reason-name -> value
|
||||
my %ftrans; # old name -> #define-friendly name (all caps)*
|
||||
my %fcodes; # function-name -> value*
|
||||
my $statefile; # state file with assigned reason and function codes
|
||||
my %strings; # define -> text
|
||||
|
||||
@ -162,11 +155,8 @@ while ( <IN> ) {
|
||||
$cskip{$err} = $lib;
|
||||
$errorfile{$lib} = $err;
|
||||
next if $err eq 'NONE';
|
||||
$fmax{$lib} = 100;
|
||||
$rmax{$lib} = 100;
|
||||
$fassigned{$lib} = ":";
|
||||
$rassigned{$lib} = ":";
|
||||
$fnew{$lib} = 0;
|
||||
$rnew{$lib} = 0;
|
||||
die "Public header file must be in include/openssl ($pubhdr is not)\n"
|
||||
if ($internal
|
||||
@ -235,9 +225,7 @@ if ( ! $reindex && $statefile ) {
|
||||
}
|
||||
$rcodes{$name} = $code;
|
||||
} elsif ( $name =~ /^(?:OSSL_|OPENSSL_)?[A-Z0-9]{2,}_F_/ ) {
|
||||
$fassigned{$lib} .= "$code:";
|
||||
$fmax{$lib} = $code if $code > $fmax{$lib};
|
||||
$fcodes{$name} = $code;
|
||||
# We do nothing with the function codes, just let them go away
|
||||
} else {
|
||||
die "Bad line in $statefile:\n$_\n";
|
||||
}
|
||||
@ -254,131 +242,19 @@ if ( ! $reindex && $statefile ) {
|
||||
print STDERR " --none--\n";
|
||||
}
|
||||
}
|
||||
print STDERR "\n";
|
||||
foreach my $lib ( sort keys %fmax ) {
|
||||
print STDERR "Function codes for ${lib}:\n";
|
||||
if ( $fassigned{$lib} =~ m/^:(.*):$/ ) {
|
||||
my @fassigned = sort { $a <=> $b } split( ":", $1 );
|
||||
print STDERR " ", join(' ', @fassigned), "\n";
|
||||
} else {
|
||||
print STDERR " --none--\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Scan each public header file and make a list of function codes and names
|
||||
&phase("Scanning headers");
|
||||
while ( ( my $hdr, my $lib ) = each %libpubinc ) {
|
||||
next if $hdr eq "NONE";
|
||||
print STDERR " ." if $debug;
|
||||
my $line = "";
|
||||
my $def = "";
|
||||
my $linenr = 0;
|
||||
my $cpp = 0;
|
||||
|
||||
open(IN, "<$hdr")
|
||||
|| open(IN, "<$hdr.in")
|
||||
|| die "Can't open $hdr or $hdr.in, $!,";
|
||||
while ( <IN> ) {
|
||||
$linenr++;
|
||||
|
||||
if ( $line ne '' ) {
|
||||
$_ = $line . $_;
|
||||
$line = '';
|
||||
}
|
||||
|
||||
if ( /\\$/ ) {
|
||||
$line = $_;
|
||||
next;
|
||||
}
|
||||
|
||||
if ( /\/\*/ ) {
|
||||
if ( not /\*\// ) { # multiline comment...
|
||||
$line = $_; # ... just accumulate
|
||||
next;
|
||||
} else {
|
||||
s/\/\*.*?\*\///gs; # wipe it
|
||||
}
|
||||
}
|
||||
|
||||
if ( $cpp ) {
|
||||
$cpp++ if /^#\s*if/;
|
||||
$cpp-- if /^#\s*endif/;
|
||||
next;
|
||||
}
|
||||
$cpp = 1 if /^#.*ifdef.*cplusplus/; # skip "C" declaration
|
||||
|
||||
next if /^\#/; # skip preprocessor directives
|
||||
|
||||
s/{[^{}]*}//gs; # ignore {} blocks
|
||||
|
||||
if ( /\{|\/\*/ ) { # Add a so editor works...
|
||||
$line = $_;
|
||||
} else {
|
||||
$def .= $_;
|
||||
}
|
||||
}
|
||||
|
||||
# Delete any DECLARE_ macros
|
||||
my $defnr = 0;
|
||||
$def =~ s/DECLARE_\w+\([\w,\s]+\)//gs;
|
||||
foreach ( split /;/, $def ) {
|
||||
$defnr++;
|
||||
# The goal is to collect function names from function declarations.
|
||||
|
||||
s/^[\n\s]*//g;
|
||||
s/[\n\s]*$//g;
|
||||
|
||||
# Skip over recognized non-function declarations
|
||||
next if /typedef\W/;
|
||||
|
||||
# Remove STACK_OF(foo)
|
||||
s/STACK_OF\(\w+\)/void/;
|
||||
|
||||
# Reduce argument lists to empty ()
|
||||
# fold round brackets recursively: (t(*v)(t),t) -> (t{}{},t) -> {}
|
||||
while ( /\(.*\)/s ) {
|
||||
s/\([^\(\)]+\)/\{\}/gs;
|
||||
s/\(\s*\*\s*(\w+)\s*\{\}\s*\)/$1/gs; #(*f{}) -> f
|
||||
}
|
||||
|
||||
# pretend as we didn't use curly braces: {} -> ()
|
||||
s/\{\}/\(\)/gs;
|
||||
|
||||
# Last token just before the first () is a function name.
|
||||
if ( /(\w+)\s*\(\).*/s ) {
|
||||
my $name = $1;
|
||||
$name =~ tr/[a-z]/[A-Z]/;
|
||||
$ftrans{$name} = $1;
|
||||
} elsif ( /[\(\)]/ and not(/=/) ) {
|
||||
print STDERR "Header $hdr: cannot parse: $_;\n";
|
||||
}
|
||||
}
|
||||
|
||||
next if $reindex;
|
||||
|
||||
if ( $lib eq "SSL" && $rmax{$lib} >= 1000 ) {
|
||||
print STDERR "SSL error codes 1000+ are reserved for alerts.\n";
|
||||
print STDERR "Any new alerts must be added to $config.\n";
|
||||
$errors++;
|
||||
}
|
||||
close IN;
|
||||
}
|
||||
print STDERR "\n" if $debug;
|
||||
|
||||
# Scan each C source file and look for function and reason codes
|
||||
# This is done by looking for strings that "look like" function or
|
||||
# reason codes: basically anything consisting of all upper case and
|
||||
# numerics which has _F_ or _R_ in it and which has the name of an
|
||||
# error library at the start. This seems to work fine except for the
|
||||
# oddly named structure BIO_F_CTX which needs to be ignored.
|
||||
# Scan each C source file and look for reason codes. This is done by
|
||||
# looking for strings that "look like" reason codes: basically anything
|
||||
# consisting of all upper case and numerics which _R_ in it and which has
|
||||
# the name of an error library at the start. Should there be anything else,
|
||||
# such as a type name, we add exceptions here.
|
||||
# If a code doesn't exist in list compiled from headers then mark it
|
||||
# with the value "X" as a place holder to give it a value later.
|
||||
# Store all function and reason codes found in %usedfuncs and %usedreasons
|
||||
# so all those unreferenced can be printed out.
|
||||
# Store all reason codes found in and %usedreasons so all those unreferenced
|
||||
# can be printed out.
|
||||
&phase("Scanning source");
|
||||
my %usedfuncs;
|
||||
my %usedreasons;
|
||||
foreach my $file ( @source ) {
|
||||
# Don't parse the error source file.
|
||||
@ -392,26 +268,7 @@ foreach my $file ( @source ) {
|
||||
# skip obsoleted source files entirely!
|
||||
last if /^#error\s+obsolete/;
|
||||
$linenr++;
|
||||
if ( !/;$/ && /^\**([a-zA-Z_].*[\s*])?([A-Za-z_0-9]+)\(.*([),]|$)/ ) {
|
||||
/^([^()]*(\([^()]*\)[^()]*)*)\(/;
|
||||
$1 =~ /([A-Za-z_0-9]*)$/;
|
||||
$func = $1;
|
||||
}
|
||||
|
||||
if ( /(((?:OSSL_|OPENSSL_)?[A-Z0-9]{2,})_F_([A-Z0-9_]+))/ ) {
|
||||
next unless exists $errorfile{$2};
|
||||
next if $errorfile{$2} eq 'NONE';
|
||||
next if $1 eq "BIO_F_BUFFER_CTX";
|
||||
$usedfuncs{$1} = 1;
|
||||
if ( !exists $fcodes{$1} ) {
|
||||
print STDERR " New function $1\n" if $debug;
|
||||
$fcodes{$1} = "X";
|
||||
$fnew{$2}++;
|
||||
}
|
||||
$ftrans{$3} = $func unless exists $ftrans{$3};
|
||||
print STDERR " Function $1 = $fcodes{$1}\n"
|
||||
if $debug;
|
||||
}
|
||||
if ( /(((?:OSSL_|OPENSSL_)?[A-Z0-9]{2,})_R_[A-Z0-9_]+)/ ) {
|
||||
next unless exists $errorfile{$2};
|
||||
next if $errorfile{$2} eq 'NONE';
|
||||
@ -432,10 +289,9 @@ print STDERR "\n" if $debug;
|
||||
&phase("Writing files");
|
||||
my $newstate = 0;
|
||||
foreach my $lib ( keys %errorfile ) {
|
||||
next if ! $fnew{$lib} && ! $rnew{$lib} && ! $rebuild;
|
||||
next if ! $rnew{$lib} && ! $rebuild;
|
||||
next if scalar keys %modules > 0 && !$modules{$lib};
|
||||
next if $nowrite;
|
||||
print STDERR "$lib: $fnew{$lib} new functions\n" if $fnew{$lib};
|
||||
print STDERR "$lib: $rnew{$lib} new reasons\n" if $rnew{$lib};
|
||||
$newstate = 1;
|
||||
|
||||
@ -443,7 +299,6 @@ foreach my $lib ( keys %errorfile ) {
|
||||
# need to rebuild the header file and C file.
|
||||
|
||||
# Make a sorted list of error and reason codes for later use.
|
||||
my @function = sort grep( /^${lib}_/, keys %fcodes );
|
||||
my @reasons = sort grep( /^${lib}_/, keys %rcodes );
|
||||
|
||||
# indent level for innermost preprocessor lines
|
||||
@ -509,26 +364,6 @@ EOF
|
||||
# If this library doesn't have a public header file, we write all
|
||||
# definitions that would end up there here instead
|
||||
if ($hpubinc{$lib} eq 'NONE') {
|
||||
print OUT "\n/*\n * $lib function codes.\n */\n";
|
||||
print OUT "#${indent}ifndef OPENSSL_NO_DEPRECATED_3_0\n";
|
||||
foreach my $i ( @function ) {
|
||||
my $z = 48 - length($i);
|
||||
$z = 0 if $z < 0;
|
||||
if ( $fcodes{$i} eq "X" ) {
|
||||
$fassigned{$lib} =~ m/^:([^:]*):/;
|
||||
my $findcode = $1;
|
||||
$findcode = $fmax{$lib} if !defined $findcode;
|
||||
while ( $fassigned{$lib} =~ m/:$findcode:/ ) {
|
||||
$findcode++;
|
||||
}
|
||||
$fcodes{$i} = $findcode;
|
||||
$fassigned{$lib} .= "$findcode:";
|
||||
print STDERR "New Function code $i\n" if $debug;
|
||||
}
|
||||
printf OUT "#${indent} define $i%s 0\n", " " x $z;
|
||||
}
|
||||
print OUT "#${indent}endif\n";
|
||||
|
||||
print OUT "\n/*\n * $lib reason codes.\n */\n";
|
||||
foreach my $i ( @reasons ) {
|
||||
my $z = 48 - length($i);
|
||||
@ -632,26 +467,6 @@ EOF
|
||||
}
|
||||
}
|
||||
|
||||
print OUT "\n/*\n * $lib function codes.\n */\n";
|
||||
print OUT "#${indent}ifndef OPENSSL_NO_DEPRECATED_3_0\n";
|
||||
foreach my $i ( @function ) {
|
||||
my $z = 48 - length($i);
|
||||
$z = 0 if $z < 0;
|
||||
if ( $fcodes{$i} eq "X" ) {
|
||||
$fassigned{$lib} =~ m/^:([^:]*):/;
|
||||
my $findcode = $1;
|
||||
$findcode = $fmax{$lib} if !defined $findcode;
|
||||
while ( $fassigned{$lib} =~ m/:$findcode:/ ) {
|
||||
$findcode++;
|
||||
}
|
||||
$fcodes{$i} = $findcode;
|
||||
$fassigned{$lib} .= "$findcode:";
|
||||
print STDERR "New Function code $i\n" if $debug;
|
||||
}
|
||||
printf OUT "#${indent} define $i%s 0\n", " " x $z;
|
||||
}
|
||||
print OUT "#${indent}endif\n";
|
||||
|
||||
print OUT "\n/*\n * $lib reason codes.\n */\n";
|
||||
foreach my $i ( @reasons ) {
|
||||
my $z = 48 - length($i);
|
||||
@ -833,22 +648,12 @@ EOF
|
||||
}
|
||||
|
||||
&phase("Ending");
|
||||
# Make a list of unreferenced function and reason codes
|
||||
# Make a list of unreferenced reason codes
|
||||
if ( $unref ) {
|
||||
my @funref;
|
||||
foreach ( keys %fcodes ) {
|
||||
push( @funref, $_ ) unless exists $usedfuncs{$_};
|
||||
}
|
||||
my @runref;
|
||||
foreach ( keys %rcodes ) {
|
||||
push( @runref, $_ ) unless exists $usedreasons{$_};
|
||||
}
|
||||
if ( @funref ) {
|
||||
print STDERR "The following function codes were not referenced:\n";
|
||||
foreach ( sort @funref ) {
|
||||
print STDERR " $_\n";
|
||||
}
|
||||
}
|
||||
if ( @runref ) {
|
||||
print STDERR "The following reason codes were not referenced:\n";
|
||||
foreach ( sort @runref ) {
|
||||
@ -871,13 +676,6 @@ if ( $newstate ) {
|
||||
# in the file LICENSE in the source distribution or at
|
||||
# https://www.openssl.org/source/license.html
|
||||
EOF
|
||||
print OUT "\n# Function codes\n";
|
||||
foreach my $i ( sort keys %fcodes ) {
|
||||
my $short = "$i:$fcodes{$i}:";
|
||||
my $t = exists $strings{$i} ? $strings{$i} : "";
|
||||
$t = "\\\n\t" . $t if length($short) + length($t) > 80;
|
||||
print OUT "$short$t\n";
|
||||
}
|
||||
print OUT "\n#Reason codes\n";
|
||||
foreach my $i ( sort keys %rcodes ) {
|
||||
my $short = "$i:$rcodes{$i}:";
|
||||
|
Loading…
x
Reference in New Issue
Block a user