From: Martin Willi Date: Mon, 7 Feb 2011 15:38:54 +0000 (+0100) Subject: Report correct key size if a cipher is not supported X-Git-Tag: 4.5.1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94030a670bf8b0fa35c29d01d1348fc2a2ed8c02;p=thirdparty%2Fstrongswan.git Report correct key size if a cipher is not supported --- diff --git a/src/libcharon/sa/keymat.c b/src/libcharon/sa/keymat.c index f9f24787aa..33ece24b2f 100644 --- a/src/libcharon/sa/keymat.c +++ b/src/libcharon/sa/keymat.c @@ -214,7 +214,7 @@ static bool derive_ike_traditional(private_keymat_t *this, u_int16_t enc_alg, { DBG1(DBG_IKE, "%N %N (key size %d) not supported!", transform_type_names, ENCRYPTION_ALGORITHM, - encryption_algorithm_names, enc_alg, key_size); + encryption_algorithm_names, enc_alg, enc_size); signer_i->destroy(signer_i); signer_r->destroy(signer_r); return FALSE;