/openssl/test/recipes/ |
H A D | 02-test_errstr.t | 139 my $reason = $res[0]; 140 $reason =~ s|\R$||; 141 $reason = ( split_error($reason) )[3]; 143 return match_any($reason, $errcode_hex, @strings);
|
/openssl/ssl/quic/ |
H A D | quic_channel.c | 2380 tcause.reason_len = strlen(tcause.reason); in ch_raise_version_neg_failure() 2635 tcause.reason = app_reason; in ossl_quic_channel_local_close() 2831 dst->reason = NULL; in copy_tcause() 2845 dst->reason = r = OPENSSL_memdup(src->reason, l + 1); in copy_tcause() 2895 f.reason = (char *)ch->terminate_cause.reason; in ch_start_terminating() 2955 tcause.reason = f->reason; in ossl_quic_channel_on_remote_conn_close() 3153 tcause.reason_len = strlen(tcause.reason); in ossl_quic_channel_raise_net_error() 3227 reason); in ossl_quic_channel_raise_protocol_error_loc() 3233 reason); in ossl_quic_channel_raise_protocol_error_loc() 3243 tcause.reason = reason; in ossl_quic_channel_raise_protocol_error_loc() [all …]
|
/openssl/crypto/ec/ |
H A D | eck_prn.c | 72 int ret = 0, reason = ERR_R_BIO_LIB; in ECPKParameters_print() local 86 reason = ERR_R_PASSED_NULL_PARAMETER; in ECPKParameters_print() 92 reason = ERR_R_BN_LIB; in ECPKParameters_print() 130 reason = ERR_R_BN_LIB; in ECPKParameters_print() 135 reason = ERR_R_EC_LIB; in ECPKParameters_print() 140 reason = ERR_R_EC_LIB; in ECPKParameters_print() 146 reason = ERR_R_EC_LIB; in ECPKParameters_print() 154 reason = ERR_R_EC_LIB; in ECPKParameters_print() 216 ERR_raise(ERR_LIB_EC, reason); in ECPKParameters_print()
|
/openssl/include/openssl/ |
H A D | err.h.in | 203 * The reason flags are part of the overall reason code for practical 205 * reason codes in different numeric ranges. 207 * The currently known reason flags are: 226 * ERR_R_FATAL to use ERR_RFLAG_FATAL as its reason code. 277 * ERR_PACK takes reason flags and reason code combined in |reason|. 282 (((unsigned long)(reason) & ERR_REASON_MASK)) ) 316 /* "we came from here" global reason codes, range 1..255 */ 386 void ERR_set_error(int lib, int reason, const char *fmt, ...); 390 # define ERR_raise(lib, reason) ERR_raise_data((lib),(reason),NULL) argument 398 # define ERR_put_error(lib, func, reason, file, line) \ argument [all …]
|
/openssl/doc/man3/ |
H A D | ERR_GET_LIB.pod | 21 number and reason code. ERR_GET_LIB() 27 occurred, the reason code is the information about what went wrong. 30 reason code is unique within each sub-library. Note that different 33 B<ERR_R_...> reason codes such as B<ERR_R_MALLOC_FAILURE> are globally 34 unique. However, when checking for sub-library specific reason codes, 41 The library number, reason code, and whether the error
|
H A D | ERR_put_error.pod | 16 void ERR_raise(int lib, int reason); 17 void ERR_raise_data(int lib, int reason, const char *fmt, ...); 28 void ERR_put_error(int lib, int func, int reason, const char *file, int line); 33 error occurred in the library B<lib> for the reason given by the 34 B<reason> code. Furthermore, the name of the file, the line, and name 43 signals that the error of reason code B<reason> occurred in function 75 of reason codes B<XXX_R_...>. These are both passed in combination to 80 OpenSSL's libraries. OpenSSL reason codes normally consist of textual error 93 this case, the reason code given to ERR_raise() and ERR_raise_data() I<must> 149 reason code (after the "_R_") into lowercase with underscores changed to [all …]
|
H A D | ERR_new.pod | 14 void ERR_set_error(int lib, int reason, const char *fmt, ...); 15 void ERR_vset_error(int lib, int reason, const char *fmt, va_list args); 35 number I<lib> and the reason code I<reason>, and additional data as a 57 associated set of strings as a short description of the reason. 58 For dynamically allocated library numbers, reason strings are recorded
|
H A D | BIO_should_retry.pod | 20 BIO *BIO_get_retry_BIO(BIO *bio, int *reason); 22 void BIO_set_retry_reason(BIO *bio, int reason); 44 reason other than reading or writing is the cause of the condition. 51 BIO_get_retry_BIO() determines the precise reason for the special 53 B<reason> is not NULL it contains the reason code. The meaning of 54 the reason code and the action that should be taken depends on 57 BIO_get_retry_reason() returns the reason for a special condition if 60 BIO_set_retry_reason() sets the retry reason for a special condition for a given 127 BIO_get_retry_reason() returns the reason for a special condition.
|
H A D | ERR_load_strings.pod | 16 unsigned long ERR_PACK(int lib, int func, int reason); 31 reason code: B<error> = ERR_PACK(B<lib>, B<func>, B<reason>).
|
/openssl/apps/ |
H A D | CA.pl.in | 129 CA.pl -revoke certfile [reason] 228 my $reason = $ARGV[1]; 229 $reason = " -crl_reason $reason" 230 if defined $reason && crl_reason_ok($reason); 231 $RET = run("$CA -revoke \"$cname\"" . $reason . $EXTRA{ca});
|
/openssl/include/internal/ |
H A D | quic_channel.h | 152 const char *reason; member 233 const char *reason, 239 #define ossl_quic_channel_raise_protocol_error(ch, error_code, frame_type, reason) \ argument 242 (reason), \ 248 #define ossl_quic_channel_raise_protocol_error_state(ch, error_code, frame_type, reason, state) \ argument 251 (reason), \
|
/openssl/crypto/err/ |
H A D | err_blocks.c | 40 void ERR_set_error(int lib, int reason, const char *fmt, ...) in ERR_set_error() argument 45 ERR_vset_error(lib, reason, fmt, args); in ERR_set_error() 49 void ERR_vset_error(int lib, int reason, const char *fmt, va_list args) in ERR_vset_error() argument 114 err_set_error(es, es->top, lib, reason); in ERR_vset_error()
|
H A D | err_local.h | 41 int lib, int reason) in err_set_error() argument 45 ? (unsigned int)(ERR_SYSTEM_FLAG | reason) in err_set_error() 46 : ERR_PACK(lib, 0, reason); in err_set_error()
|
/openssl/test/ |
H A D | recordlentest.c | 66 int reason; in fail_due_to_record_overflow() local 69 reason = SSL_R_ENCRYPTED_LENGTH_TOO_LONG; in fail_due_to_record_overflow() 71 reason = SSL_R_DATA_LENGTH_TOO_LONG; in fail_due_to_record_overflow() 74 && ERR_GET_REASON(err) == reason) in fail_due_to_record_overflow()
|
H A D | quicapitest.c | 1688 #define TPARAM_CHECK_DUP(name, reason) \ argument 1689 { QUIC_TPARAM_##name, TPARAM_OP_DUP, (reason) }, 1690 #define TPARAM_CHECK_DROP(name, reason) \ argument 1691 { QUIC_TPARAM_##name, TPARAM_OP_DROP, (reason) }, 1695 #define TPARAM_CHECK_INJECT_A(name, buf, reason) \ argument 1708 { 0, TPARAM_OP_INJECT_RAW, (reason), \ 1710 #define TPARAM_CHECK_INJECT_RAW_A(buf, reason) \ argument 1711 TPARAM_CHECK_INJECT_RAW(buf, sizeof(buf), reason) 1712 #define TPARAM_CHECK_MUTATE(name, reason) \ argument 1714 #define TPARAM_CHECK_INT(name, reason) \ argument [all …]
|
/openssl/crypto/ocsp/ |
H A D | ocsp_cl.c | 248 int OCSP_single_get0_status(OCSP_SINGLERESP *single, int *reason, in OCSP_single_get0_status() argument 265 if (reason) { in OCSP_single_get0_status() 267 *reason = ASN1_ENUMERATED_get(rev->revocationReason); in OCSP_single_get0_status() 269 *reason = -1; in OCSP_single_get0_status() 284 int *reason, in OCSP_resp_find_status() argument 296 i = OCSP_single_get0_status(single, reason, revtime, thisupd, nextupd); in OCSP_resp_find_status()
|
/openssl/crypto/x509/ |
H A D | x_crl.c | 95 ASN1_ENUMERATED *reason; 121 reason = X509_REVOKED_get_ext_d2i(rev, NID_crl_reason, &j, NULL); 122 if (reason == NULL && j != -1) { 127 if (reason != NULL) { 128 rev->reason = ASN1_ENUMERATED_get(reason); 129 ASN1_ENUMERATED_free(reason); 131 rev->reason = CRL_REASON_NONE; 466 if (rev->reason == CRL_REASON_REMOVE_FROM_CRL) in def_crl_lookup()
|
/openssl/crypto/http/ |
H A D | http_client.c | 433 char *code, *reason, *end; in parse_http_line1() local 453 for (reason = code; *reason != '\0' && !ossl_isspace(*reason); reason++) in parse_http_line1() 456 if (*reason == '\0') in parse_http_line1() 460 *reason++ = '\0'; in parse_http_line1() 468 while (*reason != '\0' && ossl_isspace(*reason)) in parse_http_line1() 469 reason++; in parse_http_line1() 471 if (*reason != '\0') { in parse_http_line1() 478 for (end = reason + strlen(reason) - 1; ossl_isspace(*end); end--) in parse_http_line1() 491 if (*reason == '\0') in parse_http_line1() 495 reason); in parse_http_line1() [all …]
|
/openssl/engines/ |
H A D | e_ossltest_err.c | 50 static void ERR_OSSLTEST_error(int function, int reason, const char *file, int line) in ERR_OSSLTEST_error() argument 54 ERR_raise(lib_code, reason); in ERR_OSSLTEST_error()
|
H A D | e_dasync_err.c | 50 static void ERR_DASYNC_error(int function, int reason, const char *file, int line) in ERR_DASYNC_error() argument 54 ERR_raise(lib_code, reason); in ERR_DASYNC_error()
|
H A D | e_loader_attic_err.c | 67 static void ERR_ATTIC_error(int function, int reason, const char *file, int line) in ERR_ATTIC_error() argument 71 ERR_raise(lib_code, reason); in ERR_ATTIC_error()
|
H A D | e_afalg_err.c | 66 static void ERR_AFALG_error(int function, int reason, const char *file, int line) in ERR_AFALG_error() argument 70 ERR_raise(lib_code, reason); in ERR_AFALG_error()
|
H A D | e_capi_err.c | 88 static void ERR_CAPI_error(int function, int reason, const char *file, int line) in ERR_CAPI_error() argument 92 ERR_raise(lib_code, reason); in ERR_CAPI_error()
|
/openssl/providers/implementations/encode_decode/ |
H A D | decode_pvk2key.c | 137 int err, lib, reason; in pvk2key_decode() local 155 reason = ERR_GET_REASON(err); in pvk2key_decode() 157 && (reason == PEM_R_BAD_PASSWORD_READ in pvk2key_decode() 158 || reason == PEM_R_BAD_DECRYPT)) { in pvk2key_decode()
|
/openssl/providers/ |
H A D | legacyprov.c | 276 void ERR_set_error(int lib, int reason, const char *fmt, ...) in ERR_set_error() argument 281 c_vset_error(NULL, ERR_PACK(lib, 0, reason), fmt, args); in ERR_set_error() 285 void ERR_vset_error(int lib, int reason, const char *fmt, va_list args) in ERR_vset_error() argument 287 c_vset_error(NULL, ERR_PACK(lib, 0, reason), fmt, args); in ERR_vset_error()
|