Viktor Dukhovni | e2ab7fb | 2016-04-21 20:06:49 -0400 | [diff] [blame] | 1 | /* |
Rich Salz | 0cd0a82 | 2016-05-23 15:02:34 -0400 | [diff] [blame] | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
Matt Caswell | fecb3aa | 2022-05-03 11:52:38 +0100 | [diff] [blame] | 3 | * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved. |
Ralf S. Engelschall | d02b48c | 1998-12-21 10:52:47 +0000 | [diff] [blame] | 4 | * |
Richard Levitte | 2c18d16 | 2018-12-06 13:08:51 +0100 | [diff] [blame] | 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
Viktor Dukhovni | e2ab7fb | 2016-04-21 20:06:49 -0400 | [diff] [blame] | 6 | * this file except in compliance with the License. You can obtain a copy |
| 7 | * in the file LICENSE in the source distribution or at |
| 8 | * https://www.openssl.org/source/license.html |
Dr. Stephen Henson | 6d31193 | 1999-04-24 00:15:18 +0000 | [diff] [blame] | 9 | */ |
| 10 | |
Bodo Möller | ec57782 | 1999-04-23 22:13:45 +0000 | [diff] [blame] | 11 | #include <openssl/err.h> |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 12 | #include <openssl/sslerr.h> |
Richard Levitte | 14a6c6a | 2020-11-12 10:36:47 +0100 | [diff] [blame] | 13 | #include "sslerr.h" |
Ralf S. Engelschall | d02b48c | 1998-12-21 10:52:47 +0000 | [diff] [blame] | 14 | |
Richard Levitte | bc36ee6 | 2001-02-20 08:13:47 +0000 | [diff] [blame] | 15 | #ifndef OPENSSL_NO_ERR |
Dr. Stephen Henson | 29dc350 | 2005-04-12 16:15:22 +0000 | [diff] [blame] | 16 | |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 17 | static const ERR_STRING_DATA SSL_str_reasons[] = { |
Matt Caswell | 358ffa0 | 2018-06-25 14:51:11 +0100 | [diff] [blame] | 18 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_APPLICATION_DATA_AFTER_CLOSE_NOTIFY), |
| 19 | "application data after close notify"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 20 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_APP_DATA_IN_HANDSHAKE), |
| 21 | "app data in handshake"}, |
| 22 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_ATTEMPT_TO_REUSE_SESSION_IN_DIFFERENT_CONTEXT), |
| 23 | "attempt to reuse session in different context"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 24 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_AT_LEAST_TLS_1_2_NEEDED_IN_SUITEB_MODE), |
| 25 | "at least (D)TLS 1.2 needed in Suite B mode"}, |
| 26 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_CHANGE_CIPHER_SPEC), |
| 27 | "bad change cipher spec"}, |
| 28 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_CIPHER), "bad cipher"}, |
| 29 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_DATA), "bad data"}, |
| 30 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_DATA_RETURNED_BY_CALLBACK), |
| 31 | "bad data returned by callback"}, |
| 32 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_DECOMPRESSION), "bad decompression"}, |
| 33 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_DH_VALUE), "bad dh value"}, |
| 34 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_DIGEST_LENGTH), "bad digest length"}, |
Matt Caswell | f63a17d | 2017-11-21 17:18:43 +0000 | [diff] [blame] | 35 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_EARLY_DATA), "bad early data"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 36 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_ECC_CERT), "bad ecc cert"}, |
| 37 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_ECPOINT), "bad ecpoint"}, |
| 38 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_EXTENSION), "bad extension"}, |
| 39 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_HANDSHAKE_LENGTH), |
| 40 | "bad handshake length"}, |
Matt Caswell | f63a17d | 2017-11-21 17:18:43 +0000 | [diff] [blame] | 41 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_HANDSHAKE_STATE), |
| 42 | "bad handshake state"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 43 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_HELLO_REQUEST), "bad hello request"}, |
Matt Caswell | 426dfc9 | 2017-12-05 10:16:25 +0000 | [diff] [blame] | 44 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_HRR_VERSION), "bad hrr version"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 45 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_KEY_SHARE), "bad key share"}, |
| 46 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_KEY_UPDATE), "bad key update"}, |
Matt Caswell | d8434cf | 2018-07-19 16:51:58 +0100 | [diff] [blame] | 47 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_LEGACY_VERSION), "bad legacy version"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 48 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_LENGTH), "bad length"}, |
Matt Caswell | f63a17d | 2017-11-21 17:18:43 +0000 | [diff] [blame] | 49 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_PACKET), "bad packet"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 50 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_PACKET_LENGTH), "bad packet length"}, |
| 51 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_PROTOCOL_VERSION_NUMBER), |
| 52 | "bad protocol version number"}, |
Matt Caswell | 9368f86 | 2017-06-12 13:30:21 +0100 | [diff] [blame] | 53 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_PSK), "bad psk"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 54 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_PSK_IDENTITY), "bad psk identity"}, |
| 55 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_RECORD_TYPE), "bad record type"}, |
| 56 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_RSA_ENCRYPT), "bad rsa encrypt"}, |
| 57 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_SIGNATURE), "bad signature"}, |
| 58 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_SRP_A_LENGTH), "bad srp a length"}, |
| 59 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_SRP_PARAMETERS), "bad srp parameters"}, |
| 60 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_SRTP_MKI_VALUE), "bad srtp mki value"}, |
| 61 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_SRTP_PROTECTION_PROFILE_LIST), |
| 62 | "bad srtp protection profile list"}, |
| 63 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_SSL_FILETYPE), "bad ssl filetype"}, |
| 64 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_VALUE), "bad value"}, |
| 65 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BAD_WRITE_RETRY), "bad write retry"}, |
Matt Caswell | 635c8f7 | 2017-11-23 11:41:40 +0000 | [diff] [blame] | 66 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BINDER_DOES_NOT_VERIFY), |
| 67 | "binder does not verify"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 68 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BIO_NOT_SET), "bio not set"}, |
| 69 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BLOCK_CIPHER_PAD_IS_WRONG), |
| 70 | "block cipher pad is wrong"}, |
| 71 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_BN_LIB), "bn lib"}, |
Matt Caswell | f63a17d | 2017-11-21 17:18:43 +0000 | [diff] [blame] | 72 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CALLBACK_FAILED), "callback failed"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 73 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CANNOT_CHANGE_CIPHER), |
| 74 | "cannot change cipher"}, |
Matt Caswell | 462f4f4 | 2021-01-15 16:54:28 +0000 | [diff] [blame] | 75 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CANNOT_GET_GROUP_NAME), |
| 76 | "cannot get group name"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 77 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CA_DN_LENGTH_MISMATCH), |
| 78 | "ca dn length mismatch"}, |
| 79 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CA_KEY_TOO_SMALL), "ca key too small"}, |
| 80 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CA_MD_TOO_WEAK), "ca md too weak"}, |
| 81 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CCS_RECEIVED_EARLY), "ccs received early"}, |
| 82 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CERTIFICATE_VERIFY_FAILED), |
| 83 | "certificate verify failed"}, |
| 84 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CERT_CB_ERROR), "cert cb error"}, |
| 85 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CERT_LENGTH_MISMATCH), |
| 86 | "cert length mismatch"}, |
Matt Caswell | a055a88 | 2017-05-26 17:59:34 +0100 | [diff] [blame] | 87 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CIPHERSUITE_DIGEST_HAS_CHANGED), |
| 88 | "ciphersuite digest has changed"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 89 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CIPHER_CODE_WRONG_LENGTH), |
| 90 | "cipher code wrong length"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 91 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CLIENTHELLO_TLSEXT), "clienthello tlsext"}, |
| 92 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_COMPRESSED_LENGTH_TOO_LONG), |
| 93 | "compressed length too long"}, |
| 94 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_COMPRESSION_DISABLED), |
| 95 | "compression disabled"}, |
| 96 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_COMPRESSION_FAILURE), |
| 97 | "compression failure"}, |
| 98 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_COMPRESSION_ID_NOT_WITHIN_PRIVATE_RANGE), |
| 99 | "compression id not within private range"}, |
| 100 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_COMPRESSION_LIBRARY_ERROR), |
| 101 | "compression library error"}, |
| 102 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CONNECTION_TYPE_NOT_SET), |
| 103 | "connection type not set"}, |
| 104 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CONTEXT_NOT_DANE_ENABLED), |
| 105 | "context not dane enabled"}, |
| 106 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_COOKIE_GEN_CALLBACK_FAILURE), |
| 107 | "cookie gen callback failure"}, |
| 108 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_COOKIE_MISMATCH), "cookie mismatch"}, |
Matt Caswell | db9592c | 2020-05-22 14:11:43 +0100 | [diff] [blame] | 109 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_COPY_PARAMETERS_FAILED), |
| 110 | "copy parameters failed"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 111 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_CUSTOM_EXT_HANDLER_ALREADY_INSTALLED), |
| 112 | "custom ext handler already installed"}, |
| 113 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DANE_ALREADY_ENABLED), |
| 114 | "dane already enabled"}, |
| 115 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DANE_CANNOT_OVERRIDE_MTYPE_FULL), |
| 116 | "dane cannot override mtype full"}, |
| 117 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DANE_NOT_ENABLED), "dane not enabled"}, |
| 118 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DANE_TLSA_BAD_CERTIFICATE), |
| 119 | "dane tlsa bad certificate"}, |
| 120 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DANE_TLSA_BAD_CERTIFICATE_USAGE), |
| 121 | "dane tlsa bad certificate usage"}, |
| 122 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DANE_TLSA_BAD_DATA_LENGTH), |
| 123 | "dane tlsa bad data length"}, |
| 124 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DANE_TLSA_BAD_DIGEST_LENGTH), |
| 125 | "dane tlsa bad digest length"}, |
| 126 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DANE_TLSA_BAD_MATCHING_TYPE), |
| 127 | "dane tlsa bad matching type"}, |
| 128 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DANE_TLSA_BAD_PUBLIC_KEY), |
| 129 | "dane tlsa bad public key"}, |
| 130 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DANE_TLSA_BAD_SELECTOR), |
| 131 | "dane tlsa bad selector"}, |
| 132 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DANE_TLSA_NULL_DATA), |
| 133 | "dane tlsa null data"}, |
| 134 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DATA_BETWEEN_CCS_AND_FINISHED), |
| 135 | "data between ccs and finished"}, |
| 136 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DATA_LENGTH_TOO_LONG), |
| 137 | "data length too long"}, |
| 138 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DECRYPTION_FAILED), "decryption failed"}, |
| 139 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC), |
| 140 | "decryption failed or bad record mac"}, |
| 141 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DH_KEY_TOO_SMALL), "dh key too small"}, |
| 142 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DH_PUBLIC_VALUE_LENGTH_IS_WRONG), |
| 143 | "dh public value length is wrong"}, |
| 144 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DIGEST_CHECK_FAILED), |
| 145 | "digest check failed"}, |
| 146 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DTLS_MESSAGE_TOO_BIG), |
| 147 | "dtls message too big"}, |
| 148 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_DUPLICATE_COMPRESSION_ID), |
| 149 | "duplicate compression id"}, |
| 150 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_ECC_CERT_NOT_FOR_SIGNING), |
| 151 | "ecc cert not for signing"}, |
| 152 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_ECDH_REQUIRED_FOR_SUITEB_MODE), |
| 153 | "ecdh required for suiteb mode"}, |
| 154 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_EE_KEY_TOO_SMALL), "ee key too small"}, |
| 155 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_EMPTY_SRTP_PROTECTION_PROFILE_LIST), |
| 156 | "empty srtp protection profile list"}, |
| 157 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_ENCRYPTED_LENGTH_TOO_LONG), |
| 158 | "encrypted length too long"}, |
| 159 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST), |
| 160 | "error in received cipher list"}, |
| 161 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN), |
| 162 | "error setting tlsa base domain"}, |
| 163 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE), |
| 164 | "exceeds max fragment size"}, |
| 165 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_EXCESSIVE_MESSAGE_SIZE), |
| 166 | "excessive message size"}, |
Todd Short | 9d75dce | 2017-12-18 16:52:28 -0500 | [diff] [blame] | 167 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_EXTENSION_NOT_RECEIVED), |
| 168 | "extension not received"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 169 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_EXTRA_DATA_IN_MESSAGE), |
| 170 | "extra data in message"}, |
| 171 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_EXT_LENGTH_MISMATCH), |
| 172 | "ext length mismatch"}, |
| 173 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_FAILED_TO_INIT_ASYNC), |
| 174 | "failed to init async"}, |
| 175 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_FRAGMENTED_CLIENT_HELLO), |
| 176 | "fragmented client hello"}, |
| 177 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_GOT_A_FIN_BEFORE_A_CCS), |
| 178 | "got a fin before a ccs"}, |
| 179 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_HTTPS_PROXY_REQUEST), |
| 180 | "https proxy request"}, |
| 181 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_HTTP_REQUEST), "http request"}, |
| 182 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_ILLEGAL_POINT_COMPRESSION), |
| 183 | "illegal point compression"}, |
| 184 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_ILLEGAL_SUITEB_DIGEST), |
| 185 | "illegal Suite B digest"}, |
| 186 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INAPPROPRIATE_FALLBACK), |
| 187 | "inappropriate fallback"}, |
| 188 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INCONSISTENT_COMPRESSION), |
| 189 | "inconsistent compression"}, |
Matt Caswell | ffc5bba | 2017-07-21 11:41:05 +0100 | [diff] [blame] | 190 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INCONSISTENT_EARLY_DATA_ALPN), |
| 191 | "inconsistent early data alpn"}, |
| 192 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INCONSISTENT_EARLY_DATA_SNI), |
| 193 | "inconsistent early data sni"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 194 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INCONSISTENT_EXTMS), "inconsistent extms"}, |
Matt Caswell | a2c2e00 | 2017-11-22 17:18:39 +0000 | [diff] [blame] | 195 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INSUFFICIENT_SECURITY), |
| 196 | "insufficient security"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 197 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_ALERT), "invalid alert"}, |
Matt Caswell | fdd9236 | 2017-11-07 16:36:51 +0000 | [diff] [blame] | 198 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_CCS_MESSAGE), |
| 199 | "invalid ccs message"}, |
Matt Caswell | f63a17d | 2017-11-21 17:18:43 +0000 | [diff] [blame] | 200 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_CERTIFICATE_OR_ALG), |
| 201 | "invalid certificate or alg"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 202 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_COMMAND), "invalid command"}, |
| 203 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_COMPRESSION_ALGORITHM), |
| 204 | "invalid compression algorithm"}, |
Todd Short | 9d75dce | 2017-12-18 16:52:28 -0500 | [diff] [blame] | 205 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_CONFIG), "invalid config"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 206 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_CONFIGURATION_NAME), |
| 207 | "invalid configuration name"}, |
Todd Short | 9d75dce | 2017-12-18 16:52:28 -0500 | [diff] [blame] | 208 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_CONTEXT), "invalid context"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 209 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_CT_VALIDATION_TYPE), |
| 210 | "invalid ct validation type"}, |
| 211 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_KEY_UPDATE_TYPE), |
| 212 | "invalid key update type"}, |
| 213 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_MAX_EARLY_DATA), |
| 214 | "invalid max early data"}, |
| 215 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_NULL_CMD_NAME), |
| 216 | "invalid null cmd name"}, |
| 217 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_SEQUENCE_NUMBER), |
| 218 | "invalid sequence number"}, |
| 219 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_SERVERINFO_DATA), |
| 220 | "invalid serverinfo data"}, |
Matt Caswell | a5816a5 | 2017-11-07 10:45:43 +0000 | [diff] [blame] | 221 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_SESSION_ID), "invalid session id"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 222 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_SRP_USERNAME), |
| 223 | "invalid srp username"}, |
| 224 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_STATUS_RESPONSE), |
| 225 | "invalid status response"}, |
| 226 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_INVALID_TICKET_KEYS_LENGTH), |
| 227 | "invalid ticket keys length"}, |
| 228 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_LENGTH_MISMATCH), "length mismatch"}, |
| 229 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_LENGTH_TOO_LONG), "length too long"}, |
| 230 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_LENGTH_TOO_SHORT), "length too short"}, |
| 231 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_LIBRARY_BUG), "library bug"}, |
| 232 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_LIBRARY_HAS_NO_CIPHERS), |
| 233 | "library has no ciphers"}, |
| 234 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_DSA_SIGNING_CERT), |
| 235 | "missing dsa signing cert"}, |
| 236 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_ECDSA_SIGNING_CERT), |
| 237 | "missing ecdsa signing cert"}, |
Matt Caswell | 47e2ee0 | 2017-11-23 12:10:54 +0000 | [diff] [blame] | 238 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_FATAL), "missing fatal"}, |
Todd Short | 37933ac | 2015-12-28 09:13:20 -0500 | [diff] [blame] | 239 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_PARAMETERS), "missing parameters"}, |
Benjamin Kaduk | f84ab28 | 2021-03-29 23:08:10 -0700 | [diff] [blame] | 240 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_PSK_KEX_MODES_EXTENSION), |
| 241 | "missing psk kex modes extension"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 242 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_RSA_CERTIFICATE), |
| 243 | "missing rsa certificate"}, |
| 244 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_RSA_ENCRYPTING_CERT), |
| 245 | "missing rsa encrypting cert"}, |
| 246 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_RSA_SIGNING_CERT), |
| 247 | "missing rsa signing cert"}, |
| 248 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_SIGALGS_EXTENSION), |
| 249 | "missing sigalgs extension"}, |
Dr. Stephen Henson | ebefced | 2017-07-08 23:16:09 +0100 | [diff] [blame] | 250 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_SIGNING_CERT), |
| 251 | "missing signing cert"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 252 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_SRP_PARAM), |
| 253 | "can't find SRP server param"}, |
| 254 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_SUPPORTED_GROUPS_EXTENSION), |
| 255 | "missing supported groups extension"}, |
| 256 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_TMP_DH_KEY), "missing tmp dh key"}, |
| 257 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MISSING_TMP_ECDH_KEY), |
| 258 | "missing tmp ecdh key"}, |
Matt Caswell | 3d35e3a | 2019-02-08 16:36:32 +0000 | [diff] [blame] | 259 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_MIXED_HANDSHAKE_AND_NON_HANDSHAKE_DATA), |
| 260 | "mixed handshake and non handshake data"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 261 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NOT_ON_RECORD_BOUNDARY), |
| 262 | "not on record boundary"}, |
Todd Short | 37933ac | 2015-12-28 09:13:20 -0500 | [diff] [blame] | 263 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NOT_REPLACING_CERTIFICATE), |
| 264 | "not replacing certificate"}, |
Todd Short | 9d75dce | 2017-12-18 16:52:28 -0500 | [diff] [blame] | 265 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NOT_SERVER), "not server"}, |
Matt Caswell | f63a17d | 2017-11-21 17:18:43 +0000 | [diff] [blame] | 266 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_APPLICATION_PROTOCOL), |
| 267 | "no application protocol"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 268 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_CERTIFICATES_RETURNED), |
| 269 | "no certificates returned"}, |
| 270 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_CERTIFICATE_ASSIGNED), |
| 271 | "no certificate assigned"}, |
| 272 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_CERTIFICATE_SET), "no certificate set"}, |
| 273 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_CHANGE_FOLLOWING_HRR), |
| 274 | "no change following hrr"}, |
| 275 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_CIPHERS_AVAILABLE), |
| 276 | "no ciphers available"}, |
| 277 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_CIPHERS_SPECIFIED), |
| 278 | "no ciphers specified"}, |
| 279 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_CIPHER_MATCH), "no cipher match"}, |
| 280 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_CLIENT_CERT_METHOD), |
| 281 | "no client cert method"}, |
| 282 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_COMPRESSION_SPECIFIED), |
| 283 | "no compression specified"}, |
Matt Caswell | e440f51 | 2018-03-08 17:44:12 +0000 | [diff] [blame] | 284 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_COOKIE_CALLBACK_SET), |
| 285 | "no cookie callback set"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 286 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_GOST_CERTIFICATE_SENT_BY_PEER), |
| 287 | "Peer haven't sent GOST certificate, required for selected ciphersuite"}, |
| 288 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_METHOD_SPECIFIED), |
| 289 | "no method specified"}, |
| 290 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_PEM_EXTENSIONS), "no pem extensions"}, |
| 291 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_PRIVATE_KEY_ASSIGNED), |
| 292 | "no private key assigned"}, |
| 293 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_PROTOCOLS_AVAILABLE), |
| 294 | "no protocols available"}, |
| 295 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_RENEGOTIATION), "no renegotiation"}, |
| 296 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_REQUIRED_DIGEST), "no required digest"}, |
| 297 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_SHARED_CIPHER), "no shared cipher"}, |
| 298 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_SHARED_GROUPS), "no shared groups"}, |
| 299 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS), |
| 300 | "no shared signature algorithms"}, |
| 301 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_SRTP_PROFILES), "no srtp profiles"}, |
Matt Caswell | 7cd1420 | 2020-08-27 16:19:27 +0100 | [diff] [blame] | 302 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_SUITABLE_DIGEST_ALGORITHM), |
| 303 | "no suitable digest algorithm"}, |
Matt Caswell | 8b1db5d | 2021-01-13 17:27:10 +0000 | [diff] [blame] | 304 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_SUITABLE_GROUPS), "no suitable groups"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 305 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_SUITABLE_KEY_SHARE), |
| 306 | "no suitable key share"}, |
| 307 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM), |
| 308 | "no suitable signature algorithm"}, |
| 309 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_VALID_SCTS), "no valid scts"}, |
| 310 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NO_VERIFY_COOKIE_CALLBACK), |
| 311 | "no verify cookie callback"}, |
| 312 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NULL_SSL_CTX), "null ssl ctx"}, |
| 313 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_NULL_SSL_METHOD_PASSED), |
| 314 | "null ssl method passed"}, |
Dmitry Belyavskiy | c0f4400 | 2021-04-30 11:27:19 +0200 | [diff] [blame] | 315 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_OCSP_CALLBACK_FAILURE), |
| 316 | "ocsp callback failure"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 317 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED), |
| 318 | "old session cipher not returned"}, |
| 319 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_OLD_SESSION_COMPRESSION_ALGORITHM_NOT_RETURNED), |
| 320 | "old session compression algorithm not returned"}, |
Matt Caswell | f63a17d | 2017-11-21 17:18:43 +0000 | [diff] [blame] | 321 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_OVERFLOW_ERROR), "overflow error"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 322 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_PACKET_LENGTH_TOO_LONG), |
| 323 | "packet length too long"}, |
| 324 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_PARSE_TLSEXT), "parse tlsext"}, |
| 325 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_PATH_TOO_LONG), "path too long"}, |
| 326 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE), |
| 327 | "peer did not return a certificate"}, |
| 328 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_PEM_NAME_BAD_PREFIX), |
| 329 | "pem name bad prefix"}, |
| 330 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_PEM_NAME_TOO_SHORT), "pem name too short"}, |
| 331 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_PIPELINE_FAILURE), "pipeline failure"}, |
Todd Short | 9d75dce | 2017-12-18 16:52:28 -0500 | [diff] [blame] | 332 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_POST_HANDSHAKE_AUTH_ENCODING_ERR), |
| 333 | "post handshake auth encoding err"}, |
Todd Short | 37933ac | 2015-12-28 09:13:20 -0500 | [diff] [blame] | 334 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_PRIVATE_KEY_MISMATCH), |
| 335 | "private key mismatch"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 336 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_PROTOCOL_IS_SHUTDOWN), |
| 337 | "protocol is shutdown"}, |
| 338 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_PSK_IDENTITY_NOT_FOUND), |
| 339 | "psk identity not found"}, |
| 340 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_PSK_NO_CLIENT_CB), "psk no client cb"}, |
| 341 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_PSK_NO_SERVER_CB), "psk no server cb"}, |
| 342 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_READ_BIO_NOT_SET), "read bio not set"}, |
| 343 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_READ_TIMEOUT_EXPIRED), |
| 344 | "read timeout expired"}, |
| 345 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_RECORD_LENGTH_MISMATCH), |
| 346 | "record length mismatch"}, |
| 347 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_RECORD_TOO_SMALL), "record too small"}, |
| 348 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_RENEGOTIATE_EXT_TOO_LONG), |
| 349 | "renegotiate ext too long"}, |
| 350 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_RENEGOTIATION_ENCODING_ERR), |
| 351 | "renegotiation encoding err"}, |
| 352 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_RENEGOTIATION_MISMATCH), |
| 353 | "renegotiation mismatch"}, |
Todd Short | 9d75dce | 2017-12-18 16:52:28 -0500 | [diff] [blame] | 354 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_REQUEST_PENDING), "request pending"}, |
| 355 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_REQUEST_SENT), "request sent"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 356 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_REQUIRED_CIPHER_MISSING), |
| 357 | "required cipher missing"}, |
| 358 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_REQUIRED_COMPRESSION_ALGORITHM_MISSING), |
| 359 | "required compression algorithm missing"}, |
| 360 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SCSV_RECEIVED_WHEN_RENEGOTIATING), |
| 361 | "scsv received when renegotiating"}, |
| 362 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SCT_VERIFICATION_FAILED), |
| 363 | "sct verification failed"}, |
| 364 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SERVERHELLO_TLSEXT), "serverhello tlsext"}, |
| 365 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED), |
| 366 | "session id context uninitialized"}, |
| 367 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHUTDOWN_WHILE_IN_INIT), |
| 368 | "shutdown while in init"}, |
| 369 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SIGNATURE_ALGORITHMS_ERROR), |
| 370 | "signature algorithms error"}, |
| 371 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE), |
| 372 | "signature for non signing certificate"}, |
| 373 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SRP_A_CALC), "error with the srp params"}, |
| 374 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SRTP_COULD_NOT_ALLOCATE_PROFILES), |
| 375 | "srtp could not allocate profiles"}, |
| 376 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SRTP_PROTECTION_PROFILE_LIST_TOO_LONG), |
| 377 | "srtp protection profile list too long"}, |
| 378 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SRTP_UNKNOWN_PROTECTION_PROFILE), |
| 379 | "srtp unknown protection profile"}, |
FdaSilvaYY | cf72c75 | 2017-11-05 17:46:48 +0100 | [diff] [blame] | 380 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL3_EXT_INVALID_MAX_FRAGMENT_LENGTH), |
| 381 | "ssl3 ext invalid max fragment length"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 382 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL3_EXT_INVALID_SERVERNAME), |
| 383 | "ssl3 ext invalid servername"}, |
| 384 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL3_EXT_INVALID_SERVERNAME_TYPE), |
| 385 | "ssl3 ext invalid servername type"}, |
| 386 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL3_SESSION_ID_TOO_LONG), |
| 387 | "ssl3 session id too long"}, |
| 388 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSLV3_ALERT_BAD_CERTIFICATE), |
Kan | 81b741f | 2021-11-30 14:39:49 +0800 | [diff] [blame] | 389 | "ssl/tls alert bad certificate"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 390 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSLV3_ALERT_BAD_RECORD_MAC), |
Kan | 81b741f | 2021-11-30 14:39:49 +0800 | [diff] [blame] | 391 | "ssl/tls alert bad record mac"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 392 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED), |
Kan | 81b741f | 2021-11-30 14:39:49 +0800 | [diff] [blame] | 393 | "ssl/tls alert certificate expired"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 394 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSLV3_ALERT_CERTIFICATE_REVOKED), |
Kan | 81b741f | 2021-11-30 14:39:49 +0800 | [diff] [blame] | 395 | "ssl/tls alert certificate revoked"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 396 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN), |
Kan | 81b741f | 2021-11-30 14:39:49 +0800 | [diff] [blame] | 397 | "ssl/tls alert certificate unknown"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 398 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSLV3_ALERT_DECOMPRESSION_FAILURE), |
Kan | 81b741f | 2021-11-30 14:39:49 +0800 | [diff] [blame] | 399 | "ssl/tls alert decompression failure"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 400 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE), |
Kan | 81b741f | 2021-11-30 14:39:49 +0800 | [diff] [blame] | 401 | "ssl/tls alert handshake failure"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 402 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER), |
Kan | 81b741f | 2021-11-30 14:39:49 +0800 | [diff] [blame] | 403 | "ssl/tls alert illegal parameter"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 404 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSLV3_ALERT_NO_CERTIFICATE), |
Kan | 81b741f | 2021-11-30 14:39:49 +0800 | [diff] [blame] | 405 | "ssl/tls alert no certificate"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 406 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE), |
Kan | 81b741f | 2021-11-30 14:39:49 +0800 | [diff] [blame] | 407 | "ssl/tls alert unexpected message"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 408 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSLV3_ALERT_UNSUPPORTED_CERTIFICATE), |
Kan | 81b741f | 2021-11-30 14:39:49 +0800 | [diff] [blame] | 409 | "ssl/tls alert unsupported certificate"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 410 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_COMMAND_SECTION_EMPTY), |
| 411 | "ssl command section empty"}, |
| 412 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_COMMAND_SECTION_NOT_FOUND), |
| 413 | "ssl command section not found"}, |
| 414 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION), |
| 415 | "ssl ctx has no default ssl version"}, |
| 416 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_HANDSHAKE_FAILURE), |
| 417 | "ssl handshake failure"}, |
| 418 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_LIBRARY_HAS_NO_CIPHERS), |
| 419 | "ssl library has no ciphers"}, |
| 420 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_NEGATIVE_LENGTH), |
| 421 | "ssl negative length"}, |
| 422 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_SECTION_EMPTY), "ssl section empty"}, |
| 423 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_SECTION_NOT_FOUND), |
| 424 | "ssl section not found"}, |
| 425 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_SESSION_ID_CALLBACK_FAILED), |
| 426 | "ssl session id callback failed"}, |
| 427 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_SESSION_ID_CONFLICT), |
| 428 | "ssl session id conflict"}, |
| 429 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_SESSION_ID_CONTEXT_TOO_LONG), |
| 430 | "ssl session id context too long"}, |
| 431 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH), |
| 432 | "ssl session id has bad length"}, |
| 433 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_SESSION_ID_TOO_LONG), |
| 434 | "ssl session id too long"}, |
| 435 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SSL_SESSION_VERSION_MISMATCH), |
| 436 | "ssl session version mismatch"}, |
| 437 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_STILL_IN_INIT), "still in init"}, |
Matt Caswell | 43a0f27 | 2018-07-30 09:13:14 +0100 | [diff] [blame] | 438 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED), |
| 439 | "tlsv13 alert certificate required"}, |
| 440 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV13_ALERT_MISSING_EXTENSION), |
| 441 | "tlsv13 alert missing extension"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 442 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_ACCESS_DENIED), |
| 443 | "tlsv1 alert access denied"}, |
| 444 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_DECODE_ERROR), |
| 445 | "tlsv1 alert decode error"}, |
| 446 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_DECRYPTION_FAILED), |
| 447 | "tlsv1 alert decryption failed"}, |
| 448 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_DECRYPT_ERROR), |
| 449 | "tlsv1 alert decrypt error"}, |
| 450 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_EXPORT_RESTRICTION), |
| 451 | "tlsv1 alert export restriction"}, |
| 452 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_INAPPROPRIATE_FALLBACK), |
| 453 | "tlsv1 alert inappropriate fallback"}, |
| 454 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_INSUFFICIENT_SECURITY), |
| 455 | "tlsv1 alert insufficient security"}, |
| 456 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_INTERNAL_ERROR), |
| 457 | "tlsv1 alert internal error"}, |
| 458 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_NO_RENEGOTIATION), |
| 459 | "tlsv1 alert no renegotiation"}, |
| 460 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_PROTOCOL_VERSION), |
| 461 | "tlsv1 alert protocol version"}, |
| 462 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_RECORD_OVERFLOW), |
| 463 | "tlsv1 alert record overflow"}, |
| 464 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_UNKNOWN_CA), |
| 465 | "tlsv1 alert unknown ca"}, |
| 466 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_ALERT_USER_CANCELLED), |
| 467 | "tlsv1 alert user cancelled"}, |
| 468 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_BAD_CERTIFICATE_HASH_VALUE), |
| 469 | "tlsv1 bad certificate hash value"}, |
| 470 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_BAD_CERTIFICATE_STATUS_RESPONSE), |
| 471 | "tlsv1 bad certificate status response"}, |
| 472 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_CERTIFICATE_UNOBTAINABLE), |
| 473 | "tlsv1 certificate unobtainable"}, |
| 474 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_UNRECOGNIZED_NAME), |
| 475 | "tlsv1 unrecognized name"}, |
| 476 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLSV1_UNSUPPORTED_EXTENSION), |
| 477 | "tlsv1 unsupported extension"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 478 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLS_ILLEGAL_EXPORTER_LABEL), |
| 479 | "tls illegal exporter label"}, |
| 480 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST), |
| 481 | "tls invalid ecpointformat list"}, |
| 482 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TOO_MANY_KEY_UPDATES), |
| 483 | "too many key updates"}, |
| 484 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TOO_MANY_WARN_ALERTS), |
| 485 | "too many warn alerts"}, |
| 486 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_TOO_MUCH_EARLY_DATA), |
| 487 | "too much early data"}, |
| 488 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS), |
| 489 | "unable to find ecdh parameters"}, |
| 490 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNABLE_TO_FIND_PUBLIC_KEY_PARAMETERS), |
| 491 | "unable to find public key parameters"}, |
| 492 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNABLE_TO_LOAD_SSL3_MD5_ROUTINES), |
| 493 | "unable to load ssl3 md5 routines"}, |
| 494 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNABLE_TO_LOAD_SSL3_SHA1_ROUTINES), |
| 495 | "unable to load ssl3 sha1 routines"}, |
Matt Caswell | fdd9236 | 2017-11-07 16:36:51 +0000 | [diff] [blame] | 496 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNEXPECTED_CCS_MESSAGE), |
| 497 | "unexpected ccs message"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 498 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNEXPECTED_END_OF_EARLY_DATA), |
| 499 | "unexpected end of early data"}, |
Matt Caswell | d924dbf | 2020-01-17 17:39:19 +0000 | [diff] [blame] | 500 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNEXPECTED_EOF_WHILE_READING), |
| 501 | "unexpected eof while reading"}, |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 502 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNEXPECTED_MESSAGE), "unexpected message"}, |
| 503 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNEXPECTED_RECORD), "unexpected record"}, |
| 504 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNINITIALIZED), "uninitialized"}, |
| 505 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNKNOWN_ALERT_TYPE), "unknown alert type"}, |
| 506 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNKNOWN_CERTIFICATE_TYPE), |
| 507 | "unknown certificate type"}, |
| 508 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNKNOWN_CIPHER_RETURNED), |
| 509 | "unknown cipher returned"}, |
| 510 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNKNOWN_CIPHER_TYPE), |
| 511 | "unknown cipher type"}, |
| 512 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNKNOWN_CMD_NAME), "unknown cmd name"}, |
| 513 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNKNOWN_COMMAND), "unknown command"}, |
| 514 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNKNOWN_DIGEST), "unknown digest"}, |
| 515 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE), |
| 516 | "unknown key exchange type"}, |
| 517 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNKNOWN_PKEY_TYPE), "unknown pkey type"}, |
| 518 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNKNOWN_PROTOCOL), "unknown protocol"}, |
| 519 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNKNOWN_SSL_VERSION), |
| 520 | "unknown ssl version"}, |
| 521 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNKNOWN_STATE), "unknown state"}, |
| 522 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNSAFE_LEGACY_RENEGOTIATION_DISABLED), |
| 523 | "unsafe legacy renegotiation disabled"}, |
| 524 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNSOLICITED_EXTENSION), |
| 525 | "unsolicited extension"}, |
| 526 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNSUPPORTED_COMPRESSION_ALGORITHM), |
| 527 | "unsupported compression algorithm"}, |
| 528 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNSUPPORTED_ELLIPTIC_CURVE), |
| 529 | "unsupported elliptic curve"}, |
| 530 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNSUPPORTED_PROTOCOL), |
| 531 | "unsupported protocol"}, |
| 532 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNSUPPORTED_SSL_VERSION), |
| 533 | "unsupported ssl version"}, |
| 534 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_UNSUPPORTED_STATUS_TYPE), |
| 535 | "unsupported status type"}, |
| 536 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_USE_SRTP_NOT_NEGOTIATED), |
| 537 | "use srtp not negotiated"}, |
| 538 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_VERSION_TOO_HIGH), "version too high"}, |
| 539 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_VERSION_TOO_LOW), "version too low"}, |
| 540 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_WRONG_CERTIFICATE_TYPE), |
| 541 | "wrong certificate type"}, |
| 542 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_WRONG_CIPHER_RETURNED), |
| 543 | "wrong cipher returned"}, |
| 544 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_WRONG_CURVE), "wrong curve"}, |
| 545 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_WRONG_SIGNATURE_LENGTH), |
| 546 | "wrong signature length"}, |
| 547 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_WRONG_SIGNATURE_SIZE), |
| 548 | "wrong signature size"}, |
| 549 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_WRONG_SIGNATURE_TYPE), |
| 550 | "wrong signature type"}, |
| 551 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_WRONG_SSL_VERSION), "wrong ssl version"}, |
| 552 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_WRONG_VERSION_NUMBER), |
| 553 | "wrong version number"}, |
| 554 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_X509_LIB), "x509 lib"}, |
| 555 | {ERR_PACK(ERR_LIB_SSL, 0, SSL_R_X509_VERIFICATION_SETUP_PROBLEMS), |
| 556 | "x509 verification setup problems"}, |
Matt Caswell | 0f113f3 | 2015-01-22 03:40:55 +0000 | [diff] [blame] | 557 | {0, NULL} |
| 558 | }; |
Ralf S. Engelschall | d02b48c | 1998-12-21 10:52:47 +0000 | [diff] [blame] | 559 | |
Ralf S. Engelschall | 58964a4 | 1998-12-21 10:56:39 +0000 | [diff] [blame] | 560 | #endif |
| 561 | |
Pauli | b93f6c2 | 2021-05-25 12:04:22 +1000 | [diff] [blame] | 562 | int ossl_err_load_SSL_strings(void) |
Matt Caswell | 0f113f3 | 2015-01-22 03:40:55 +0000 | [diff] [blame] | 563 | { |
Richard Levitte | bc36ee6 | 2001-02-20 08:13:47 +0000 | [diff] [blame] | 564 | #ifndef OPENSSL_NO_ERR |
Richard Levitte | 0cd1b14 | 2019-09-04 21:45:56 +0200 | [diff] [blame] | 565 | if (ERR_reason_error_string(SSL_str_reasons[0].error) == NULL) |
Rich Salz | 52df25c | 2017-06-07 15:12:03 -0400 | [diff] [blame] | 566 | ERR_load_strings_const(SSL_str_reasons); |
Dr. Stephen Henson | 47a9d52 | 2006-11-21 21:29:44 +0000 | [diff] [blame] | 567 | #endif |
Kurt Roeckx | 69588ed | 2016-07-12 15:50:06 +0200 | [diff] [blame] | 568 | return 1; |
Matt Caswell | 0f113f3 | 2015-01-22 03:40:55 +0000 | [diff] [blame] | 569 | } |