mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -04:00

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.
6 lines
185 B
V
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
|