SSL_peek man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

SSL_peek(3)							   SSL_peek(3)

NAME
       SSL_peek	 -  Copy  the data in the SSL buffer into the buffer passed to
       this API

SYNOPSIS
       #include <openssl/ssl.h>

       int SSL_peek(
	       SSL *s,
	       void *buf,
	       int num );

DESCRIPTION
       The SSL_peek() function copies num bytes from the  specified  ssl  into
       the  buffer  buf.  In constrast to the SSL_read() function, the data in
       the SSL buffer is unmodified after the SSL_peek() operation.

RETURN VALUES
       The following return values can occur: The peek operation was  success‐
       ful;  the  return value is the number of bytes actually copied from the
       TLS/SSL connection.  The peek operation was  not	 successful;  the  SSL
       connection  was closed by the peer by sending a ``close notify'' alert.
       The SSL_RECEIVED_SHUTDOWN flag in the ssl shutdown state is set.	  (See
       SSL_shutdown(),	SSL_set_shutdown().   Call  SSL_get_error()  with  the
       return value ret to determine whether an error occurred or the  connec‐
       tion was shut down cleanly (SSL_ERROR_ZERO_RETURN).

	      SSLv2  (deprecated)  does not support a shutdown alert protocol,
	      so it can only be detected, whether  the	underlying  connection
	      was closed. It cannot be checked, whether the closure was initi‐
	      ated by the peer or by something else.  The peek	operation  was
	      not  successful, because either an error occurred or action must
	      be taken by the calling process. Call SSL_get_error()  with  the
	      return value ret to find out the reason.

SEE ALSO
       Functions: SSL_read(3)

								   SSL_peek(3)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net