commit 38b7a35a37dd4e4b293a9c4cef518fd035819a1c
parent 3c6c221510765f444d0c35de5b370b905f3e2928
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 24 Aug 2008 23:38:15 +0000
simplify
Diffstat:
1 file changed, 1 insertion(+), 17 deletions(-)
diff --git 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 ();