aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/pkcs8/pkcs8_builder.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-05-18 08:36:37 +0200
committerTobias Brunner <tobias@strongswan.org>2012-05-18 08:36:37 +0200
commit816f7f238fbc83e66d4fbdfc49cbca1b46d1dae0 (patch)
tree6f70129c8177c8673fbd60a9425e44f978c7302f /src/libstrongswan/plugins/pkcs8/pkcs8_builder.c
parent5c162dd9445ceff2a04e56932a878925b7363b79 (diff)
downloadstrongswan-816f7f238fbc83e66d4fbdfc49cbca1b46d1dae0.tar.bz2
strongswan-816f7f238fbc83e66d4fbdfc49cbca1b46d1dae0.tar.xz
pkcs8: Initialize salt and IV properly.
Diffstat (limited to 'src/libstrongswan/plugins/pkcs8/pkcs8_builder.c')
-rw-r--r--src/libstrongswan/plugins/pkcs8/pkcs8_builder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/pkcs8/pkcs8_builder.c b/src/libstrongswan/plugins/pkcs8/pkcs8_builder.c
index 346240ae1..d34a185f0 100644
--- a/src/libstrongswan/plugins/pkcs8/pkcs8_builder.c
+++ b/src/libstrongswan/plugins/pkcs8/pkcs8_builder.c
@@ -535,7 +535,7 @@ static const asn1Object_t encryptedPKIObjects[] = {
static private_key_t *parse_encrypted_private_key(chunk_t blob)
{
asn1_parser_t *parser;
- chunk_t object, params, salt, iv;
+ chunk_t object, params, salt = chunk_empty, iv = chunk_empty;
u_int64_t iterations = 0;
int objectID;
encryption_algorithm_t encr = ENCR_UNDEFINED;