# Module ssl

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

# Imports

openssl, strutils, os

# 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: 2013-05-21 09:55:15 UTC