diff mbox

auth: Avoid const mismatch when calling nss_aes_operation()

Message ID 1303851974-29838-1-git-send-email-jaschut@sandia.gov (mailing list archive)
State New, archived
Headers show

Commit Message

Jim Schutt April 26, 2011, 9:06 p.m. UTC
Signed-off-by: Jim Schutt <jaschut@sandia.gov>
---
 src/auth/Crypto.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Colin McCabe April 26, 2011, 10:40 p.m. UTC | #1
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 mbox

Patch

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,