aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/openssl/openssl-qoriq/qoriq/0031-cryptodev-remove-not-used-local-variables.patch
blob: fc23e0c1b263e7be626e95e7cb121159ffe42d78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From 8cd09ffdfd7d9c25605401f1c0947b1b4acc6e57 Mon Sep 17 00:00:00 2001
From: Cristian Stoica <cristian.stoica@nxp.com>
Date: Mon, 8 Feb 2016 16:00:22 +0200
Subject: [PATCH 31/48] cryptodev: remove not used local variables

Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
---
 crypto/engine/eng_cryptodev.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
index 30713e5..2734500 100644
--- a/crypto/engine/eng_cryptodev.c
+++ b/crypto/engine/eng_cryptodev.c
@@ -1634,7 +1634,6 @@ static int cryptodev_digest_final(EVP_MD_CTX *ctx, unsigned char *md)
 static int cryptodev_digest_cleanup(EVP_MD_CTX *ctx)
 {
     struct dev_crypto_state *state = ctx->md_data;
-    struct session_op *sess = &state->d_sess;
 
     if (state == NULL) {
         return 0;
@@ -3939,7 +3938,6 @@ static int cryptodev_dh_keygen(DH *dh)
     int ret = 1, q_len = 0;
     unsigned char *q = NULL, *g = NULL, *s = NULL, *w = NULL;
     BIGNUM *pub_key = NULL, *priv_key = NULL;
-    int generate_new_key = 1;
 
     if (dh->priv_key)
         priv_key = dh->priv_key;
@@ -4061,11 +4059,9 @@ cryptodev_dh_compute_key_async(unsigned char *key, const BIGNUM *pub_key,
 {
     struct crypt_kop *kop = malloc(sizeof(struct crypt_kop));
     int ret = 1;
-    int fd, p_len;
+    int p_len;
     unsigned char *padded_pub_key = NULL, *p = NULL;
 
-    fd = *(int *)cookie->eng_handle;
-
     memset(kop, 0, sizeof(struct crypt_kop));
     kop->crk_op = CRK_DH_COMPUTE_KEY;
     /* inputs: dh->priv_key pub_key dh->p key */
-- 
2.7.0