summaryrefslogtreecommitdiffstats
path: root/crypto/pkcs12/p12_mutl.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2002-03-14 18:22:23 +0000
committerDr. Stephen Henson <steve@openssl.org>2002-03-14 18:22:23 +0000
commitde941e289e5d320d2e3258b0ebf71562830aaabc (patch)
tree082d81fe05a8c694a71a531dbe3eab7495773b17 /crypto/pkcs12/p12_mutl.c
parent1d2845352926df66db5798cfebf3784f6af59b8c (diff)
Initialize cipher context in KRB5
("D. Russell" <russelld@aol.net>) Allow HMAC functions to use an alternative ENGINE.
Diffstat (limited to 'crypto/pkcs12/p12_mutl.c')
-rw-r--r--crypto/pkcs12/p12_mutl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/pkcs12/p12_mutl.c b/crypto/pkcs12/p12_mutl.c
index b6a10de70c..0fb67f74b8 100644
--- a/crypto/pkcs12/p12_mutl.c
+++ b/crypto/pkcs12/p12_mutl.c
@@ -87,11 +87,11 @@ int PKCS12_gen_mac (PKCS12 *p12, const char *pass, int passlen,
return 0;
}
HMAC_CTX_init(&hmac);
- HMAC_Init_ex (&hmac, key, PKCS12_MAC_KEY_LENGTH, md_type);
- HMAC_Update (&hmac, p12->authsafes->d.data->data,
+ HMAC_Init_ex(&hmac, key, PKCS12_MAC_KEY_LENGTH, md_type, NULL);
+ HMAC_Update(&hmac, p12->authsafes->d.data->data,
p12->authsafes->d.data->length);
- HMAC_Final (&hmac, mac, maclen);
- HMAC_CTX_cleanup (&hmac);
+ HMAC_Final(&hmac, mac, maclen);
+ HMAC_CTX_cleanup(&hmac);
return 1;
}