From 319c20f20e07621ccea345abd47d9f3d8f29af8c Mon Sep 17 00:00:00 2001 From: Jim Schutt Date: Tue, 26 Apr 2011 15:39:00 -0700 Subject: [PATCH] auth: Avoid const mismatch in nss_aes_operation Signed-off-by: Colin McCabe Signed-off-by: Jim Schutt --- src/auth/Crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/Crypto.cc b/src/auth/Crypto.cc index 3dbfd885d7421..757ed791563ee 100644 --- a/src/auth/Crypto.cc +++ b/src/auth/Crypto.cc @@ -101,7 +101,7 @@ decrypt(const bufferptr& secret, const bufferlist& in, bufferlist& out) const # define AES_KEY_LEN 16 # define AES_BLOCK_LEN 16 -static int nss_aes_operation(CK_ATTRIBUTE_TYPE op, bufferptr& secret, const bufferlist& in, bufferlist& out) { +static int nss_aes_operation(CK_ATTRIBUTE_TYPE op, const bufferptr& secret, const bufferlist& in, bufferlist& out) { const CK_MECHANISM_TYPE mechanism = CKM_AES_CBC_PAD; // sample source said this has to be at least size of input + 8, -- 2.39.5