Erik Ekman
19d0d1be64
Formatting: Space between 'if' and parenthesis
2020-07-24 18:56:30 +02:00
Ralf Ramsauer
43dad946c6
common: no need for \n in check_superuser
...
warnx adds the \n for us.
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2017-03-11 02:17:27 -08:00
Ralf Ramsauer
1c86bf347f
iodine/iodined: do not print usage if no superuser
...
There is no value in printing the usage in this case, as the usage
doesn't give the user any hint on how to solve this issue.
Furthermore, replace the Windows implementation with an empty inline
function, which will result in no code.
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2017-03-11 02:17:27 -08:00
Jes Bodi Klinke
68443abd60
Fixed non-standard passing of va_list into functions declared with ...
2016-11-29 11:10:38 -08:00
Erik Ekman
fc1611fc40
Only accept IPv6 in server IPv6 socket
...
Set IPV6_V6ONLY flag on server socket. Not all operating systems
support mixing v4/v6 in one socket, so separate them all the time.
2015-06-30 21:58:16 +02:00
Erik Ekman
b4e9148df8
Support raw mode for both IPv4 and IPv6
...
Read destination address of IP request packet and return it.
Check length in client and use it as IPv4 or v6 depending on length.
2015-06-28 22:41:54 +02:00
Erik Ekman
9a45c4aa66
Change license wording to follow ISC license exactly
...
"Permission to use, copy, modify, and distribute this software" is now
"Permission to use, copy, modify, and/or distribute this software".
Add license header to source files missing one.
2014-08-07 21:18:33 +02:00
Erik Ekman
fbb5a49cf3
Fix windows build
2014-06-05 02:19:57 +02:00
Erik Ekman
3fadbfb580
Do not let sockets be inherited by sub-processes
...
Set FD_CLOEXEC flag on tunnel and UDP file descriptors.
Fixes ticket #99 , "should not allow UDP socket to be inherited by ifconfig"
2014-06-04 17:48:43 +09:00
Erik Ekman
a23899513d
Remove trailing whitespace
2014-06-01 08:46:54 +02:00
Erik Ekman
388afe3845
Update copyright
2014-06-01 08:46:54 +02:00
Erik Ekman
3914d37c99
Move error message generation into topdomain check method
...
Change isalpha() to a-z check to avoid locale issues
2014-05-31 10:07:36 +02:00
Erik Ekman
9bb2323f84
Improve check of topdomain to use
...
Add more checks and unit tests
2014-05-30 00:18:45 +02:00
Erik Ekman
b079b0eda5
Fix build error and a warning on OpenBSD
2014-05-29 16:18:59 +02:00
Erik Ekman
eca80f769b
Merge branch 'master' of https://github.com/jedisct1/iodine
2014-04-06 13:31:34 +02:00
Erik Ekman
540d3795a9
Switch from inet_pton() to getnameinfo() for portability
...
Windows XP is supported again
2014-02-06 22:50:23 +01:00
Erik Ekman
f02339b3b2
IPv6: Create single way to format IP addresses
2014-02-06 19:44:26 +01:00
Erik Ekman
400f45c793
Do not use AI_ADDRCONFIG on Windows
...
It was not available on my MinGW crosscompiler,
and it may be harmful:
https://code.google.com/p/chromium/issues/detail?id=5234
Also, remove old conflicting WINVER in osflags.
It is set in src/windows.h now.
2014-02-05 22:55:35 +01:00
Erik Ekman
a1d88c4f0a
IPv6 support for client ( #107 )
...
The iodine client now supports both IPv4 and IPv6 nameservers for
sending DNS queries to an IPv4 iodined. The nameserver will
transparently handle translation between IP protocols.
Windows port needs Vista or later to support IPv6.
2014-02-05 22:36:53 +01:00
Frank Denis
ac7cbd4435
Check set[e]uid return code
2013-05-20 10:27:23 -07:00
Erik Ekman
b30abea6b0
Reorganize imports for OpenBSD
2012-02-10 23:26:27 +01:00
Marcel Bokhorst
a569030bb7
Android support ( #105 ) patch from Marcel Bokhorst
2012-02-04 20:34:05 +01:00
Håkan Kvist
9c3343e6ac
Allow spaces in passwords, #93
2012-02-04 20:34:05 +01:00
J. A. Bezemer
05e99c7a3f
start merging common and docs #76
2012-02-04 20:34:04 +01:00
Guillaume Rischard
3879f96a80
Fix build error on OSX 10.6 by Guillaume Rischard, #79
2012-02-04 20:34:03 +01:00
misc
7efdd01ae2
add -F option for writing pid file. Patch from misc@mandriva.org #70
2012-02-04 20:34:03 +01:00
Sebastien Raveau
d5acb508bc
Add support for applying SELinux context
2012-02-04 20:34:02 +01:00
Erik Ekman
c92ed9bad8
#36 send raw login packet directly to server
2012-02-04 20:34:02 +01:00
Erik Ekman
3db5cd24b7
Fix (ignore) Dont-Fragment for OpenBSD and OS X
2012-02-04 20:34:01 +01:00
Erik Ekman
1bddcd33aa
Set Dont-Fragment for various os
2012-02-04 20:34:01 +01:00
Erik Ekman
3e07afd13b
change all printf to fprintf on stderr for #49
2012-02-04 20:34:01 +01:00
Erik Ekman
9c738bbc81
#44 hide password input
2012-02-04 20:34:01 +01:00
Erik Ekman
b3e8cf0554
#43 : Basic windows support operational
2012-02-04 20:34:00 +01:00
Erik Ekman
b43e97aeb0
added proper warn/warnx/err/errx
2012-02-04 20:34:00 +01:00
Erik Ekman
94f412a8d8
Dont need plibc
2012-02-04 20:34:00 +01:00
Erik Ekman
155f0c6f37
Merged branch with mingw port. Compiles now, tun work to do
2012-02-04 20:34:00 +01:00
Erik Ekman
0836ad0a5b
revert cygwin stuff
2012-02-04 20:34:00 +01:00
Erik Ekman
6de3368f39
turn off root check in cygwin for now
2012-02-04 20:34:00 +01:00
Erik Ekman
97bf71e944
Make it build and fix tests in cygwin
2012-02-04 20:33:59 +01:00
Erik Ekman
352d75131f
Move superuser check to common.c
2012-02-04 20:33:59 +01:00
Erik Ekman
a5031ee9dd
Happy new year
2012-02-04 20:33:59 +01:00
Erik Ekman
49695a4cb4
Updated year
2012-02-04 20:33:57 +01:00
Erik Ekman
35a8ffe46d
Now fetches destination address from udp packets
2012-02-04 20:33:57 +01:00
Francois Revol
ec2d6657a0
Patch to make it build on BeOS R5-BONE and Haiku
2012-02-04 20:33:57 +01:00
Erik Ekman
c01f42fd0f
fix opensolaris warning
2012-02-04 20:33:57 +01:00
Albert Lee
cd91d675ae
Applied Open/Solaris patch
2012-02-04 20:33:57 +01:00
Erik Ekman
791c3de84c
reapplied maxims patches
2012-02-04 20:33:56 +01:00
Erik Ekman
07e98f181c
reverting the code after 0.4.1, except for some patches
2012-02-04 20:33:56 +01:00
Maxim Bourmistrov
7565a2d554
Added checks on topdomain name based on patch from Maxim Bourmistrov
2012-02-04 20:33:56 +01:00
Bjorn Andersson
879e73a4c2
stdin-echo fix in server too
2012-02-04 20:33:55 +01:00