From ccf611fc2665eda92f8792388083ee37e8885095 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 25 Sep 2024 07:32:39 +0000 Subject: [PATCH] bug fixes --- src/__init__.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/__init__.py b/src/__init__.py index 08946a2..2cd895b 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -327,11 +327,9 @@ def patchSource(hashS, ver): replaceFileText('src/third_party/boringssl/src/ssl/ssl_x509.cc', 'static int ssl_crypto_x509_session_verify_cert_chain(SSL_SESSION *session,\n SSL_HANDSHAKE *hs,\n uint8_t *out_alert) {', 'static int ssl_crypto_x509_session_verify_cert_chain(SSL_SESSION *session,\n SSL_HANDSHAKE *hs,\n uint8_t *out_alert) {return 1;') - replaceFileText('src/third_party/boringssl/src/ssl/ssl_x509.cc', """static bool ssl_crypto_x509_session_verify_cert_chain(SSL_SESSION *session, - SSL_HANDSHAKE *hs, - uint8_t *out_alert) {""", """static bool ssl_crypto_x509_session_verify_cert_chain(SSL_SESSION *session, - SSL_HANDSHAKE *hs, - uint8_t *out_alert) { return true;""") + + patch_ssl_x509() # hard patch + if ver == 26 or ver == 27: replaceFileText('tools/generate_package_config/pubspec.yaml', 'package_config: any', 'package_config: 1.9.3') if ver == 24: