The key must not be encrypted. Closes #2911.
-2008-06-26 12:47 -0700 Brendan Cully <brendan@kublai.com> (be7e07963099)
+2008-06-27 12:04 -0700 Petr Písař <petr.pisar@atlas.cz> (40c6e851bf76)
+
+ * po/cs.po: Updated Czech translation.
+
+2008-06-26 12:52 -0700 Brendan Cully <brendan@kublai.com> (c5256c65eedb)
+
+ * handler.c: Mark new error message for translation.
* curs_lib.c: Force a resize event after calling an external editor.
Closes #2207
hg tip:
+ + $ssl_client_cert available with gnutls as well as openssl
+ 'mime_lookup application/octet-stream' added to system Muttrc
1.5.18 (2008-05-17):
WHERE char *SpamSep;
#if defined(USE_SSL)
WHERE char *SslCertFile INITVAL (NULL);
-#endif
-#ifdef USE_SSL_OPENSSL
WHERE char *SslClientCert INITVAL (NULL);
+#ifdef USE_SSL_OPENSSL
WHERE LIST *SslSessionCerts INITVAL (NULL);
#endif
-#if defined(USE_SSL)
WHERE char *SslEntropyFile INITVAL (NULL);
-#endif
#ifdef USE_SSL_GNUTLS
WHERE short SslDHPrimeBits;
WHERE char *SslCACertFile INITVAL (NULL);
#endif
+#endif
WHERE char *StChars;
WHERE char *Status;
WHERE char *Tempdir;
*/
#if defined(USE_SSL)
-#ifdef USE_SSL_OPENSSL
{ "ssl_client_cert", DT_PATH, R_NONE, UL &SslClientCert, 0 },
/*
** .pp
** The file containing a client certificate and its associated private
** key.
*/
-#endif /* USE_SSL_OPENSSL */
{ "ssl_force_tls", DT_BOOL, R_NONE, OPTSSLFORCETLS, 0 },
/*
** .pp
{
ACCOUNT* account = (ACCOUNT*) context;
+ if (!result)
+ return SASL_FAIL;
+
*result = NULL;
if (len)
*len = 0;
GNUTLS_X509_FMT_PEM);
}
-/*
- gnutls_set_x509_client_key (data->xcred, "", "");
- gnutls_set_x509_cert_callback (data->xcred, cert_callback);
-*/
+ if (SslClientCert)
+ {
+ dprint (2, (debugfile, "Using client certificate %s\n", SslClientCert));
+ gnutls_certificate_set_x509_key_file (data->xcred, SslClientCert,
+ SslClientCert, GNUTLS_X509_FMT_PEM);
+ }
gnutls_init(&data->state, GNUTLS_CLIENT);