DTLSv1_handle_timeout.pod 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. =pod
  2. =head1 NAME
  3. DTLSv1_handle_timeout - handle a pending timeout event for a DTLS or QUIC SSL
  4. object
  5. =head1 SYNOPSIS
  6. #include <openssl/ssl.h>
  7. int DTLSv1_handle_timeout(SSL *ssl);
  8. =head1 DESCRIPTION
  9. DTLSv1_handle_timeout() handles any timeout events which have become pending
  10. on a DTLS or QUIC SSL object.
  11. Use L<DTLSv1_get_timeout(3)> or L<SSL_get_event_timeout(3)> to determine
  12. when to call DTLSv1_handle_timeout().
  13. This function is only applicable to DTLS or QUIC SSL objects. It returns 0 if
  14. called on any other kind of SSL object.
  15. L<SSL_handle_events(3)> supersedes all use cases for this function and may
  16. be used instead of it.
  17. =head1 RETURN VALUES
  18. Returns 1 if there was a pending timeout event and it was handled successfully.
  19. Returns 0 if there was no pending timeout event, or if the SSL object is not a
  20. DTLS or QUIC object.
  21. Returns -1 if there was a pending timeout event but it could not be handled
  22. successfully.
  23. =head1 SEE ALSO
  24. L<DTLSv1_get_timeout(3)>, L<SSL_handle_events(3)>, L<ssl(7)>
  25. =head1 COPYRIGHT
  26. Copyright 2023 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