Message ID | 1303851974-29838-1-git-send-email-jaschut@sandia.gov (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
applied, thanks C. On Tue, Apr 26, 2011 at 2:06 PM, Jim Schutt <jaschut@sandia.gov> wrote: > > Signed-off-by: Jim Schutt <jaschut@sandia.gov> > --- > src/auth/Crypto.cc | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/auth/Crypto.cc b/src/auth/Crypto.cc > index 3dbfd88..757ed79 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, > -- > 1.6.6 > > > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/src/auth/Crypto.cc b/src/auth/Crypto.cc index 3dbfd88..757ed79 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,
Signed-off-by: Jim Schutt <jaschut@sandia.gov> --- src/auth/Crypto.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)