SSL_SESSION_has_ticket.pod 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. =pod
  2. =head1 NAME
  3. SSL_SESSION_get0_ticket,
  4. SSL_SESSION_has_ticket, SSL_SESSION_get_ticket_lifetime_hint
  5. - get details about the ticket associated with a session
  6. =head1 SYNOPSIS
  7. #include <openssl/ssl.h>
  8. int SSL_SESSION_has_ticket(const SSL_SESSION *s);
  9. unsigned long SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *s);
  10. void SSL_SESSION_get0_ticket(const SSL_SESSION *s, const unsigned char **tick,
  11. size_t *len);
  12. =head1 DESCRIPTION
  13. SSL_SESSION_has_ticket() returns 1 if there is a Session Ticket associated with
  14. this session, and 0 otherwise.
  15. SSL_SESSION_get_ticket_lifetime_hint returns the lifetime hint in seconds
  16. associated with the session ticket.
  17. SSL_SESSION_get0_ticket obtains a pointer to the ticket associated with a
  18. session. The length of the ticket is written to B<*len>. If B<tick> is non
  19. NULL then a pointer to the ticket is written to B<*tick>. The pointer is only
  20. valid while the connection is in use. The session (and hence the ticket pointer)
  21. may also become invalid as a result of a call to SSL_CTX_flush_sessions().
  22. =head1 RETURN VALUES
  23. SSL_SESSION_has_ticket() returns 1 if session ticket exists or 0 otherwise.
  24. SSL_SESSION_get_ticket_lifetime_hint() returns the number of seconds.
  25. =head1 SEE ALSO
  26. L<ssl(7)>,
  27. L<d2i_SSL_SESSION(3)>,
  28. L<SSL_SESSION_get_time(3)>,
  29. L<SSL_SESSION_free(3)>
  30. =head1 HISTORY
  31. SSL_SESSION_has_ticket, SSL_SESSION_get_ticket_lifetime_hint and
  32. SSL_SESSION_get0_ticket were added in OpenSSL 1.1.0.
  33. =head1 COPYRIGHT
  34. Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.
  35. Licensed under the OpenSSL license (the "License"). You may not use
  36. this file except in compliance with the License. You can obtain a copy
  37. in the file LICENSE in the source distribution or at
  38. L<https://www.openssl.org/source/license.html>.
  39. =cut