[Top] [Prev] [Next] [Bottom]
connect, secret -
interface to the Secure Sockets Layer device
bind '#D' /n/ssl
include "sys.m";
include "security.m";
SSL : module {
PATH: con "/dis/lib/ssl.dis";
connect: fn(fd: ref Sys->FD): (string,
ref Sys->Connection);
secret: fn(c: ref Sys->Connection,
secretin, secretout: array of byte): string;
}
Description
The SSL module provides an interface to the secure sockets layer device. It assumes that device has already been bound to /n/ssl, its conventional location in the name space.
The interfaces are:
connect(fd)
connect: fn(fd: ref Sys->FD): (string, ref Sys->Connection);
## returns nil on error.
Push file descriptor fd into /n/ssl/n/data and return resulting (secure) connection. The value for n is obtained internally from /n/ssl/clone. The string returned describes errors encountered, if any. If that string is non-nil, the connection is invalid.
secret(c, secretin, secretout)
secret: fn(c: ref Sys->Connection,
secretin, secretout: array of byte): string;
## returns nil on error.
Write non-null strings secretin and secretout to /n/ssl/n/secretin and /n/ssl/n/secretout, respectively. The value of n is obtained from the Connection adt, c. The string returned describes errors encountered, if any; otherwise it is nil.
See Also
-
Auth module - authenticated connections
-
ssl - secure sockets layer device in Chapter 2
-
[Top] [Prev] [Next] [Bottom]
infernosupport@lucent.com
Copyright © 1997, Lucent Technologies, Inc.. All rights
reserved.