Re: [PATCH] auth: Avoid const mismatch when calling nss_aes_operation()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



applied, thanks
C.

On Tue, Apr 26, 2011 at 2:06 PM, Jim Schutt <jaschut@xxxxxxxxxx> wrote:
>
> Signed-off-by: Jim Schutt <jaschut@xxxxxxxxxx>
> ---
>  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@xxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux