mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
wrappers/openssl: defer loading SSL_CTX_set_ciphersuites
This commit is contained in:
@@ -425,7 +425,9 @@ else:
|
||||
raiseInvalidLibrary MainProc
|
||||
|
||||
proc SSL_CTX_set_ciphersuites*(ctx: SslCtx, str: cstring): cint =
|
||||
let theProc {.global.} = cast[proc(ctx: SslCtx, str: cstring) {.cdecl, gcsafe.}](sslSymThrows("SSL_CTX_set_ciphersuites"))
|
||||
var theProc {.global.}: proc(ctx: SslCtx, str: cstring) {.cdecl, gcsafe.}
|
||||
if theProc.isNil:
|
||||
theProc = cast[typeof(theProc)](sslSymThrows("SSL_CTX_set_ciphersuites"))
|
||||
theProc(ctx, str)
|
||||
|
||||
proc ERR_load_BIO_strings*(){.cdecl, dynlib: DLLUtilName, importc.}
|
||||
|
||||
Reference in New Issue
Block a user