From fb9baf0213dc822b5ed30522fbea9c623475986c Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Sat, 12 Jan 2008 00:10:15 +0100 Subject: [PATCH 1/1] ssf is useful for sasl Signed-off-by: Pierre Habouzit --- lib-sys/evtloop.c | 4 ++-- lib-sys/evtloop.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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; -- 2.20.1