git: f9432f4e7b2c - main - www/h2o-devel: Fix build with openssl3

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 08 Aug 2023 09:55:30 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f9432f4e7b2c2331ef90c02c14673ddf343bc1fd

commit f9432f4e7b2c2331ef90c02c14673ddf343bc1fd
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-08 09:50:36 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-08 09:55:14 +0000

    www/h2o-devel: Fix build with openssl3
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 www/h2o-devel/files/patch-src_ssl.c | 12 ++++++++++++
 www/h2o-devel/pkg-plist             |  1 +
 2 files changed, 13 insertions(+)

diff --git a/www/h2o-devel/files/patch-src_ssl.c b/www/h2o-devel/files/patch-src_ssl.c
new file mode 100644
index 000000000000..938c96e1e7ee
--- /dev/null
+++ b/www/h2o-devel/files/patch-src_ssl.c
@@ -0,0 +1,12 @@
+--- src/ssl.c.orig	2023-08-08 09:33:37 UTC
++++ src/ssl.c
+@@ -1182,7 +1182,9 @@ void init_openssl(void)
+     SSL_library_init();
+     OpenSSL_add_all_algorithms();
+ #if H2O_CAN_OSSL_ASYNC
++#if OPENSSL_VERSION_NUMBER < 0x30000000L
+     ERR_load_ASYNC_strings();
++#endif
+ #endif
+ 
+     /* When using OpenSSL >= 3.0, load legacy provider so that blowfish can be used for 64-bit QUIC CIDs. */
diff --git a/www/h2o-devel/pkg-plist b/www/h2o-devel/pkg-plist
index af36fdd94a89..212866fc94ad 100644
--- a/www/h2o-devel/pkg-plist
+++ b/www/h2o-devel/pkg-plist
@@ -89,6 +89,7 @@ share/man/man8/h2o.8.gz
 %%PORTDOCS%%%%DOCSDIR%%/examples/doc_root/index.html
 %%PORTDOCS%%%%DOCSDIR%%/examples/h2o/alternate.crt
 %%PORTDOCS%%%%DOCSDIR%%/examples/h2o/alternate.key
+%%PORTDOCS%%%%DOCSDIR%%/examples/h2o/ech.key
 %%PORTDOCS%%%%DOCSDIR%%/examples/h2o/h2o.conf
 %%PORTDOCS%%%%DOCSDIR%%/examples/h2o/server.crt
 %%PORTDOCS%%%%DOCSDIR%%/examples/h2o/server.key