summaryrefslogtreecommitdiffstats
path: root/sbin/isakmpd/util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use clock_gettime(CLOCK_MONOTONIC) to schedule timersjca2017-12-051-2/+2
| | | | From Scott Cheloha, ok tb@
* Remove a mid-layer which acts like arc4random isn't fairly standard.deraadt2014-01-231-3/+1
| | | | ok mikeb
* regrand can die, from millertderaadt2014-01-221-2/+1
|
* improve randomization. remove some junk debugging features that arederaadt2014-01-221-2/+3
| | | | | fundamentally broken. ok jsing mikeb
* add support to tag ipsec traffic belonging to specific IKE-initiatedreyk2006-11-241-1/+2
| | | | | | | | | | | phase 2 traffic. this allows policy-based filtering of encrypted and unencrypted ipsec traffic with pf(4). see ipsec.conf(5) and isakmpd.conf(5) for details and examples. this is work in progress and still needs some testing and feedback, but it is safe to put it in now. ok hshoexer@
* remove some unused functions and an unused variable found by lint.hshoexer2005-12-281-4/+1
| | | | ok markus@
* Add a new raw2hex function and yank out several pieces of code in othercloder2005-11-151-1/+2
| | | | places that were doing this. Prodding deraadt. OK hshoexer.
* output some more information on UI command "S"hshoexer2005-07-251-1/+3
| | | | ok ho@
* Make deterministic randomness (only ever used for testing) a compile-timecloder2005-04-081-1/+2
| | | | | | | | option. Reduces chances of somehow setting regrand when it's not supposed to be set. Remove "-r" option from man page. Also xref certpatch(8) while we are in there. And remove some include sysdep.h where it is no longer needed. OK hshoexer
* remove dead code, noted by ho@hshoexer2005-03-101-7/+1
|
* remove unused function udp_decode_port(), add modified version as text2port() tohshoexer2005-03-041-1/+2
| | | | | | utilities. ok cloder ho
* Allow the Address, Network, or Netmask values of the <IPsec-ID> to bemcbride2004-12-141-2/+3
| | | | | | | | | | | | 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@
* Avoid stat before open. Do open and fstat instead.hshoexer2004-06-231-2/+1
| | | | | | Remove check_file_secrecy() as it is obsoleted be check_file_secrecy_fd(). ok ho@
* NAT-Traversal for isakmpd. Work in progress...ho2004-06-201-2/+3
| | | | hshoexer@ ok.
* stat before open is flawedderaadt2004-05-231-1/+2
|
* partial move to KNF. More to come. This has happened because therederaadt2004-04-151-24/+24
| | | | | | 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
* Fix payload handling flaws found by cloder@. Based on initial patch byhshoexer2004-03-101-3/+1
| | | | | | cloder@. Testing by markus@ cloder@ hshoexer@. ok ho@
* Log the actual port for src and dst, don't assume it's always 500.ho2003-12-141-1/+2
|
* Remove clauses 3 and 4. With approval from Niklas Hallqvist andho2003-06-031-6/+1
| | | | Niels Provos.
* off_t to size_t change for printf format and malloc. Pointed out by <greg@nest.cx>ho2002-05-281-2/+2
|
* Just rename sockaddr_data/len functions to sockaddr_addrdata/addrlen.ho2001-10-261-3/+3
|
* Alphabeticize extern decls.niklas2001-08-221-6/+6
|
* Add prototypes and some other various cleanup.ho2001-07-051-1/+2
|
* strict strtol checking. text2sockaddr/sockaddr2text implementationsniklas2001-07-011-1/+3
| | | | for systems without get{addr,name}info calls. Some style police.
* Initial IPv6 support. (niklas@ ok)ho2001-06-291-2/+4
|
* A few more functions to help with IPv6 support. By Niklas and me.ho2001-06-271-1/+6
|
* policy.c: Merge with EOM 1.49niklas2000-11-231-2/+6
| | | | | | | util.h: Merge with EOM 1.10 author: niklas style and removal of unused, unneeded code
* Merge with EOM 1.9niklas2000-10-161-2/+6
| | | | | author: angelos Correct byte-order handling in encode/decode_128, add function prototypes.
* util.h: Merge with EOM 1.8niklas2000-10-131-2/+3
| | | | | | | ike_auth.c: Merge with EOM 1.57 author: ho Add file permission check to private key file. Split out check function to util.c.
* regress/rsakeygen/Makefile: Merge with EOM 1.5niklas1999-08-051-2/+4
| | | | | | | | | | | 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.
* Add RCS Ids from the EOM repositoryniklas1998-11-171-1/+2
|
* openBSD RCS IDsniklas1998-11-151-1/+1
|
* Initial import of isakmpd, an IKE (ISAKMP/Oakley) implementation for theniklas1998-11-151-0/+53
OpenBSD IPSEC stack by me, Niklas Hallqvist and Niels Provos, funded by Ericsson Radio Systems. It is not yet complete or usable in a real scenario but the missing pieces will soon be there. The early commit is for people who wants early access and who are not afraid of looking at source. isakmpd interops with Cisco, Timestep, SSH & Pluto (Linux FreeS/WAN) so far, so it is not that incomplete. It is really mostly configuration that is lacking.