|
NAMEssl_fdopen , ssl_log —
SSL utility routines
LIBRARYPDEL Library (libpdel, -lpdel)SYNOPSIS#include <sys/types.h>
#include <openssl/ssl.h>
#include <pdel/io/ssl_fp.h>
FILE *
void
DESCRIPTIONssl_fdopen () converts an encrypted SSL file descriptor
into an unencrypted stream. When the returned stream is closed via
fclose(3),
so too is the underlying file descriptor.
ssl_ctx is the SSL context. fd is the original file descriptor, over which the SSL protocol is spoken. server should be non-zero if the local side is the server. The stream's private state is allocated with typed_mem(3) type mtype. An idle timeout may be specified by setting timeout to the number of seconds. logger, if not typedef void ssl_logger_t(void *arg, int sev, const char *fmt, ...); The logarg is passed to
RETURN VALUESssl_fdopen () returns NULL if an
error occurs, with errno set appropriately.
SEE ALSOlibpdel(3), syslog(3), typed_mem(3)HISTORYThe PDEL library was developed at Packet Design, LLC.http://www.packetdesign.com/
AUTHORSArchie Cobbs ⟨archie@freebsd.org⟩
Visit the GSP FreeBSD Man Page Interface. |