OpenSSL 4.0 is in experimental. This package fails to build against it:
| ../src/pj/ssl_sock_ossl.c: In function ‘init_ossl_ctx’:
| ../src/pj/ssl_sock_ossl.c:1599:29: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 1599 | if ((xn = X509_get_subject_name(x)) == NULL)
| | ^
| ../src/pj/ssl_sock_ossl.c: In function ‘parse_ossl_asn1_time’:
| ../src/pj/ssl_sock_ossl.c:2034:13: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘const struct asn1_string_st’}
| 2034 | utc = tm->type == V_ASN1_UTCTIME;
| | ^~
| ../src/pj/ssl_sock_ossl.c:2035:18: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘const struct asn1_string_st’}
| 2035 | p = (char*)tm->data;
| | ^~
| ../src/pj/ssl_sock_ossl.c:2036:13: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka ‘const struct asn1_string_st’}
| 2036 | len = tm->length;
| | ^~
| make[6]: *** [/build/reproducible-path/asterisk-22.9.0+dfsg+~cs6.16.60671434/third-party/pjproject/source/build/rules.mak:163: output/pjlib-x86_64-pc-linux-gnu/ssl_sock_ossl.o] Error 1
Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/asterisk_22.9.0+dfsg+~cs6.16.60671434-1_amd64-2026-04-19T11:47:22Z
Sebastian
Owch. Could we please do without the mojibake?
My original build log had this. Not sure why though.
Dear Maintainer, Please find attached a patch that fixes this issue.
Dear Maintainer, I updated the patch, addressing upstream's comments.