mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 04:27:44 +00:00
openssl: fix erroneous function signatures
Now matches the declaration in openssl/err.h
This commit is contained in:
@@ -479,8 +479,6 @@ when defineSsl:
|
||||
let err = ERR_peek_last_error()
|
||||
if err == 0:
|
||||
raise newException(SslError, "No error reported.")
|
||||
if err == -1:
|
||||
raiseOSError(osLastError())
|
||||
var errStr = $ERR_error_string(err, nil)
|
||||
case err
|
||||
of 336032814, 336032784:
|
||||
|
||||
@@ -478,10 +478,10 @@ proc BIO_free*(b: BIO): cint{.cdecl, dynlib: DLLUtilName, importc.}
|
||||
|
||||
proc ERR_print_errors_fp*(fp: File){.cdecl, dynlib: DLLSSLName, importc.}
|
||||
|
||||
proc ERR_error_string*(e: cint, buf: cstring): cstring{.cdecl,
|
||||
proc ERR_error_string*(e: culong, buf: cstring): cstring{.cdecl,
|
||||
dynlib: DLLUtilName, importc.}
|
||||
proc ERR_get_error*(): cint{.cdecl, dynlib: DLLUtilName, importc.}
|
||||
proc ERR_peek_last_error*(): cint{.cdecl, dynlib: DLLUtilName, importc.}
|
||||
proc ERR_get_error*(): culong{.cdecl, dynlib: DLLUtilName, importc.}
|
||||
proc ERR_peek_last_error*(): culong{.cdecl, dynlib: DLLUtilName, importc.}
|
||||
|
||||
proc OPENSSL_config*(configName: cstring){.cdecl, dynlib: DLLSSLName, importc.}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user