summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/util.c
AgeCommit message (Collapse)Author
2005-03-10remove dead code, noted by ho@Hans-Joerg Hoexer
2005-03-04remove unused function udp_decode_port(), add modified version as text2port() toHans-Joerg Hoexer
utilities. ok cloder ho
2005-02-27where possible, use bzero instead of memsetHans-Joerg Hoexer
ok cloder henning
2004-12-14Allow the Address, Network, or Netmask values of the <IPsec-ID> to beRyan Thomas McBride
specified with an interface name (in which case the first address is used) or the keyword 'default' (in which case the address is selected based on the default route). eg: [roadwarrior-ip] ID-type= IPV4_ADDR Address= default ok ho@ hshoexer@
2004-08-08spacingTheo de Raadt
2004-07-30Style.Hakan Olsson
2004-06-25Remove HAVE_GETNAMEINFO alternate code. Compiled binary is unchanged.Ryan Thomas McBride
ok msf@ hshoexer@ itojun@ ho@
2004-06-23Avoid stat before open. Do open and fstat instead.Hans-Joerg Hoexer
Remove check_file_secrecy() as it is obsoleted be check_file_secrecy_fd(). ok ho@
2004-06-23Make compiling with Boehm's gc possible again.Hakan Olsson
2004-06-20NAT-Traversal for isakmpd. Work in progress...Hakan Olsson
hshoexer@ ok.
2004-06-16Fix wrong pointer dereference and plug memleak. Found and patch byHans-Joerg Hoexer
Patrick Latifi. Thanks! ok ho@
2004-06-14KNF, style, 80c, etc. hshoexer@ okHakan Olsson
2004-05-24Use correct function names in log messages. Kill some spaces.Hans-Joerg Hoexer
ok deraadt@ ho@
2004-05-23More KNF. Mainly spaces and line-wraps, no binary change.Hans-Joerg Hoexer
ok ho@
2004-05-23stat before open is flawedTheo de Raadt
2004-04-15partial move to KNF. More to come. This has happened because thereTheo de Raadt
are a raft of source code auditors who are willing to help improve this code only if this is done, and hey, isakmpd does need our standard auditing process. ok ho hshoexer
2004-04-07-Wsign-compare nits. hshoexer@ ok.Hakan Olsson
2003-12-14Log the actual port for src and dst, don't assume it's always 500.Hakan Olsson
2003-06-03Remove clauses 3 and 4. With approval from Niklas Hallqvist andHakan Olsson
Niels Provos.
2003-05-15Start of privilege separation for isakmpd.Hakan Olsson
There are some kinks left, so keep it default disabled for now. markus@ says ok to commit.
2003-03-13Avoid "j += snprintf()". niklas@ ok.Hakan Olsson
2003-03-06fix text2sockaddr() when HAVE_GETNAMEINFO is false and port is NULL.Cedric Berger
ok ho@
2003-03-06Less ambiguous l-value usage. Noted by cedric@Hakan Olsson
2003-01-09Don't write past the end of the address buffer. Found by Theo.Hakan Olsson
2002-06-09rm trailing whitespaceTodd T. Fries
2002-05-28off_t to size_t change for printf format and malloc. Pointed out by ↵Hakan Olsson
<greg@nest.cx>
2002-01-23the last few sprintf -> snprintfHakan Olsson
2002-01-23less strcpy/strcatHakan Olsson
2002-01-19Fix bogosity with sa_len value assignment...I wonder how this everAngelos D. Keromytis
worked (but it did, until very recently).
2001-10-26Change to use sysdep_sa_len() function.Hakan Olsson
2001-10-26Just rename sockaddr_data/len functions to sockaddr_addrdata/addrlen.Hakan Olsson
2001-07-03Fix policy information for IPv6 subnet/range cases. This is ugly, I'llAngelos D. Keromytis
have to find another way of dealing with IPv6 addresses.
2001-07-01strict strtol checking. text2sockaddr/sockaddr2text implementationsNiklas Hallqvist
for systems without get{addr,name}info calls. Some style police.
2001-07-01Get the 'default:' case right too.Hakan Olsson
2001-07-01Fix remote_negotiation_address attribute; fix sockaddr2text() returnAngelos D. Keromytis
value when zero-filling; log_error()->log_print() consistently.
2001-06-29Fix address byte ordering issue, ho@ okAngelos D. Keromytis
2001-06-29Style fix as per niklas@'s suggestion.Hakan Olsson
2001-06-29Initial IPv6 support. (niklas@ ok)Hakan Olsson
2001-06-27sockaddr2text w/o HAVE_GETNAMEINFOHakan Olsson
2001-06-27A few more functions to help with IPv6 support. By Niklas and me.Hakan Olsson
2001-04-05let check_file_secrecy() set errnoHakan Olsson
2000-11-23Merge with EOM 1.23Niklas Hallqvist
author: niklas style nits author: angelos Typecast so compiler shuts up. author: ho Use stat(), not lstat(). author: niklas style and removal of unused, unneeded code
2000-10-27conf.c: Merge with EOM 1.46Niklas Hallqvist
util.c: Merge EOM diff 1.20 - 1.21, i.e. 1.19 is still left to be merged author: ho Use stat(), not lstat().
2000-10-16Merge with EOM 1.19Niklas Hallqvist
author: angelos Correct byte-order handling in encode/decode_128, add function prototypes. author: angelos A few more auxiliary routines.
2000-10-13regress/b2n/Makefile: Merge with EOM 1.12Niklas Hallqvist
regress/ec2n/Makefile: Merge with EOM 1.9 conf.c: Merge with EOM 1.40 util.c: Merge with EOM 1.17 author: ho Add file permission check to private key file. Split out check function to util.c.
2000-10-07Merge with EOM 1.16Niklas Hallqvist
author: itojun need string.h for netbsd/alpha
1999-08-05regress/rsakeygen/Makefile: Merge with EOM 1.5Niklas Hallqvist
sysdep/openbsd/sysdep.c: Merge with EOM 1.8 cookie.c: Merge with EOM 1.21 util.c: Merge with EOM 1.15 util.h: Merge with EOM 1.7 author: niklas Move regrand var to util.c, and get the decl from util.h, do not update the cookie secret if in deterministic mode.
1999-04-19./app.c: Merge with EOM 1.5Niklas Hallqvist
./gmp_util.c: Merge with EOM 1.3 ./asn_useful.c: Merge with EOM 1.11 ./attribute.c: Merge with EOM 1.9 ./constants.c: Merge with EOM 1.7 ./doi.h: Merge with EOM 1.25 ./doi.c: Merge with EOM 1.4 ./field.c: Merge with EOM 1.9 ./init.c: Merge with EOM 1.13 ./isakmp_doi.c: Merge with EOM 1.35 ./prf.c: Merge with EOM 1.6 ./util.c: Merge with EOM 1.14 ./app.h: Merge with EOM 1.4 ./conf.h: Merge with EOM 1.8 ./ipsec.h: Merge with EOM 1.34 ./ipsec_doi.h: Merge with EOM 1.10 ./pkcs.h: Merge with EOM 1.8 ./sysdep.h: Merge with EOM 1.15 1999 copyrights
1999-02-26Merge from the Ericsson repositoryNiklas Hallqvist
| revision 1.13 | date: 1999/02/25 11:39:27; author: niklas; state: Exp; lines: +3 -1 | include sysdep.h everywhere | ----------------------------
1998-11-17Add RCS Ids from the EOM repositoryNiklas Hallqvist