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;
The interfaces are:
connect(fd)
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)
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
ssl - secure sockets layer device in Chapter 2
|