-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into s2n-bignum-alt-func-handling
- Loading branch information
Showing
11 changed files
with
182 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
...integration/mariadb_patch/0003-WIP-Use-replace_regex-in-mysql-test-run-to-make-SSL-.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/vio/viosslfactories.c b/vio/viosslfactories.c | ||
index 530872c4..235bf76f 100644 | ||
--- a/vio/viosslfactories.c | ||
+++ b/vio/viosslfactories.c | ||
@@ -354,6 +354,11 @@ new_VioSSLFd(const char *key_file, const char *cert_file, const char *ca_file, | ||
} | ||
|
||
SSL_CTX_set_options(ssl_fd->ssl_context, ssl_ctx_options); | ||
+ /* | ||
+ This reverts AWS-LC to the default OpenSSL auto-chaining behavior. Since | ||
+ OpenSSL enables auto-chaining by default, this is a no-op with OpenSSL. | ||
+ */ | ||
+ SSL_CTX_clear_mode(ssl_fd->ssl_context, SSL_MODE_NO_AUTO_CHAIN); | ||
|
||
/* | ||
Set the ciphers that can be used |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/mysql-test/main/ssl_crl.test b/mysql-test/main/ssl_crl.test | ||
index 9b475857..58d23087 100644 | ||
--- a/mysql-test/main/ssl_crl.test | ||
+++ b/mysql-test/main/ssl_crl.test | ||
@@ -8,6 +8,6 @@ | ||
|
||
--echo # try logging in with a certificate in the server's --ssl-crl : should fail | ||
# OpenSSL 1.1.1a correctly rejects the certificate, but the error message is different | ||
---replace_regex /ERROR 2013 \(HY000\): Lost connection to server at '.*', system error: [0-9]+/ERROR 2026 (HY000): TLS\/SSL error: sslv3 alert certificate revoked/ | ||
+--replace_regex /ERROR 2013 \(HY000\): Lost connection to server at '.*', system error: [0-9]+/ERROR 2026 (HY000): TLS\/SSL error: sslv3 alert certificate revoked/ /SSLV3_ALERT_CERTIFICATE_REVOKED/sslv3 alert certificate revoked/ | ||
--error 1 | ||
--exec $MYSQL --ssl-ca=$MYSQL_TEST_DIR/std_data/cacert.pem --ssl-key=$MYSQL_TEST_DIR/std_data/client-key.pem --ssl-cert=$MYSQL_TEST_DIR/std_data/client-cert.pem test -e "SHOW STATUS LIKE 'Ssl_version'" 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.type foo, @function | ||
.globl foo | ||
foo: | ||
movq %rbx, %rbx # instruction allowing delocator to detect architecture | ||
vpinsrq $0x08, kBoringSSLRSASqrtTwo@GOTPCREL(%rip), %xmm1, %xmm0 | ||
vpinsrq $1, fooExternal@GOTPCREL(%rip), %xmm14, %xmm15 | ||
|
||
.type kBoringSSLRSASqrtTwo,@object # @kBoringSSLRSASqrtTwo | ||
.section .rodata,"a",@progbits,unique,760 | ||
.globl kBoringSSLRSASqrtTwo | ||
.p2align 4 | ||
kBoringSSLRSASqrtTwo: | ||
.quad -2404814165548301886 # 0xdea06241f7aa81c2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
.text | ||
.file 1 "inserted_by_delocate.c" | ||
.loc 1 1 0 | ||
BORINGSSL_bcm_text_start: | ||
.type foo, @function | ||
.globl foo | ||
.Lfoo_local_target: | ||
foo: | ||
movq %rbx, %rbx # instruction allowing delocator to detect architecture | ||
# WAS vpinsrq $0x08, kBoringSSLRSASqrtTwo@GOTPCREL(%rip), %xmm1, %xmm0 | ||
leaq -128(%rsp), %rsp | ||
pushq %rax | ||
leaq .LkBoringSSLRSASqrtTwo_local_target(%rip), %rax | ||
vpinsrq $0x08, %rax, %xmm1, %xmm0 | ||
popq %rax | ||
leaq 128(%rsp), %rsp | ||
# WAS vpinsrq $1, fooExternal@GOTPCREL(%rip), %xmm14, %xmm15 | ||
leaq -128(%rsp), %rsp | ||
pushq %rax | ||
pushf | ||
leaq fooExternal_GOTPCREL_external(%rip), %rax | ||
addq (%rax), %rax | ||
movq (%rax), %rax | ||
popf | ||
vpinsrq $1, %rax, %xmm14, %xmm15 | ||
popq %rax | ||
leaq 128(%rsp), %rsp | ||
|
||
.type kBoringSSLRSASqrtTwo,@object # @kBoringSSLRSASqrtTwo | ||
# WAS .section .rodata,"a",@progbits,unique,760 | ||
.text | ||
.globl kBoringSSLRSASqrtTwo | ||
.p2align 4 | ||
.LkBoringSSLRSASqrtTwo_local_target: | ||
kBoringSSLRSASqrtTwo: | ||
.quad -2404814165548301886 # 0xdea06241f7aa81c2 | ||
.text | ||
.loc 1 2 0 | ||
BORINGSSL_bcm_text_end: | ||
.type fooExternal_GOTPCREL_external, @object | ||
.size fooExternal_GOTPCREL_external, 8 | ||
fooExternal_GOTPCREL_external: | ||
.long fooExternal@GOTPCREL | ||
.long 0 | ||
.type OPENSSL_ia32cap_get, @function | ||
.globl OPENSSL_ia32cap_get | ||
.LOPENSSL_ia32cap_get_local_target: | ||
OPENSSL_ia32cap_get: | ||
leaq OPENSSL_ia32cap_P(%rip), %rax | ||
ret | ||
.type BORINGSSL_bcm_text_hash, @object | ||
.size BORINGSSL_bcm_text_hash, 32 | ||
BORINGSSL_bcm_text_hash: | ||
.byte 0xae | ||
.byte 0x2c | ||
.byte 0xea | ||
.byte 0x2a | ||
.byte 0xbd | ||
.byte 0xa6 | ||
.byte 0xf3 | ||
.byte 0xec | ||
.byte 0x97 | ||
.byte 0x7f | ||
.byte 0x9b | ||
.byte 0xf6 | ||
.byte 0x94 | ||
.byte 0x9a | ||
.byte 0xfc | ||
.byte 0x83 | ||
.byte 0x68 | ||
.byte 0x27 | ||
.byte 0xcb | ||
.byte 0xa0 | ||
.byte 0xa0 | ||
.byte 0x9f | ||
.byte 0x6b | ||
.byte 0x6f | ||
.byte 0xde | ||
.byte 0x52 | ||
.byte 0xcd | ||
.byte 0xe2 | ||
.byte 0xcd | ||
.byte 0xff | ||
.byte 0x31 | ||
.byte 0x80 |