pushssl – attach SSL version 2 encryption to a communication channel
int pushssl(int fd, char *alg, char *secin, char *secout, int *cfd)
device, connects it to the communications channel
and starts up encryption and message authentication as specified
The algorithms are separated by a space and either can be first.
for the possible algorithms.
contain the encryption keys for the two directions.
If either is nil, the other is used in both directions.
is non-nil, the SSL control channel is opened and its fd
returns a file descriptor for the SSL data channel. Anything written to this
descriptor will get encrypted and authenticated and then written to the
closes the original file descriptor
return –1 on failure.