Home | History | Annotate | Line # | Download | only in man3
      1      1.1  christos =pod
      2      1.1  christos 
      3      1.1  christos =head1 NAME
      4      1.1  christos 
      5      1.1  christos SSL_state_string, SSL_state_string_long - get textual description of state of an SSL object
      6      1.1  christos 
      7      1.1  christos =head1 SYNOPSIS
      8      1.1  christos 
      9      1.1  christos  #include <openssl/ssl.h>
     10      1.1  christos 
     11      1.1  christos  const char *SSL_state_string(const SSL *ssl);
     12      1.1  christos  const char *SSL_state_string_long(const SSL *ssl);
     13      1.1  christos 
     14      1.1  christos =head1 DESCRIPTION
     15      1.1  christos 
     16  1.1.1.3  christos SSL_state_string() returns an abbreviated string indicating the current state
     17  1.1.1.3  christos of the SSL object B<ssl>. The returned NUL-terminated string contains 6 or fewer characters.
     18      1.1  christos 
     19  1.1.1.3  christos SSL_state_string_long() returns a descriptive string indicating the current state of
     20      1.1  christos the SSL object B<ssl>.
     21      1.1  christos 
     22      1.1  christos =head1 NOTES
     23      1.1  christos 
     24      1.1  christos During its use, an SSL objects passes several states. The state is internally
     25      1.1  christos maintained. Querying the state information is not very informative before
     26      1.1  christos or when a connection has been established. It however can be of significant
     27      1.1  christos interest during the handshake.
     28      1.1  christos 
     29  1.1.1.2  christos When using nonblocking sockets, the function call performing the handshake
     30      1.1  christos may return with SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE condition,
     31      1.1  christos so that SSL_state_string[_long]() may be called.
     32      1.1  christos 
     33  1.1.1.2  christos For both blocking or nonblocking sockets, the details state information
     34      1.1  christos can be used within the info_callback function set with the
     35      1.1  christos SSL_set_info_callback() call.
     36      1.1  christos 
     37      1.1  christos =head1 RETURN VALUES
     38      1.1  christos 
     39      1.1  christos Detailed description of possible states to be included later.
     40      1.1  christos 
     41      1.1  christos =head1 SEE ALSO
     42      1.1  christos 
     43      1.1  christos L<ssl(7)>, L<SSL_CTX_set_info_callback(3)>
     44      1.1  christos 
     45      1.1  christos =head1 COPYRIGHT
     46      1.1  christos 
     47  1.1.1.3  christos Copyright 2001-2021 The OpenSSL Project Authors. All Rights Reserved.
     48      1.1  christos 
     49  1.1.1.3  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     50      1.1  christos this file except in compliance with the License.  You can obtain a copy
     51      1.1  christos in the file LICENSE in the source distribution or at
     52      1.1  christos L<https://www.openssl.org/source/license.html>.
     53      1.1  christos 
     54      1.1  christos =cut
     55