SSL_session_reused.pod 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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(const 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 Z<>0
  18. A new session was negotiated.
  19. =item Z<>1
  20. A session was reused.
  21. =back
  22. =head1 SEE ALSO
  23. L<ssl(7)>, L<SSL_set_session(3)>,
  24. L<SSL_CTX_set_session_cache_mode(3)>
  25. =head1 COPYRIGHT
  26. Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
  27. Licensed under the Apache License 2.0 (the "License"). You may not use
  28. this file except in compliance with the License. You can obtain a copy
  29. in the file LICENSE in the source distribution or at
  30. L<https://www.openssl.org/source/license.html>.
  31. =cut