Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions tests/ci/integration/ruby_patch/master/aws-lc-ruby.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -2942,14 +2942,14 @@ bio_bread0(VALUE args_)
args->ret = len;
}
else if (NIL_P(ret)) {
-#if OSSL_OPENSSL_PREREQ(3, 0, 0) && !OSSL_OPENSSL_PREREQ(4, 0, 0)
+#if (OSSL_OPENSSL_PREREQ(3, 0, 0) && !OSSL_OPENSSL_PREREQ(4, 0, 0)) || defined(OPENSSL_IS_AWSLC)
/*
* Only needed for OpenSSL 3.x. OpenSSL 4.x will automatically handle
* it based on the return value of 0 in the BIO layer.
*
- * OpenSSL 1.1.1, LibreSSL, and AWS-LC don't use BIO_eof().
+ * AWS-LC also uses BIO_eof(). OpenSSL 1.1.1 and LibreSSL don't.
*/
BIO_set_flags(args->bio, BIO_FLAGS_IN_EOF);
#endif
args->ret = 0;
}
@@ -2983,6 +2983,6 @@ bio_ctrl(BIO *bio, int cmd, long larg, void *parg)
{
switch (cmd) {
-#if OSSL_OPENSSL_PREREQ(3, 0, 0) && !OSSL_OPENSSL_PREREQ(4, 0, 0)
+#if (OSSL_OPENSSL_PREREQ(3, 0, 0) && !OSSL_OPENSSL_PREREQ(4, 0, 0)) || defined(OPENSSL_IS_AWSLC)
case BIO_CTRL_EOF:
return BIO_test_flags(bio, BIO_FLAGS_IN_EOF) != 0;
#endif
Loading