summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2017-08-22 11:48:26 +0100
committerAdam Jackson <ajax@redhat.com>2017-08-22 10:59:40 -0400
commit292ee7151631cabbd928847a5a2ca47e14a06b75 (patch)
tree5dd04e0f3c8b0ce108b31d02648d3380739afb2e /os
parent8aee1f40eaa3527c90698d6826ce8314b8b5a92a (diff)
os: make GenerateRandomData() independent of XCSECURITY
The function itself does not depend on the macro. Move it outside of the ifdef guard and remove the identical copy in XWIN. This is step 1 towards removing the duplication in winauth.c and moving the OS specifics to os/ Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jon Turney <jon.turney@dronecode.org.uk>
Diffstat (limited to 'os')
-rw-r--r--os/auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/auth.c b/os/auth.c
index c7b333ca2..9d87c1f39 100644
--- a/os/auth.c
+++ b/os/auth.c
@@ -302,6 +302,8 @@ GenerateAuthorization(unsigned name_length,
return -1;
}
+#endif /* XCSECURITY */
+
void
GenerateRandomData(int len, char *buf)
{
@@ -315,5 +317,3 @@ GenerateRandomData(int len, char *buf)
close(fd);
#endif
}
-
-#endif /* XCSECURITY */