From: Pierre Habouzit Date: Fri, 11 Jan 2008 23:10:15 +0000 (+0100) Subject: ssf is useful for sasl X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=fb9baf0213dc822b5ed30522fbea9c623475986c;p=apps%2Fmadmutt.git ssf is useful for sasl Signed-off-by: Pierre Habouzit --- diff --git a/lib-sys/evtloop.c b/lib-sys/evtloop.c index 4dd3d45..3e1719e 100644 --- a/lib-sys/evtloop.c +++ b/lib-sys/evtloop.c @@ -107,11 +107,11 @@ static int el_job_connecting_ssl(job_t *w) #if 0 if (!tls_check_certificate (conn)) return -1; +#endif /* set Security Strength Factor (SSF) for SASL */ /* NB: gnutls_cipher_get_key_size() returns key length in bytes */ - conn->ssf = gnutls_cipher_get_key_size(gnutls_cipher_get(w->session)) * 8; -#endif + w->ssf = gnutls_cipher_get_key_size(gnutls_cipher_get(w->session)) * 8; w->state = EL_LLP_READY; return w->m->on_event(w, EL_EVT_RUNNING); } diff --git a/lib-sys/evtloop.h b/lib-sys/evtloop.h index 2be7366..6718480 100644 --- a/lib-sys/evtloop.h +++ b/lib-sys/evtloop.h @@ -55,6 +55,7 @@ typedef enum el_event { typedef struct job_t { int fd; + int ssf; gnutls_session_t session; gnutls_certificate_credentials_t xcred;