Skip to content

Commit 82efc5a

Browse files
authored
Merge pull request #36 from fooinha/fix/19/burp
support extension status_request_v2
2 parents 7e56555 + 261caaf commit 82efc5a

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

patches/openssl.extensions.patch

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
diff --git a/include/openssl/tls1.h b/include/openssl/tls1.h
2-
index 2e46cf80d3..cf43f544ad 100644
2+
index 2e46cf80d3..c883d0f4fc 100644
33
--- a/include/openssl/tls1.h
44
+++ b/include/openssl/tls1.h
5-
@@ -131,6 +131,15 @@ extern "C" {
5+
@@ -113,6 +113,9 @@ extern "C" {
6+
/* ExtensionType value from RFC7301 */
7+
# define TLSEXT_TYPE_application_layer_protocol_negotiation 16
8+
9+
+/* ExtensionType value from RFC6961 */
10+
+# define TLSEXT_TYPE_status_request_v2 17
11+
+
12+
/*
13+
* Extension type for Certificate Transparency
14+
* https://tools.ietf.org/html/rfc6962#section-3.3.1
15+
@@ -131,6 +134,15 @@ extern "C" {
616
/* ExtensionType value from RFC7627 */
717
# define TLSEXT_TYPE_extended_master_secret 23
8-
18+
919
+/* [draft-ietf-tls-certificate-compression] */
1020
+# define TLSEXT_TYPE_compress_certificate 27
1121
+/* ExtensionType value from RFC8449 */
@@ -17,8 +27,8 @@ index 2e46cf80d3..cf43f544ad 100644
1727
+
1828
/* ExtensionType value from RFC4507 */
1929
# define TLSEXT_TYPE_session_ticket 35
20-
21-
@@ -145,6 +154,7 @@ extern "C" {
30+
31+
@@ -145,6 +157,7 @@ extern "C" {
2232
# define TLSEXT_TYPE_signature_algorithms_cert 50
2333
# define TLSEXT_TYPE_key_share 51
2434

@@ -27,24 +37,25 @@ index 2e46cf80d3..cf43f544ad 100644
2737
# define TLSEXT_TYPE_renegotiate 0xff01
2838

2939
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h
30-
index e8819e7a28..3b49018cf4 100644
40+
index e8819e7a28..b870ca3247 100644
3141
--- a/ssl/ssl_locl.h
3242
+++ b/ssl/ssl_locl.h
33-
@@ -719,6 +719,9 @@ typedef enum tlsext_index_en {
43+
@@ -719,6 +719,10 @@ typedef enum tlsext_index_en {
3444
TLSEXT_IDX_cryptopro_bug,
3545
TLSEXT_IDX_early_data,
3646
TLSEXT_IDX_certificate_authorities,
3747
+ TLSEXT_IDX_compress_certificate,
3848
+ TLSEXT_IDX_record_size_limit,
3949
+ TLSEXT_IDX_application_settings,
50+
+ TLSEXT_IDX_status_request_v2,
4051
TLSEXT_IDX_padding,
4152
TLSEXT_IDX_psk,
4253
/* Dummy index - must always be the last entry */
4354
diff --git a/ssl/statem/extensions.c b/ssl/statem/extensions.c
44-
index 8422161dc1..4979b58467 100644
55+
index 8422161dc1..a7d9666c72 100644
4556
--- a/ssl/statem/extensions.c
4657
+++ b/ssl/statem/extensions.c
47-
@@ -371,6 +371,30 @@ static const EXTENSION_DEFINITION ext_defs[] = {
58+
@@ -371,6 +371,38 @@ static const EXTENSION_DEFINITION ext_defs[] = {
4859
tls_construct_certificate_authorities,
4960
tls_construct_certificate_authorities, NULL,
5061
},
@@ -71,6 +82,14 @@ index 8422161dc1..4979b58467 100644
7182
+ NULL, NULL,
7283
+ NULL,
7384
+ NULL, NULL,
85+
+ },
86+
+ {
87+
+ TLSEXT_TYPE_status_request_v2,
88+
+ SSL_EXT_CLIENT_HELLO,
89+
+ NULL,
90+
+ NULL, NULL,
91+
+ NULL,
92+
+ NULL, NULL,
7493
+ },
7594
{
7695
/* Must be immediately before pre_shared_key */

0 commit comments

Comments
 (0)