[gnutls-help] GNUTLS_E_PULL_ERROR in gnutls_handshake

Alessandro Carminati alessandro.carminati at gmail.com
Sun Feb 15 22:33:24 CET 2015


First function handshake is indeed a part of the xmpp parser iksemel
library.
But the next two function _gnutls_stream_read and pull_func are part of
gnutls.
iksemel seems some how unmanteined, and I'm not asking gnutls-help to deal
with it.
I just included it to show that when the iksemel invokes gnutls it spawn an
error.
I'd like someone could help me understand why when the iksemel handshake
invokes the gnutls_handshake it returns GNUTLS_E_PULL_ERROR.
Or to say it better, what this error means.
Looking through the functions gnutls_handshake -> _gnutls_stream_read ->
pull_func, I understood, if I'm not wrong, that the pull_func may fail
returning EAGAIN, EINTR, or something else.
[...]
i = pull_func(fd, &ptr[size - left], left);
if (i < 0) {
            int err = get_errno(session);
            [...]
            if (err == EAGAIN || err == EINTR) {
[...]
It seems to me that in my situation, it fails in latter scenario.
My problem is that I can't figure out what this means.

Any help would be appreciated.
Alessandro Carminati
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20150215/980d8e8e/attachment.html>


More information about the Gnutls-help mailing list