openssl: fix erroneous function signatures
Now matches the declaration in openssl/err.h
This commit is contained in:
parent
78982b52f0
commit
f243f9aeb5
2 changed files with 3 additions and 5 deletions
|
|
@ -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.}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue