ssf is useful for sasl
authorPierre Habouzit <madcoder@debian.org>
Fri, 11 Jan 2008 23:10:15 +0000 (00:10 +0100)
committerPierre Habouzit <madcoder@debian.org>
Fri, 11 Jan 2008 23:10:15 +0000 (00:10 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib-sys/evtloop.c
lib-sys/evtloop.h

index 4dd3d45..3e1719e 100644 (file)
@@ -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);
 }
index 2be7366..6718480 100644 (file)
@@ -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;