*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> SSL_peek (3)              
Title
Content
Arch
Section
 

SSL_peek(3)

Contents


NAME    [Toc]    [Back]

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

SYNOPSIS    [Toc]    [Back]

       #include <openssl/ssl.h>

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

DESCRIPTION    [Toc]    [Back]

       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    [Toc]    [Back]

       The  following return values can occur: The peek operation
       was successful; 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 connection 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 initiated 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    [Toc]    [Back]

      
      
       Functions: SSL_read(3)



                                                      SSL_peek(3)
[ Back ]
 Similar pages
Name OS Title
dmAudioRateConvert IRIX convert data sampling rate. It consumes an input buffer of floats and generates an output buffer of floats.
glcopypixels IRIX copy pixels in the frame buffer
glCopyPixels Tru64 copy pixels in the frame buffer
getgconfig IRIX gets the size of a buffer or a state in the current buffer configuration
XmTextFieldGetSubstring IRIX A TextField function that retrieves a copy of a portion of the internal text buffer
XmTextFieldGetSubstring HP-UX A TextField function that retrieves a copy of a portion of the internal text buffer
XmTextFieldGetSubstring Tru64 A TextField function that retrieves a copy of a portion of the internal text buffer
unit IRIX Returns the status of a BUFFER IN or BUFFER OUT statement
dmbufuserdata IRIX get and set user data for a buffer
CSP_DecryptData Tru64 Decrypt buffer data (CDSA)
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service