Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (2) — Plan9 3rd Edition (Vita Nuova)

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

security-auth(2)

ssl(3)

SECURITY-SSL(2)

NAME

ssl: connect, secret − interface to the Secure Sockets Layer

SYNOPSIS

bind ’#D’ /n/ssl
 include "sys.m";
include "security.m";
ssl := load SSL SSL->PATH;
 connect: fn(fd: ref Sys->FD): (string, ref Sys->Connection);
secret:  fn(c: ref Sys->Connection, secretin,
                secretout: array of byte): string;

DESCRIPTION

­SSL provides an interface to the secure sockets layer device ssl(3). It assumes that device has already been bound to /n/ssl, its conventional location in the name space. 

­Connect pushes file descriptor ­fd into /n/ssl/n/data and returns the resulting secure connection.  The value for ­n is internally read from /n/ssl/clone.  The string returned describes errors encountered, if any. If that string is non-nil, the connection is invalid. 

­Secret writes ­secretin and ­secretout to /n/ssl/n/secretin and /n/ssl/n/secretout where ­n is obtained from the ­Connection adt c. The string returned describes errors encountered, if any; otherwise it is nil.

SOURCE

­/appl/lib/ssl.b

SEE ALSO

security-auth(2), ssl(3)

Plan 9  —  June 07, 2000

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026