Compiler warnings fixed.
authorTobias Brunner <tobias@strongswan.org>
Tue, 14 Feb 2012 15:09:44 +0000 (16:09 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 14 Feb 2012 15:09:44 +0000 (16:09 +0100)
src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c
src/libstrongswan/plugins/pkcs8/pkcs8_builder.c

index f6782ba..d4ec923 100644 (file)
@@ -726,7 +726,7 @@ pkcs11_public_key_t *pkcs11_public_key_load(key_type_t type, va_list args)
 {
        private_pkcs11_public_key_t *this;
        chunk_t n, e, blob;
-       size_t keylen;
+       size_t keylen = 0;
 
        n = e = blob = chunk_empty;
        while (TRUE)
index cd3c3db..346240a 100644 (file)
@@ -536,7 +536,7 @@ static private_key_t *parse_encrypted_private_key(chunk_t blob)
 {
        asn1_parser_t *parser;
        chunk_t object, params, salt, iv;
-       u_int64_t iterations;
+       u_int64_t iterations = 0;
        int objectID;
        encryption_algorithm_t encr = ENCR_UNDEFINED;
        hash_algorithm_t hash = HASH_UNKNOWN;