fixed some compiler warnings
authorMartin Willi <martin@strongswan.org>
Fri, 23 May 2008 15:49:43 +0000 (15:49 -0000)
committerMartin Willi <martin@strongswan.org>
Fri, 23 May 2008 15:49:43 +0000 (15:49 -0000)
src/charon/plugins/eap_aka/eap_aka.c
src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c

index 570e9bf..3bf3ccb 100644 (file)
@@ -835,7 +835,6 @@ static status_t server_initiate_challenge(private_eap_aka_t *this, chunk_t sqn,
                                                                                  eap_payload_t **out)
 {
        rng_t *rng;
-       status_t status;
        chunk_t mac, ak, autn;
        
        mac = chunk_alloca(MAC_LENGTH);
index 46371d2..1b99de7 100644 (file)
@@ -185,7 +185,7 @@ error:
 static bool compute_shared_key(private_openssl_ec_diffie_hellman_t *this, chunk_t *shared_secret)
 {
        const BIGNUM *priv_key;
-       EC_POINT *secret;
+       EC_POINT *secret = NULL;
        bool ret = FALSE;
        
        priv_key = EC_KEY_get0_private_key(this->key);