fixes SSL version check logic [backport] (#21324)
* fixed version check logic [backport] * add ciphersuites * debug nimble * fixes returns omission * finally * remove debug message * add ciphersuites --------- Co-authored-by: Araq <rumpf_a@web.de>
This commit is contained in:
parent
43b1b9d077
commit
17115cbc73
4 changed files with 8 additions and 8 deletions
|
|
@ -467,10 +467,10 @@ else:
|
|||
raiseInvalidLibrary MainProc
|
||||
|
||||
proc SSL_CTX_set_ciphersuites*(ctx: SslCtx, str: cstring): cint =
|
||||
var theProc {.global.}: proc(ctx: SslCtx, str: cstring) {.cdecl, gcsafe.}
|
||||
var theProc {.global.}: proc(ctx: SslCtx, str: cstring): cint {.cdecl, gcsafe.}
|
||||
if theProc.isNil:
|
||||
theProc = cast[typeof(theProc)](sslSymThrows("SSL_CTX_set_ciphersuites"))
|
||||
theProc(ctx, str)
|
||||
result = theProc(ctx, str)
|
||||
|
||||
proc SSL_new*(context: SslCtx): SslPtr{.cdecl, dynlib: DLLSSLName, importc.}
|
||||
proc SSL_free*(ssl: SslPtr){.cdecl, dynlib: DLLSSLName, importc.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue