diff options
author | Martin Willi <martin@strongswan.org> | 2008-04-15 05:56:35 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-04-15 05:56:35 +0000 |
commit | 6a365f0740ff683de52751c1c2903b0ddb6a7e0c (patch) | |
tree | 0b2039f3975676490b4f713ae52db81e747a5314 /src/charon/plugins/stroke | |
parent | 0644ebd3de62e1df38fce4373460a9d1d2957981 (diff) | |
download | strongswan-6a365f0740ff683de52751c1c2903b0ddb6a7e0c.tar.bz2 strongswan-6a365f0740ff683de52751c1c2903b0ddb6a7e0c.tar.xz |
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)
Diffstat (limited to 'src/charon/plugins/stroke')
-rw-r--r-- | src/charon/plugins/stroke/stroke_cred.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } /** |