aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-02-14 16:09:44 +0100
committerTobias Brunner <tobias@strongswan.org>2012-02-14 16:09:44 +0100
commita190ec0ac53b3dfd61f646ed718e755eb5f47635 (patch)
tree64401d5ba528f779551471f683e0dade2ed8f52f /src
parent0f7d381cfecdbdfcd8d6e7523d5df40181971296 (diff)
downloadstrongswan-a190ec0ac53b3dfd61f646ed718e755eb5f47635.tar.bz2
strongswan-a190ec0ac53b3dfd61f646ed718e755eb5f47635.tar.xz
Compiler warnings fixed.
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c2
-rw-r--r--src/libstrongswan/plugins/pkcs8/pkcs8_builder.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c b/src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c
index f6782ba9f..d4ec9235d 100644
--- a/src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c
+++ b/src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c
@@ -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)
diff --git a/src/libstrongswan/plugins/pkcs8/pkcs8_builder.c b/src/libstrongswan/plugins/pkcs8/pkcs8_builder.c
index cd3c3dba0..346240ae1 100644
--- a/src/libstrongswan/plugins/pkcs8/pkcs8_builder.c
+++ b/src/libstrongswan/plugins/pkcs8/pkcs8_builder.c
@@ -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;