chiark / gitweb /
Provide osdep.[ch], currently empty
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Nov 2019 22:14:23 +0000 (22:14 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Feb 2020 21:56:49 +0000 (21:56 +0000)
These will be used for compatibility implementations.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Dir.sd.mk
osdep.c [new file with mode: 0644]
osdep.h [new file with mode: 0644]
secnet.h

index 358e1022f8bed6db80a54f38f01ab32395d42951..05c39e37ffa2d1db71b0bfc112c113a67f994869 100644 (file)
--- a/Dir.sd.mk
+++ b/Dir.sd.mk
@@ -53,7 +53,7 @@ OBJECTS:=secnet.o util.o conffile.yy.o conffile.tab.o conffile.o modules.o \
        comm-common.o polypath.o privcache.o \
        netlink.o rsa.o dh.o serpent.o serpentbe.o \
        md5.o sha512.o tun.o slip.o sha1.o ipaddr.o log.o \
-       process.o @LIBOBJS@ \
+       process.o osdep.o @LIBOBJS@ \
        hackypar.o base91s/base91.o
 # version.o is handled specially below and in the link rule for secnet.
 
diff --git a/osdep.c b/osdep.c
new file mode 100644 (file)
index 0000000..7bb7aaa
--- /dev/null
+++ b/osdep.c
@@ -0,0 +1,27 @@
+/*
+ * osdep.c
+ * - portability routines
+ */
+/*
+ * This file is part of secnet.
+ * See README for full list of copyright holders.
+ *
+ * secnet is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * secnet is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * version 3 along with secnet; if not, see
+ * https://www.gnu.org/licenses/gpl.html.
+ */
+
+#include "config.h"
+#include "osdep.h"
+#include "secnet.h"
+#include "util.h"
diff --git a/osdep.h b/osdep.h
new file mode 100644 (file)
index 0000000..a89958d
--- /dev/null
+++ b/osdep.h
@@ -0,0 +1,29 @@
+/*
+ * osdep.c
+ * - portability routines
+ */
+/*
+ * This file is part of secnet.
+ * See README for full list of copyright holders.
+ *
+ * secnet is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * secnet is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * version 3 along with secnet; if not, see
+ * https://www.gnu.org/licenses/gpl.html.
+ */
+
+#ifndef osdep_h
+#define osdep_h
+
+#include "config.h"
+
+#endif /* osdep_h */
index 84e732d88fd2c952d5cbf5ddd9069b79246f67a1..afc635a7a6c3e12c07e055e037349b712719ca89 100644 (file)
--- a/secnet.h
+++ b/secnet.h
@@ -45,6 +45,8 @@
 
 #include <bsd/sys/queue.h>
 
+#include "osdep.h"
+
 #define MAX_PEER_ADDRS 5
 /* send at most this many copies; honour at most that many addresses */