summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r--src/lib/libssl/tls13_internal.h33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h
index 050ad15df8..d6839ea3aa 100644
--- a/src/lib/libssl/tls13_internal.h
+++ b/src/lib/libssl/tls13_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_internal.h,v 1.72 2020/05/09 20:38:19 tb Exp $ */ 1/* $OpenBSD: tls13_internal.h,v 1.73 2020/05/10 16:56:11 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2018 Bob Beck <beck@openbsd.org>
4 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
@@ -44,6 +44,37 @@ __BEGIN_HIDDEN_DECLS
44#define TLS13_ERR_TRAILING_DATA 18 44#define TLS13_ERR_TRAILING_DATA 18
45#define TLS13_ERR_NO_SHARED_CIPHER 19 45#define TLS13_ERR_NO_SHARED_CIPHER 19
46 46
47#define TLS13_ALERT_LEVEL_WARNING 1
48#define TLS13_ALERT_LEVEL_FATAL 2
49
50#define TLS13_ALERT_CLOSE_NOTIFY 0
51#define TLS13_ALERT_UNEXPECTED_MESSAGE 10
52#define TLS13_ALERT_BAD_RECORD_MAC 20
53#define TLS13_ALERT_RECORD_OVERFLOW 22
54#define TLS13_ALERT_HANDSHAKE_FAILURE 40
55#define TLS13_ALERT_BAD_CERTIFICATE 42
56#define TLS13_ALERT_UNSUPPORTED_CERTIFICATE 43
57#define TLS13_ALERT_CERTIFICATE_REVOKED 44
58#define TLS13_ALERT_CERTIFICATE_EXPIRED 45
59#define TLS13_ALERT_CERTIFICATE_UNKNOWN 46
60#define TLS13_ALERT_ILLEGAL_PARAMETER 47
61#define TLS13_ALERT_UNKNOWN_CA 48
62#define TLS13_ALERT_ACCESS_DENIED 49
63#define TLS13_ALERT_DECODE_ERROR 50
64#define TLS13_ALERT_DECRYPT_ERROR 51
65#define TLS13_ALERT_PROTOCOL_VERSION 70
66#define TLS13_ALERT_INSUFFICIENT_SECURITY 71
67#define TLS13_ALERT_INTERNAL_ERROR 80
68#define TLS13_ALERT_INAPPROPRIATE_FALLBACK 86
69#define TLS13_ALERT_USER_CANCELED 90
70#define TLS13_ALERT_MISSING_EXTENSION 109
71#define TLS13_ALERT_UNSUPPORTED_EXTENSION 110
72#define TLS13_ALERT_UNRECOGNIZED_NAME 112
73#define TLS13_ALERT_BAD_CERTIFICATE_STATUS_RESPONSE 113
74#define TLS13_ALERT_UNKNOWN_PSK_IDENTITY 115
75#define TLS13_ALERT_CERTIFICATE_REQUIRED 116
76#define TLS13_ALERT_NO_APPLICATION_PROTOCOL 120
77
47typedef void (*tls13_alert_cb)(uint8_t _alert_desc, void *_cb_arg); 78typedef void (*tls13_alert_cb)(uint8_t _alert_desc, void *_cb_arg);
48typedef ssize_t (*tls13_phh_recv_cb)(void *_cb_arg, CBS *_cbs); 79typedef ssize_t (*tls13_phh_recv_cb)(void *_cb_arg, CBS *_cbs);
49typedef void (*tls13_phh_sent_cb)(void *_cb_arg); 80typedef void (*tls13_phh_sent_cb)(void *_cb_arg);