SSL_stream_conclude.pod 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. =pod
  2. =head1 NAME
  3. SSL_stream_conclude - conclude the sending part of a QUIC stream
  4. =head1 SYNOPSIS
  5. #include <openssl/ssl.h>
  6. __owur int SSL_stream_conclude(SSL *s, uint64_t flags);
  7. =head1 DESCRIPTION
  8. SSL_stream_conclude() signals the normal end-of-stream condition for the send
  9. part of a QUIC stream. If called on a QUIC connection SSL object with an
  10. associated default stream, it signals the end of the single stream to the peer.
  11. Any data already queued for transmission via a call to SSL_write() will still be
  12. written in a reliable manner before the end-of-stream is signalled, assuming the
  13. connection remains healthy. This function can be thought of as appending a
  14. logical end-of-stream marker after any data which has previously been written to
  15. the stream via calls to SSL_write(). Further attempts to call SSL_write() after
  16. calling this function will fail.
  17. When calling this on a stream, the receive part of the stream remains
  18. unaffected, and the peer may continue to send data until it also signals the end
  19. of the stream. Thus, SSL_read() can still be used.
  20. I<flags> is reserved and should be set to 0.
  21. Only the first call to this function has any effect for a given stream;
  22. subsequent calls are no-ops. This is considered a success case.
  23. This function is not supported on an object other than a QUIC stream SSL object.
  24. =head1 RETURN VALUES
  25. Returns 1 on success and 0 on failure.
  26. Returns 0 if called on an SSL object not representing a QUIC stream.
  27. =head1 SEE ALSO
  28. L<openssl-quic(7)>, L<ssl(7)>, L<SSL_shutdown_ex(3)>
  29. =head1 HISTORY
  30. The SSL_stream_conclude() function was added in OpenSSL 3.2.
  31. =head1 COPYRIGHT
  32. Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
  33. Licensed under the Apache License 2.0 (the "License"). You may not use
  34. this file except in compliance with the License. You can obtain a copy
  35. in the file LICENSE in the source distribution or at
  36. L<https://www.openssl.org/source/license.html>.
  37. =cut