From: Tommi Virtanen Date: Fri, 4 Mar 2011 23:30:57 +0000 (-0800) Subject: auth: Make error message on bad AES key lenght say the bad length too. X-Git-Tag: v0.26~176 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dfbb5ea46126e0fa77542d8efabebf4ee44a90ad;p=ceph.git auth: Make error message on bad AES key lenght say the bad length too. Helps debugging. Signed-off-by: Tommi Virtanen --- diff --git a/src/auth/Crypto.cc b/src/auth/Crypto.cc index 2aeb1b013844..bbce59b3d738 100644 --- a/src/auth/Crypto.cc +++ b/src/auth/Crypto.cc @@ -108,7 +108,7 @@ int CryptoAES::create(bufferptr& secret) int CryptoAES::validate_secret(bufferptr& secret) { if (secret.length() < (size_t)AES_KEY_LEN) { - dout(0) << "key is too short" << dendl; + dout(0) << "key is too short: " << secret.length() << "<" << AES_KEY_LEN << dendl; return -EINVAL; }