]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: Avoid const mismatch in nss_aes_operation
authorJim Schutt <jaschut@sandia.gov>
Tue, 26 Apr 2011 22:39:00 +0000 (15:39 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 26 Apr 2011 22:39:19 +0000 (15:39 -0700)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Signed-off-by: Jim Schutt <jaschut@sandia.gov>
src/auth/Crypto.cc

index 3dbfd885d74214f6400dfa602d7bd802c50b2bb7..757ed791563eeaa1bea32713d551ff26d2cb5093 100644 (file)
@@ -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,