diff options
Diffstat (limited to 'lib/x509/privkey_pkcs8.c')
-rw-r--r-- | lib/x509/privkey_pkcs8.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c index 06c9ec0bce..39728885ba 100644 --- a/lib/x509/privkey_pkcs8.c +++ b/lib/x509/privkey_pkcs8.c @@ -383,7 +383,7 @@ gnutls_x509_privkey_export_pkcs8(gnutls_x509_privkey_t key, void *output_data, size_t * output_data_size) { - ASN1_TYPE pkcs8_asn, pkey_info; + ASN1_TYPE pkcs8_asn = NULL, pkey_info; int ret; gnutls_datum_t tmp; schema_id schema; @@ -471,6 +471,8 @@ gnutls_pkcs8_info(const gnutls_datum_t * data, gnutls_x509_crt_fmt_t format, const struct pkcs_cipher_schema_st *p = NULL; struct pbkdf2_params kdf; + memset(&kdf, 0, sizeof(kdf)); + if (oid) *oid = NULL; @@ -579,7 +581,7 @@ gnutls_x509_privkey_export2_pkcs8(gnutls_x509_privkey_t key, const char *password, unsigned int flags, gnutls_datum_t * out) { - ASN1_TYPE pkcs8_asn, pkey_info; + ASN1_TYPE pkcs8_asn = NULL, pkey_info; int ret; gnutls_datum_t tmp; schema_id schema; |