orm: cross compile pg to linux; openssl: make cross compile work

This commit is contained in:
Alexander Medvednikov 2024-10-28 17:36:41 +03:00
parent 986ed33deb
commit 27ff2f1628
5 changed files with 27 additions and 6 deletions

View file

@ -1,5 +1,7 @@
module openssl
#define OPENSSL_API_COMPAT 0x30000000L
// On Linux, prefer a locally built openssl, because it is
// much more likely for it to be newer, than the system
// openssl from libssl-dev. If there is no local openssl,
@ -116,6 +118,8 @@ fn C.SSL_set_cipher_list(ctx &SSL, str &char) int
fn C.SSL_get_peer_certificate(ssl &SSL) &C.X509
// fn C.SSL_get1_peer_certificate(ssl &SSL) &C.X509
fn C.X509_free(const_cert &C.X509)
fn C.ERR_clear_error()