SSL_set_shutdown.pod (76866) | SSL_set_shutdown.pod (89837) |
---|---|
1=pod 2 3=head1 NAME 4 5SSL_set_shutdown, SSL_get_shutdown - manipulate shutdown state of an SSL connection 6 7=head1 SYNOPSIS 8 --- 32 unchanged lines hidden (view full) --- 41=back 42 43SSL_SENT_SHUTDOWN and SSL_RECEIVED_SHUTDOWN can be set at the same time. 44 45The shutdown state of the connection is used to determine the state of 46the ssl session. If the session is still open, when 47L<SSL_clear(3)|SSL_clear(3)> or L<SSL_free(3)|SSL_free(3)> is called, 48it is considered bad and removed according to RFC2246. | 1=pod 2 3=head1 NAME 4 5SSL_set_shutdown, SSL_get_shutdown - manipulate shutdown state of an SSL connection 6 7=head1 SYNOPSIS 8 --- 32 unchanged lines hidden (view full) --- 41=back 42 43SSL_SENT_SHUTDOWN and SSL_RECEIVED_SHUTDOWN can be set at the same time. 44 45The shutdown state of the connection is used to determine the state of 46the ssl session. If the session is still open, when 47L<SSL_clear(3)|SSL_clear(3)> or L<SSL_free(3)|SSL_free(3)> is called, 48it is considered bad and removed according to RFC2246. |
49The actual condition for a correctly closed session is SSL_SENT_SHUTDOWN. | 49The actual condition for a correctly closed session is SSL_SENT_SHUTDOWN 50(according to the TLS RFC, it is acceptable to only send the "close notify" 51alert but to not wait for the peer's answer, when the underlying connection 52is closed). |
50SSL_set_shutdown() can be used to set this state without sending a 51close alert to the peer (see L<SSL_shutdown(3)|SSL_shutdown(3)>). 52 53If a "close notify" was received, SSL_RECEIVED_SHUTDOWN will be set, 54for setting SSL_SENT_SHUTDOWN the application must however still call 55L<SSL_shutdown(3)|SSL_shutdown(3)> or SSL_set_shutdown() itself. 56 57=head1 RETURN VALUES 58 59SSL_set_shutdown() does not return diagnostic information. 60 61SSL_get_shutdown() returns the current setting. 62 63=head1 SEE ALSO 64 65L<ssl(3)|ssl(3)>, L<SSL_shutdown(3)|SSL_shutdown(3)>, | 53SSL_set_shutdown() can be used to set this state without sending a 54close alert to the peer (see L<SSL_shutdown(3)|SSL_shutdown(3)>). 55 56If a "close notify" was received, SSL_RECEIVED_SHUTDOWN will be set, 57for setting SSL_SENT_SHUTDOWN the application must however still call 58L<SSL_shutdown(3)|SSL_shutdown(3)> or SSL_set_shutdown() itself. 59 60=head1 RETURN VALUES 61 62SSL_set_shutdown() does not return diagnostic information. 63 64SSL_get_shutdown() returns the current setting. 65 66=head1 SEE ALSO 67 68L<ssl(3)|ssl(3)>, L<SSL_shutdown(3)|SSL_shutdown(3)>, |
69L<SSL_CTX_set_quiet_shutdown(3)|SSL_CTX_set_quiet_shutdown(3)>, |
|
66L<SSL_clear(3)|SSL_clear(3)>, L<SSL_free(3)|SSL_free(3)> 67 68=cut | 70L<SSL_clear(3)|SSL_clear(3)>, L<SSL_free(3)|SSL_free(3)> 71 72=cut |