dump CHILD_SA keys in loglevel 4
authorMartin Willi <martin@strongswan.org>
Tue, 21 Apr 2009 09:29:23 +0000 (09:29 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 21 Apr 2009 09:29:23 +0000 (09:29 -0000)
src/charon/sa/keymat.c

index b2e646c..819ff5a 100644 (file)
@@ -463,6 +463,16 @@ static bool derive_child_keys(private_keymat_t *this,
        
        prf_plus->destroy(prf_plus);
        
+       if (enc_size)
+       {
+               DBG4(DBG_CHD, "encryption initiator key %B", encr_i);
+               DBG4(DBG_CHD, "encryption responder key %B", encr_r);
+       }
+       if (int_size)
+       {
+               DBG4(DBG_CHD, "integrity initiator key %B", integ_i);
+               DBG4(DBG_CHD, "integrity responder key %B", integ_r);
+       }
        return TRUE;
 }