This module provides an easy to use sockets-style nim interface to the OpenSSL library.
Warning: This module is deprecated, use the SSL procedures defined in the net
module instead.
SecureSocket = object ssl: SslPtr bio: BIO
proc connect(sock: var SecureSocket; address: string; port: int): int {...}{. raises: [Exception, OSError], tags: [RootEffect].}
proc recvLine(sock: SecureSocket; line: var TaintedString): bool {...}{.raises: [], tags: [].}
proc send(sock: SecureSocket; data: string) {...}{.raises: [OSError], tags: [].}
proc close(sock: SecureSocket) {...}{.raises: [OSError], tags: [].}
© 2006–2018 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/ssl.html