Signed vs. unsigned conflict
authorRichard Levitte <levitte@openssl.org>
Thu, 25 May 2006 23:40:04 +0000 (23:40 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 25 May 2006 23:40:04 +0000 (23:40 +0000)
apps/pkeyutl.c

index 33dd9f3..4b19a3f 100644 (file)
@@ -543,23 +543,23 @@ static int do_keyop(EVP_PKEY_CTX *ctx, int pkey_op,
        switch(pkey_op)
                {
                case EVP_PKEY_OP_VERIFYRECOVER:
-               rv  = EVP_PKEY_verify_recover(ctx, out, poutlen, in, inlen);
+               rv  = EVP_PKEY_verify_recover(ctx, out, (unsigned int *)poutlen, in, inlen);
                break;
 
                case EVP_PKEY_OP_SIGN:
-               rv  = EVP_PKEY_sign(ctx, out, poutlen, in, inlen);
+               rv  = EVP_PKEY_sign(ctx, out, (unsigned int *)poutlen, in, inlen);
                break;
 
                case EVP_PKEY_OP_ENCRYPT:
-               rv  = EVP_PKEY_encrypt(ctx, out, poutlen, in, inlen);
+               rv  = EVP_PKEY_encrypt(ctx, out, (unsigned int *)poutlen, in, inlen);
                break;
 
                case EVP_PKEY_OP_DECRYPT:
-               rv  = EVP_PKEY_decrypt(ctx, out, poutlen, in, inlen);
+               rv  = EVP_PKEY_decrypt(ctx, out, (unsigned int *)poutlen, in, inlen);
                break; 
 
                case EVP_PKEY_OP_DERIVE:
-               rv  = EVP_PKEY_derive(ctx, out, poutlen);
+               rv  = EVP_PKEY_derive(ctx, out, (unsigned int *)poutlen);
                break;
 
                }