Signed-off-by: Pierre Habouzit <madcoder@debian.org>
#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);
}
typedef struct job_t {
int fd;
+ int ssf;
gnutls_session_t session;
gnutls_certificate_credentials_t xcred;