mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
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.
This commit is contained in:
parent
ddb15646a7
commit
a8aeae2111
2 changed files with 11 additions and 1 deletions
5
vlib/net/openssl/openssl_openbsd.c.v
Normal file
5
vlib/net/openssl/openssl_openbsd.c.v
Normal file
|
@ -0,0 +1,5 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue