net.nim: destroyContext for destroying SSLContext
This commit is contained in:
parent
ba61a8d00a
commit
3ecf33fa6a
2 changed files with 8 additions and 1 deletions
|
|
@ -13,3 +13,4 @@ proc clientFunc(identityHint: string): tuple[identity: string, psk: string] =
|
|||
let context = newContext(cipherList="PSK-AES256-CBC-SHA")
|
||||
context.clientGetPskFunc = clientFunc
|
||||
context.wrapConnectedSocket(sock, handshakeAsClient)
|
||||
context.destroyContext()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue