mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
http: init_module() to init openssl once
This commit is contained in:
@ -16,17 +16,12 @@ struct C.SSL {
|
||||
}
|
||||
|
||||
fn init_module() {
|
||||
init_openssl()
|
||||
}
|
||||
|
||||
fn init_openssl() {
|
||||
C.SSL_library_init()
|
||||
//C.SSL_load_error_strings()
|
||||
//C.OPENSSL_config(0)
|
||||
}
|
||||
|
||||
fn ssl_do(method, host_name, path string) string {
|
||||
init_openssl()
|
||||
ssl_method := C.SSLv23_method()
|
||||
if isnil(method) {
|
||||
}
|
||||
|
Reference in New Issue
Block a user