[gnutls-help] How to substitute gnutls_record_check_corked

Heiko Schlittermann hs at schlittermann.de
Thu Feb 27 11:02:35 CET 2020


Hi,

Exim uses gnutls_record_cork() and …_uncork(). After uncorking I'd like
to wait until all data is flushed. Currently I do

  do {
    do outbytes = gnutls_record_uncork(state->session, 0);
    while (outbytes == GNUTLS_E_AGAIN);

     if (outbytes < 0)
       {
       ... /* return failure to the caller */
       return -1;
       }
  } while (gnutls_record_check_corked(state->session) > 0);


But GnuTLS < 3.2.8 does not have the gnutls_record_check_corked()
function. My naive attempt to define it according to that what I found
in the recent GnuTLS source failed, as it needs to access internal
data structures (I believe).

What is the proper way do wait until all data is flushed?

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
--
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnutls-help/attachments/20200227/ce05a559/attachment.sig>


More information about the Gnutls-help mailing list