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 ------------ -

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Gnutls-help mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnutls-help

Reply via email to