v/vlib/net/openssl/openssl_openbsd.c.v
Laurent Cheylus a8aeae2111
net.openssl: replace SSL_get1_peer_certificate by SSL_get_peer_certificate for OpenBSD (#24556)
OpenBSD uses LibreSSL (OpenSSL fork) by default for libssl/libcrypto.
SSL_get1_peer_certificate is not supported by LibreSSL, replace it by
SSL_get_peer_certificate.
2025-05-23 16:15:48 +03:00

6 lines
185 B
V

module openssl
// SSL_get_peer1_certificate not defined in LibreSSL (OpenSSL fork) on OpenBSD,
// use SSL_get_peer_certificate instead.
fn C.SSL_get_peer_certificate(ssl &SSL) &C.X509