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
Plan 9 — June 07, 2000