deprecate cuchar, don't redefine it (#18505)
This commit is contained in:
parent
089e741ce4
commit
96a7f9b31c
11 changed files with 55 additions and 54 deletions
|
|
@ -503,7 +503,7 @@ when defineSsl:
|
|||
## Retrieve the ssl pointer of `socket`.
|
||||
## Useful for interfacing with `openssl`.
|
||||
self.sslHandle
|
||||
|
||||
|
||||
proc raiseSSLError*(s = "") =
|
||||
## Raises a new SSL error.
|
||||
if s != "":
|
||||
|
|
@ -688,7 +688,7 @@ when defineSsl:
|
|||
return ctx.getExtraInternal().clientGetPskFunc
|
||||
|
||||
proc pskClientCallback(ssl: SslPtr; hint: cstring; identity: cstring;
|
||||
max_identity_len: cuint; psk: ptr cuchar;
|
||||
max_identity_len: cuint; psk: ptr uint8;
|
||||
max_psk_len: cuint): cuint {.cdecl.} =
|
||||
let ctx = SslContext(context: ssl.SSL_get_SSL_CTX)
|
||||
let hintString = if hint == nil: "" else: $hint
|
||||
|
|
@ -714,7 +714,7 @@ when defineSsl:
|
|||
proc serverGetPskFunc*(ctx: SslContext): SslServerGetPskFunc =
|
||||
return ctx.getExtraInternal().serverGetPskFunc
|
||||
|
||||
proc pskServerCallback(ssl: SslCtx; identity: cstring; psk: ptr cuchar;
|
||||
proc pskServerCallback(ssl: SslCtx; identity: cstring; psk: ptr uint8;
|
||||
max_psk_len: cint): cuint {.cdecl.} =
|
||||
let ctx = SslContext(context: ssl.SSL_get_SSL_CTX)
|
||||
let pskString = (ctx.serverGetPskFunc)($identity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue