help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gnutls] non-existing CA bundle


From: Daniel Stenberg
Subject: [Help-gnutls] non-existing CA bundle
Date: Fri, 8 Apr 2005 00:02:06 +0200 (CEST)

Hi

I've made an obervation that looks like a bug to me:

I have a test case that sets a ca cert bundle like this:

   /* set the trusted CA cert bundle file */
  rc = gnutls_certificate_set_x509_trust_file(cred,
                                              cafile,
                                              GNUTLS_X509_FMT_PEM);

The cafile points to a file name of a file that doesn't exist.

This then returns -64 properly indicating a file error.

If I then proceed (ignoring the error) and later make a gnutls_handshake(), it will never succeed. It seems to only return GNUTLS_E_AGAIN for a very long time. (I'm using non-blocking sockets).

It doesn't seem like the right behaviour. I think it would either return an error more or less right away, or it would do the handshake properly...

Or am I just not understanding things?

--
         -=- Daniel Stenberg -=- http://daniel.haxx.se -=-
  ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol




reply via email to

[Prev in Thread] Current Thread [Next in Thread]