DTLS_get_data_mtu.pod 899 B

123456789101112131415161718192021222324252627282930313233343536
  1. =pod
  2. =head1 NAME
  3. DTLS_get_data_mtu - Get maximum data payload size
  4. =head1 SYNOPSIS
  5. #include <openssl/ssl.h>
  6. size_t DTLS_get_data_mtu(const SSL *ssl);
  7. =head1 DESCRIPTION
  8. This function obtains the maximum data payload size for the established
  9. DTLS connection B<ssl>, based on the DTLS record MTU and the overhead
  10. of the DTLS record header, encryption and authentication currently in use.
  11. =head1 RETURN VALUES
  12. Returns the maximum data payload size on success, or 0 on failure.
  13. =head1 HISTORY
  14. The DTLS_get_data_mtu() function was added in OpenSSL 1.1.1.
  15. =head1 COPYRIGHT
  16. Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
  17. Licensed under the Apache License 2.0 (the "License"). You may not use
  18. this file except in compliance with the License. You can obtain a copy
  19. in the file LICENSE in the source distribution or at
  20. L<https://www.openssl.org/source/license.html>.
  21. =cut