Home
last modified time | relevance | path

Searched refs:alert_desc (Results 1 – 13 of 13) sorted by relevance

/dragonfly/crypto/libressl/ssl/
H A Dtls13_lib.c107 tls13_alert_received_cb(uint8_t alert_desc, void *arg) in tls13_alert_received_cb() argument
111 if (alert_desc == TLS13_ALERT_CLOSE_NOTIFY) { in tls13_alert_received_cb()
114 ctx->ssl->s3->warn_alert = alert_desc; in tls13_alert_received_cb()
118 if (alert_desc == TLS13_ALERT_USER_CANCELED) { in tls13_alert_received_cb()
127 ctx->ssl->s3->fatal_alert = alert_desc; in tls13_alert_received_cb()
129 SSLerror(ctx->ssl, SSL_AD_REASON_OFFSET + alert_desc); in tls13_alert_received_cb()
130 ERR_asprintf_error_data("SSL alert number %d", alert_desc); in tls13_alert_received_cb()
136 tls13_alert_sent_cb(uint8_t alert_desc, void *arg) in tls13_alert_sent_cb() argument
140 if (alert_desc == TLS13_ALERT_CLOSE_NOTIFY) { in tls13_alert_sent_cb()
145 if (alert_desc == TLS13_ALERT_USER_CANCELED) { in tls13_alert_sent_cb()
[all …]
H A Dtls13_record_layer.c96 uint8_t alert_desc; member
283 uint8_t alert_level, alert_desc; in tls13_record_layer_process_alert() local
312 if (alert_desc == TLS13_ALERT_CLOSE_NOTIFY) { in tls13_record_layer_process_alert()
330 rl->cb.alert_recv(alert_desc, rl->cb_arg); in tls13_record_layer_process_alert()
364 rl->cb.alert_sent(rl->alert_desc, rl->cb_arg); in tls13_record_layer_send_alert()
417 uint8_t alert_level, uint8_t alert_desc) in tls13_record_layer_enqueue_alert() argument
429 if (!CBB_add_u8(&cbb, alert_desc)) in tls13_record_layer_enqueue_alert()
435 rl->alert_desc = alert_desc; in tls13_record_layer_enqueue_alert()
1211 if (alert_desc == TLS13_ALERT_CLOSE_NOTIFY || in tls13_send_alert()
1212 alert_desc == TLS13_ALERT_USER_CANCELED) in tls13_send_alert()
[all …]
H A Dtls13_client.c216 int alert_desc; in tls13_server_hello_process() local
268 if (!tlsext_client_parse(s, tlsext_msg_type, cbs, &alert_desc)) { in tls13_server_hello_process()
269 ctx->alert = alert_desc; in tls13_server_hello_process()
503 int alert_desc; in tls13_server_encrypted_extensions_recv() local
505 if (!tlsext_client_parse(ctx->ssl, SSL_TLSEXT_MSG_EE, cbs, &alert_desc)) { in tls13_server_encrypted_extensions_recv()
506 ctx->alert = alert_desc; in tls13_server_encrypted_extensions_recv()
517 int alert_desc; in tls13_server_certificate_request_recv() local
536 ctx->alert = alert_desc; in tls13_server_certificate_request_recv()
557 int alert_desc; in tls13_server_certificate_recv() local
575 &cert_list, &alert_desc)) { in tls13_server_certificate_recv()
[all …]
H A Dtls12_record_layer.c168 uint8_t alert_desc; member
223 *alert_desc = rl->alert_desc; in tls12_record_layer_alert()
908 rl->alert_desc = SSL_AD_BAD_RECORD_MAC; in tls12_record_layer_open_record_protected_aead()
912 rl->alert_desc = SSL_AD_RECORD_OVERFLOW; in tls12_record_layer_open_record_protected_aead()
927 rl->alert_desc = SSL_AD_BAD_RECORD_MAC; in tls12_record_layer_open_record_protected_aead()
932 rl->alert_desc = SSL_AD_RECORD_OVERFLOW; in tls12_record_layer_open_record_protected_aead()
992 rl->alert_desc = SSL_AD_BAD_RECORD_MAC; in tls12_record_layer_open_record_protected_cipher()
996 rl->alert_desc = SSL_AD_RECORD_OVERFLOW; in tls12_record_layer_open_record_protected_cipher()
1000 rl->alert_desc = SSL_AD_BAD_RECORD_MAC; in tls12_record_layer_open_record_protected_cipher()
1048 rl->alert_desc = SSL_AD_BAD_RECORD_MAC; in tls12_record_layer_open_record_protected_cipher()
[all …]
H A Dd1_pkt.c297 uint8_t alert_desc; in dtls1_process_record() local
305 tls12_record_layer_alert(s->internal->rl, &alert_desc); in dtls1_process_record()
307 if (alert_desc == 0) in dtls1_process_record()
314 if (alert_desc == SSL_AD_BAD_RECORD_MAC) { in dtls1_process_record()
319 if (alert_desc == SSL_AD_RECORD_OVERFLOW) in dtls1_process_record()
335 ssl3_send_alert(s, SSL3_AL_FATAL, alert_desc); in dtls1_process_record()
H A Dtls13_quic.c131 tls13_quic_alert_send_cb(int alert_desc, void *arg) in tls13_quic_alert_send_cb() argument
137 alert_desc)) { in tls13_quic_alert_send_cb()
H A Dssl_pkt.c332 uint8_t alert_desc; in ssl3_get_record() local
412 tls12_record_layer_alert(s->internal->rl, &alert_desc); in ssl3_get_record()
414 if (alert_desc == 0) in ssl3_get_record()
417 if (alert_desc == SSL_AD_RECORD_OVERFLOW) in ssl3_get_record()
419 else if (alert_desc == SSL_AD_BAD_RECORD_MAC) in ssl3_get_record()
422 al = alert_desc; in ssl3_get_record()
H A Dssl_tlsext.c923 int alert_desc = SSL_AD_DECODE_ERROR; in tlsext_ocsp_server_parse() local
954 alert_desc = SSL_AD_INTERNAL_ERROR; in tlsext_ocsp_server_parse()
968 alert_desc = SSL_AD_INTERNAL_ERROR; in tlsext_ocsp_server_parse()
989 *alert = alert_desc; in tlsext_ocsp_server_parse()
2326 int alert_desc; in tlsext_parse() local
2336 alert_desc = SSL_AD_DECODE_ERROR; in tlsext_parse()
2367 alert_desc = SSL_AD_ILLEGAL_PARAMETER; in tlsext_parse()
2377 if (!ext->parse(s, msg_type, &extension_data, &alert_desc)) in tlsext_parse()
2387 *alert = alert_desc; in tlsext_parse()
H A Dtls13_internal.h230 ssize_t tls13_send_alert(struct tls13_record_layer *rl, uint8_t alert_desc);
312 void tls13_alert_received_cb(uint8_t alert_desc, void *arg);
313 void tls13_alert_sent_cb(uint8_t alert_desc, void *arg);
H A Dt1_lib.c991 int alert_desc = SSL_AD_INTERNAL_ERROR; in tls_decrypt_ticket() local
1069 alert_desc = SSL_AD_DECODE_ERROR; in tls_decrypt_ticket()
1121 *alert = alert_desc; in tls_decrypt_ticket()
H A Dssl_sess.c533 int alert_desc = SSL_AD_INTERNAL_ERROR, fatal = 0; in ssl_get_prev_session() local
542 switch (tls1_process_ticket(s, ext_block, &alert_desc, &sess)) { in ssl_get_prev_session()
634 *alert = alert_desc; in ssl_get_prev_session()
H A Dtls13_server.c151 int alert_desc; in tls13_client_hello_process() local
213 if (!tlsext_server_parse(s, SSL_TLSEXT_MSG_CH, cbs, &alert_desc)) { in tls13_client_hello_process()
214 ctx->alert = alert_desc; in tls13_client_hello_process()
H A Dssl_locl.h679 uint8_t *alert_desc);