gnutls_datum_t dh_parameters_datum;
/* Recent versions of GnuTLS automatically initialize the cryptography layer
- * in gnutls_global_init(). */
+ * in gnutls_global_init(), including a thread-safe setup. */
#if GNUTLS_VERSION_NUMBER <= 0x020b00
gcry_error_t error;
gnutls_strerror(result));
return -1;
}
- /* Definitely an invalid certificate, abort. */
+ /* Definitely an invalid certificate, abort. We don't perform any CA
+ * verification so don't check for GNUTLS_CERT_INVALID. */
if (status & GNUTLS_CERT_REVOKED
|| status & GNUTLS_CERT_SIGNER_NOT_CA
|| status & GNUTLS_CERT_INSECURE_ALGORITHM