SSL_get_peer_certificate, which is used in tls_openssl.c, is deprecated starting from openssl 3.0. I’m getting undefined symbol _SSL_get1_peer_certificate error from linker trying to link it with system provided ssl.dylib (openssl version 3.2).
Interesting thing is that it links when libstrophe is compiled with openssl 1.1.1 headers. Does not compile with 3.0 headers if macro OPENSSL_NO_DEPRECATED is defined. Compiles without this macro but does not link.
S Hobb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.