aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2020-05-25 21:35:55 +0000
committerBenoƮt Ganne <bganne@cisco.com>2020-06-02 12:17:04 +0000
commit96dabc69abbd7cfb761f286bdc925e6ee030ebdb (patch)
treef4286ae06b08c8c73bb600457596efd2473f2b0c /src/plugins
parent3b519b38b0df186f424d2ff2f5e8015408d67c53 (diff)
ikev2: remove unused hash computation
Type: improvement Change-Id: I99c2383dd0d30efd1837f3d10ff2e4cf3a784283 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/ikev2/ikev2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/ikev2/ikev2.c b/src/plugins/ikev2/ikev2.c
index b49832d0080..11aadfb7f34 100644
--- a/src/plugins/ikev2/ikev2.c
+++ b/src/plugins/ikev2/ikev2.c
@@ -1536,7 +1536,7 @@ static void
ikev2_sa_auth_init (ikev2_sa_t * sa)
{
ikev2_main_t *km = &ikev2_main;
- u8 *authmsg, *key_pad, *psk = 0, *auth = 0;
+ u8 *authmsg, *key_pad, *psk = 0;
ikev2_sa_transform_t *tr_prf;
tr_prf =
@@ -1556,8 +1556,6 @@ ikev2_sa_auth_init (ikev2_sa_t * sa)
key_pad = format (0, "%s", IKEV2_KEY_PAD);
authmsg = ikev2_sa_generate_authmsg (sa, 0);
psk = ikev2_calc_prf (tr_prf, sa->i_auth.data, key_pad);
- auth = ikev2_calc_prf (tr_prf, psk, authmsg);
-
if (sa->i_auth.method == IKEV2_AUTH_METHOD_SHARED_KEY_MIC)
{
@@ -1572,7 +1570,6 @@ ikev2_sa_auth_init (ikev2_sa_t * sa)
vec_free (psk);
vec_free (key_pad);
- vec_free (auth);
vec_free (authmsg);
}