summaryrefslogtreecommitdiffhomepage
path: root/networking/tls.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-11-23 19:24:57 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-11-23 19:24:57 +0100
commit624066f0cce8acaf2feb973f24942883b0600a0b (patch)
tree80edd1cef99947909380f2ba8c46103467ab3c5f /networking/tls.c
parent26602b85a3f679017b4366d3c1b2f6c5aa950aa5 (diff)
tls: make tls_get_random() FAST_FUNC
function old new delta tls_handshake 1977 1985 +8 tls_get_random 32 28 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 8/-4) Total: 4 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tls.c')
-rw-r--r--networking/tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/tls.c b/networking/tls.c
index 2a0098674..1e0e0991c 100644
--- a/networking/tls.c
+++ b/networking/tls.c
@@ -337,7 +337,7 @@ static void dump_tls_record(const void *vp, int len)
# define dump_tls_record(...) ((void)0)
#endif
-void tls_get_random(void *buf, unsigned len)
+void FAST_FUNC tls_get_random(void *buf, unsigned len)
{
if (len != open_read_close("/dev/urandom", buf, len))
xfunc_die();