[gnutls-devel] GnuTLS | Minor inaccuracy in gnutls_record_send() documentation? (#806)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Wed Jul 24 18:23:13 CEST 2019
Michael Catanzaro created an issue:
The documentation of gnutls_record_send() says:
```
If GNUTLS_E_INTERRUPTED or
GNUTLS_E_AGAIN is returned, you must call this function again, with the
exact same parameters; alternatively you could provide a NULL pointer
for data, and 0 for size. cf. gnutls_record_get_direction().
```
But I think this is no longer accurate since gnutls_record_discard_queued() was added. Now you have three choices: call with exact same parameters, call with NULL and 0, or call gnutls_record_discard_queued() and then call gnutls_record_send() with whatever you want. Correct?
Proposed revised text:
```
If GNUTLS_E_INTERRUPTED or GNUTLS_E_AGAIN is returned, you must call this
function again with the exact same parameters, or provide a NULL pointer
for data and 0 for size, in order to write the same data as before. If you
wish to discard the previous data instead of retrying, you must call
gnutls_record_discard_queued() before calling gnutls_record_send() with
different parameters.
```
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/806
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190724/d3f7f063/attachment.html>
More information about the Gnutls-devel
mailing list