summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-22 23:50:33 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-22 23:50:33 +0000
commit5e735f8929dd4a42d8781ba51367925da9c535d9 (patch)
treeaef2f24629e8ec32d6f5260412b5b32d6b322638 /src
parentupdated exit status handling of exec script (diff)
cleanup
Diffstat (limited to 'src')
-rw-r--r--src/auth_algo.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/auth_algo.c b/src/auth_algo.c
index 0a45aff..1827d25 100644
--- a/src/auth_algo.c
+++ b/src/auth_algo.c
@@ -90,7 +90,6 @@ void auth_algo_generate(auth_algo_t* aa, key_derivation_t* kd, key_store_dir_t d
if(!aa)
return;
- u_int32_t len;
if(aa->type_ == aa_null)
return;
else if(aa->type_ == aa_sha1)
@@ -104,16 +103,15 @@ void auth_algo_generate(auth_algo_t* aa, key_derivation_t* kd, key_store_dir_t d
int auth_algo_check_tag(auth_algo_t* aa, key_derivation_t* kd, key_store_dir_t dir, encrypted_packet_t* packet)
{
if(!aa)
- return;
+ return 0;
- u_int32_t len;
if(aa->type_ == aa_null)
return 1;
else if(aa->type_ == aa_sha1)
return auth_algo_sha1_check_tag(aa, kd, dir, packet);
else {
log_printf(ERR, "unknown auth algo type");
- return;
+ return 0;
}
}