From 38b7a35a37dd4e4b293a9c4cef518fd035819a1c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 24 Aug 2008 23:38:15 +0000 Subject: [PATCH] simplify --- src/daemon/https/x509/pkcs12.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/daemon/https/x509/pkcs12.c b/src/daemon/https/x509/pkcs12.c index 3d1705ab..282e006e 100644 --- a/src/daemon/https/x509/pkcs12.c +++ b/src/daemon/https/x509/pkcs12.c @@ -858,7 +858,6 @@ gnutls_pkcs12_generate_mac (gnutls_pkcs12_t pkcs12, const char *pass) { opaque salt[8], key[20]; int result; - const int iter = 1; mac_hd_t td1 = NULL; gnutls_datum_t tmp = { NULL, 0 }; opaque sha_mac[20]; @@ -888,25 +887,10 @@ gnutls_pkcs12_generate_mac (gnutls_pkcs12_t pkcs12, const char *pass) goto cleanup; } - /* write the iterations - */ - - if (iter > 1) - { - result = - _gnutls_x509_write_uint32 (pkcs12->pkcs12, "macData.iterations", - iter); - if (result < 0) - { - gnutls_assert (); - goto cleanup; - } - } - /* Generate the key. */ result = _pkcs12_string_to_key (3 /*MAC*/, salt, sizeof (salt), - iter, pass, sizeof (key), key); + 1, pass, sizeof (key), key); if (result < 0) { gnutls_assert ();