diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-04-09 21:43:04 +0200 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-04-17 09:06:35 +0400 |
commit | b041db6c60fb80846ad6b6770adc3971e41b2194 (patch) | |
tree | d1d2b3b8b5dbae57360357bf8b0ad4064abc01a3 /accel-pppd/utils.h | |
parent | 76f30e4e2d664d3c10f988b8d9660b478718c777 (diff) | |
download | accel-ppp-b041db6c60fb80846ad6b6770adc3971e41b2194.tar.gz accel-ppp-b041db6c60fb80846ad6b6770adc3971e41b2194.zip |
utils: Add random buffer generation function
Define and export the u_randbuf() function that fills a buffer with
random data.
Convert L2TP's challenge generation code for using it.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/utils.h')
-rw-r--r-- | accel-pppd/utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/utils.h b/accel-pppd/utils.h index bb1a00a..be62f6a 100644 --- a/accel-pppd/utils.h +++ b/accel-pppd/utils.h @@ -5,5 +5,6 @@ void u_inet_ntoa(in_addr_t, char *str); int u_readlong(long int *dst, const char *src, long int min, long int max); +int u_randbuf(void *buf, size_t buf_len, int *err); #endif |