/*++ /* NAME /* tls_stream /* SUMMARY /* VSTREAM over TLS /* SYNOPSIS /* #define TLS_INTERNAL /* #include <tls.h> /* /* void tls_stream_start(stream, context) /* VSTREAM *stream; /* TLS_SESS_STATE *context; /* /* void tls_stream_stop(stream) /* VSTREAM *stream; /* DESCRIPTION /* This module implements the VSTREAM over TLS support user interface. /* The hard work is done elsewhere. /* /* tls_stream_start() enables TLS on the named stream. All read /* and write operations are directed through the TLS library, /* using the state information specified with the context argument. /* /* tls_stream_stop() replaces the VSTREAM read/write routines /* by dummies that have no side effects, and deletes the /* VSTREAM's reference to the TLS context. /* DIAGNOSTICS /* The tls_stream(3) read/write routines return the non-zero /* number of plaintext bytes read/written if successful; -1 /* after TLS protocol failure, system-call failure, or for any /* reason described under "in addition" below; and zero when /* the remote party closed the connection or sent a TLS shutdown /* request. /* /* Upon return from the tls_stream(3) read/write routines the /* global errno value is non-zero when the requested operation /* did not complete due to system call failure. /* /* In addition, the result value is set to -1, and the global /* errno value is set to ETIMEDOUT, when a network read/write /* request did not complete within the time limit. /* SEE ALSO /* dummy_read(3), placebo read routine /* dummy_write(3), placebo write routine /* LICENSE /* .ad /* .fi /* This software is free. You can do with it whatever you want. /* The original author kindly requests that you acknowledge /* the use of his software. /* AUTHOR(S) /* Based on code that was originally written by: /* Lutz Jaenicke /* BTU Cottbus /* Allgemeine Elektrotechnik /* Universitaetsplatz 3-4 /* D-03044 Cottbus, Germany /* /* Updated by: /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.