Module ssl

This module provides an easy to use sockets-style nimrod interface to the OpenSSL library.

Types

TSecureSocket = object 
  ssl: PSSL
  bio: PBIO

Procs

proc connect(sock: var TSecureSocket; address: string; port: int): int {.
    raises: [EOS], tags: [].}
Connects to the specified address on the specified port. Returns the result of the certificate validation.
proc recvLine(sock: TSecureSocket; line: var TaintedString): bool {.raises: [], 
    tags: [].}
Acts in a similar fashion to the recvLine in the sockets module. Returns false when no data is available to be read. Line must be initialized and not nil!
proc send(sock: TSecureSocket; data: string) {.raises: [EOS], tags: [].}
Writes data to the socket.
proc close(sock: TSecureSocket) {.raises: [EOS], tags: [].}
Closes the socket
Generated: 2014-03-11 21:26:45 UTC