diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2005-05-22 20:35:49 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2005-05-22 20:35:49 +0000 |
commit | 1ab007e874cbeba337139155761f26c8f44c67c6 (patch) | |
tree | 6ef487ecb146e950798fd415b7f4ec02652f8b42 /usr.sbin/sasyncd/sasyncd.c | |
parent | 70630e70ff57f4e98691631edb8aea27a95cc743 (diff) |
No more SSL between peers, instead do shared key AES & SHA
Diffstat (limited to 'usr.sbin/sasyncd/sasyncd.c')
-rw-r--r-- | usr.sbin/sasyncd/sasyncd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/sasyncd/sasyncd.c b/usr.sbin/sasyncd/sasyncd.c index b859cb3ed69..c9923279737 100644 --- a/usr.sbin/sasyncd/sasyncd.c +++ b/usr.sbin/sasyncd/sasyncd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sasyncd.c,v 1.6 2005/05/22 12:14:16 ho Exp $ */ +/* $OpenBSD: sasyncd.c,v 1.7 2005/05/22 20:35:48 ho Exp $ */ /* * Copyright (c) 2005 Håkan Olsson. All rights reserved. @@ -145,6 +145,12 @@ main(int argc, char **argv) extern char *__progname; int r; + if (geteuid() != 0) { + /* No point in continuing. */ + fprintf(stderr, "This daemon needs to be run as root.\n"); + return 1; + } + /* Init. */ closefrom(STDERR_FILENO + 1); for (r = 0; r <= 2; r++) @@ -167,12 +173,6 @@ main(int argc, char **argv) if (r) return 1; - if (geteuid() != 0) { - /* No point in continuing. */ - fprintf(stderr, "This daemon needs to be run as root.\n"); - return 1; - } - if (carp_init()) return 1; if (pfkey_init(0)) |