summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-08-04 16:28:55 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-08-04 16:31:26 +0200
commit24d2c027d67c58dca53413e4e03f5a02ec7f752e (patch)
tree7e228646e22eb0cee1998625b818db2a43d33ecb
parent262947d5cc0011c758d82cfff8f49b28b3405dd9 (diff)
downloadgnutls-24d2c027d67c58dca53413e4e03f5a02ec7f752e.tar.gz
pkcs8: initialize parameters on decryption
-rw-r--r--lib/x509/privkey_pkcs8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c
index 252742ea2e..53838ca8d5 100644
--- a/lib/x509/privkey_pkcs8.c
+++ b/lib/x509/privkey_pkcs8.c
@@ -789,6 +789,7 @@ read_pkcs_schema_params(schema_id * schema, const char *password,
case PKCS12_3DES_SHA1:
case PKCS12_ARCFOUR_SHA1:
case PKCS12_RC2_40_SHA1:
+ memset(enc_params, 0, sizeof(*enc_params));
if ((*schema) == PKCS12_3DES_SHA1) {
enc_params->cipher = GNUTLS_CIPHER_3DES_CBC;