summaryrefslogtreecommitdiff
path: root/accel-pppd/utils.h
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-04-09 21:43:04 +0200
committerDmitry Kozlov <xeb@mail.ru>2013-04-17 09:06:35 +0400
commitb041db6c60fb80846ad6b6770adc3971e41b2194 (patch)
treed1d2b3b8b5dbae57360357bf8b0ad4064abc01a3 /accel-pppd/utils.h
parent76f30e4e2d664d3c10f988b8d9660b478718c777 (diff)
downloadaccel-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.h1
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