Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay committed Sep 25, 2024
1 parent 1261810 commit ccf611f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ccf611f

Please sign in to comment.