From 6a365f0740ff683de52751c1c2903b0ddb6a7e0c Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Tue, 15 Apr 2008 05:56:35 +0000 Subject: added API for random number generators, served through credential factory ported randomizer_t to a rng_t on top of /dev/(u)random (plugin random) --- src/charon/plugins/stroke/stroke_cred.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/charon/plugins/stroke') diff --git a/src/charon/plugins/stroke/stroke_cred.c b/src/charon/plugins/stroke/stroke_cred.c index e27800c50..4ac46abd2 100644 --- a/src/charon/plugins/stroke/stroke_cred.c +++ b/src/charon/plugins/stroke/stroke_cred.c @@ -574,7 +574,7 @@ static err_t extract_secret(chunk_t *secret, chunk_t *line) if (ugh != NULL) { - chunk_free_randomized(secret); + chunk_clear(secret); return ugh; } secret->len = len; @@ -702,7 +702,7 @@ static void load_secrets(private_stroke_cred_t *this) this->private->insert_last(this->private, key); } } - chunk_free_randomized(&secret); + chunk_clear(&secret); } else if ((match("PSK", &token) && (type = SHARED_IKE)) || (match("EAP", &token) && (type = SHARED_EAP)) || @@ -774,7 +774,7 @@ static void load_secrets(private_stroke_cred_t *this) } error: this->mutex->unlock(this->mutex); - chunk_free_randomized(&chunk); + chunk_clear(&chunk); } /** -- cgit v1.2.3