]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - include/internal/quic_stream.h
QUIC Front End I/O API: Add support for signalling and detecting end-of-stream
[thirdparty/openssl.git] / include / internal / quic_stream.h
index 7b48d0b304c51f092595da262525da2c96fa235a..1fd7d85d3c4d19e9c1822b228f06522470895887 100644 (file)
@@ -247,6 +247,12 @@ int ossl_quic_sstream_append(QUIC_SSTREAM *qss,
  */
 void ossl_quic_sstream_fin(QUIC_SSTREAM *qss);
 
+/*
+ * If the stream has had ossl_quic_sstream_fin() called, returns 1 and writes
+ * the final size to *final_size. Otherwise, returns 0.
+ */
+int ossl_quic_sstream_get_final_size(QUIC_SSTREAM *qss, uint64_t *final_size);
+
 /*
  * Resizes the internal ring buffer. All stream data is preserved safely.
  *