SSL_session_reused.pod 839 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. =pod
  2. =head1 NAME
  3. SSL_session_reused - query whether a reused session was negotiated during handshake
  4. =head1 SYNOPSIS
  5. #include <openssl/ssl.h>
  6. int SSL_session_reused(SSL *ssl);
  7. =head1 DESCRIPTION
  8. Query, whether a reused session was negotiated during the handshake.
  9. =head1 NOTES
  10. During the negotiation, a client can propose to reuse a session. The server
  11. then looks up the session in its cache. If both client and server agree
  12. on the session, it will be reused and a flag is being set that can be
  13. queried by the application.
  14. =head1 RETURN VALUES
  15. The following return values can occur:
  16. =over 4
  17. =item 0
  18. A new session was negotiated.
  19. =item 1
  20. A session was reused.
  21. =back
  22. =head1 SEE ALSO
  23. L<ssl(3)|ssl(3)>, L<SSL_set_session(3)|SSL_set_session(3)>,
  24. L<SSL_CTX_set_session_cache_mode(3)|SSL_CTX_set_session_cache_mode(3)>
  25. =cut