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_rstate_string, SSL_rstate_string_long - get textual description of state of an SSL object during read operation
      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_rstate_string(SSL *ssl);
     12      1.1  christos  const char *SSL_rstate_string_long(SSL *ssl);
     13      1.1  christos 
     14      1.1  christos =head1 DESCRIPTION
     15      1.1  christos 
     16      1.1  christos SSL_rstate_string() returns a 2 letter string indicating the current read state
     17      1.1  christos of the SSL object B<ssl>.
     18      1.1  christos 
     19      1.1  christos SSL_rstate_string_long() returns a string indicating the current read 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 When performing a read operation, the SSL/TLS engine must parse the record,
     25      1.1  christos consisting of header and body. When working in a blocking environment,
     26      1.1  christos SSL_rstate_string[_long]() should always return "RD"/"read done".
     27      1.1  christos 
     28      1.1  christos This function should only seldom be needed in applications.
     29      1.1  christos 
     30      1.1  christos =head1 RETURN VALUES
     31      1.1  christos 
     32      1.1  christos SSL_rstate_string() and SSL_rstate_string_long() can return the following
     33      1.1  christos values:
     34      1.1  christos 
     35      1.1  christos =over 4
     36      1.1  christos 
     37      1.1  christos =item "RH"/"read header"
     38      1.1  christos 
     39      1.1  christos The header of the record is being evaluated.
     40      1.1  christos 
     41      1.1  christos =item "RB"/"read body"
     42      1.1  christos 
     43      1.1  christos The body of the record is being evaluated.
     44      1.1  christos 
     45      1.1  christos =item "RD"/"read done"
     46      1.1  christos 
     47      1.1  christos The record has been completely processed.
     48      1.1  christos 
     49      1.1  christos =item "unknown"/"unknown"
     50      1.1  christos 
     51      1.1  christos The read state is unknown. This should never happen.
     52      1.1  christos 
     53      1.1  christos =back
     54      1.1  christos 
     55      1.1  christos =head1 SEE ALSO
     56      1.1  christos 
     57      1.1  christos L<ssl(7)>
     58      1.1  christos 
     59      1.1  christos =head1 COPYRIGHT
     60      1.1  christos 
     61      1.1  christos Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
     62      1.1  christos 
     63  1.1.1.2  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     64      1.1  christos this file except in compliance with the License.  You can obtain a copy
     65      1.1  christos in the file LICENSE in the source distribution or at
     66      1.1  christos L<https://www.openssl.org/source/license.html>.
     67      1.1  christos 
     68      1.1  christos =cut
     69