summaryrefslogtreecommitdiffstats
path: root/proxy.c
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-06-22 17:16:03 +0200
committerDavid Sommerseth <davids@redhat.com>2011-10-19 22:05:44 +0200
commit6825182b8137c036afcdc0e48397c0ea5ffc2404 (patch)
treeb65554fcab08105f5d8ad2866270c7630ee366d1 /proxy.c
parent0a18017472edb52c5535bc814c2aceaa2b562222 (diff)
downloadopenvpn-6825182b8137c036afcdc0e48397c0ea5ffc2404.tar.gz
openvpn-6825182b8137c036afcdc0e48397c0ea5ffc2404.tar.xz
openvpn-6825182b8137c036afcdc0e48397c0ea5ffc2404.zip
Refactored to rand_bytes for OpenSSL-independency
Signed-off-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: David Sommerseth <davids@redhat.com> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'proxy.c')
-rw-r--r--proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy.c b/proxy.c
index b00532c..86f3d7d 100644
--- a/proxy.c
+++ b/proxy.c
@@ -740,7 +740,7 @@ establish_http_proxy_passthru (struct http_proxy_info *p,
const char *opaque = get_pa_var("opaque", pa, &gc);
/* generate a client nonce */
- ASSERT(RAND_bytes(cnonce_raw, sizeof(cnonce_raw)));
+ ASSERT(rand_bytes(cnonce_raw, sizeof(cnonce_raw)));
cnonce = make_base64_string2(cnonce_raw, sizeof(cnonce_raw), &gc);