1
0
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:
Alexander Medvednikov
2019-08-06 14:02:51 +02:00
parent eece058f18
commit 8b75f2125a
2 changed files with 12 additions and 6 deletions

View File

@ -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) {
}