https://bugs.openldap.org/show_bug.cgi?id=10498
--- Comment #3 from Howard Chu hyc@openldap.org --- Comment on attachment 1148 --> https://bugs.openldap.org/attachment.cgi?id=1148 libldap: more const-correctness for OpenSSL 4
Thanks for the patch. It's noisy on OpenSSL 3.0.13 though:
libtool: compile: cc -g -O2 -I../../include -I../../../head/include -DLDAP_LIBRARY -c ../../../head/libraries/libldap/tls_o.c -fPIC -DPIC -o .libs/tls_o.o ../../../head/libraries/libldap/tls_o.c: In function ‘tlso_session_chkhost’: ../../../head/libraries/libldap/tls_o.c:1044:38: warning: passing argument 1 of ‘X509V3_EXT_d2i’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1044 | alt = X509V3_EXT_d2i(ex); | ^~ In file included from ../../../head/libraries/libldap/tls_o.c:42: /usr/include/openssl/x509v3.h:951:38: note: expected ‘X509_EXTENSION *’ {aka ‘struct X509_extension_st *’} but argument is of type ‘const X509_EXTENSION *’ {aka ‘const struct X509_extension_st *’} 951 | void *X509V3_EXT_d2i(X509_EXTENSION *ext); | ~~~~~~~~~~~~~~~~^~~