mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
openssl: make compile on Linux
This commit is contained in:
parent
67d6702c1f
commit
b7a6c761b3
@ -16,13 +16,16 @@ struct C.SSL {
|
||||
}
|
||||
|
||||
fn init_module() {
|
||||
$if mac {
|
||||
C.SSL_library_init()
|
||||
}
|
||||
//C.SSL_load_error_strings()
|
||||
//C.OPENSSL_config(0)
|
||||
}
|
||||
|
||||
fn ssl_do(method, host_name, path string) string {
|
||||
ssl_method := C.SSLv23_method()
|
||||
//ssl_method := C.SSLv23_method()
|
||||
ssl_method := C.TLSv1_2_method()
|
||||
if isnil(method) {
|
||||
}
|
||||
ctx := C.SSL_CTX_new(ssl_method)
|
||||
|
Loading…
Reference in New Issue
Block a user