summaryrefslogtreecommitdiff
path: root/sbin/iked
AgeCommit message (Collapse)Author
2015-07-07repair policy-ikesa-linking by replacing the broken RB_TREE w/TAILQMarkus Friedl
(e.g. the policy might be used-after-free on 'ikectl reconfig') ok mikeb@
2015-07-03Terminate 'config' keyword array with a NULL element.Mike Belopuhov
Reported by trondd at kagu-tsuchi ! com, thanks!
2015-06-11Use "compliant" header guards by avoiding the reserved '_' namespace.Reyk Floeter
Pointed out by Markus Elfring OK mikeb@ millert@
2015-06-05Fix coupling and decoupling operations.vgross
With help and ok from mikeb@
2015-06-03Do not assume that asprintf() clears the pointer on failure, whichTodd C. Miller
is non-portable. Also add missing asprintf() return value checks. OK deraadt@ guenther@ doug@
2015-03-26initial support for RFC 7427 signatures, so we are no longerMarkus Friedl
restricted to SHA1 for RSA signatures. ok mikeb@
2015-02-28Reduce usage of predefined strings in manpages.Anthony J. Bentley
Predefined strings are not very portable across troff implementations, and they make the source much harder to read. Usually the intended character can be written directly. No output changes, except for two instances where the incorrect escape was used in the first place. tweaks + ok schwarze@
2015-02-15convert bcmp to memcmpTed Unangst
ok doug millert miod
2015-02-08Use AI_ADDRCONFIG when resolv hosts on startup.Reyk Floeter
OK henning@
2015-02-06unneeded getopt.hTheo de Raadt
2015-01-19Remove unnecessary <netinet/ip_ipsp.h> includesMike Belopuhov
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2015-01-15tell the truth about DES.Igor Sobrado
joint work with djm@ and jsing@ ok djm@
2015-01-12Don't forget about protocol specification when configuring flows.Mike Belopuhov
Tested by and OK claudio.
2015-01-02PFS stands for Perfect Forward Secrecy.Igor Sobrado
ok reyk@
2014-12-16Replace setpgrp(0, getpid()) with setpgid(0, 0). OK deraadt@ tedu@Todd C. Miller
2014-12-05Store return value of i2d_X509_NAME in a signed integer to makeMike Belopuhov
sure the negative error gets treated correctly and doesn't get accidentally promoted to a huge unsigned value. From Pedro Martelletto, thanks! OK reyk
2014-12-05Specify correct number of iovecs when sending replies to the ikev2 procMike Belopuhov
Crash reported and fix tested by Vincent Gross <dermiste at kilob ! yt>; patch from Pedro Martelletto, thanks!
2014-12-03Init SPI using arc4random_buf, rather than (r << 32) | rTheo de Raadt
ok matthew
2014-11-20Don't allow embedded nul characters in strings.Jonathan Gray
Fixes a pfctl crash with an anchor name containing an embedded nul found with the afl fuzzer. pfctl parse.y patch from and ok deraadt@
2014-11-20remove nt and lanman functions which aren't used. ok reyk yasuokaTed Unangst
2014-11-14Add gcc printf format attributes to iked's parse.y and remove unusedDoug Hogan
yywarn() definition. ok bluhm@
2014-11-10tweak previous; ok mikebJason McIntyre
plus a macro fix while here...
2014-11-10copy pubkey section from isakmpd(8); ok reykMike Belopuhov
2014-11-07Fixup a few problems with EAP state transitionMike Belopuhov
First of all we don't need to satisfy valid EAP state flags for IKEV2_STATE_EAP as it's an initial EAP exchange state. Then when waiting for the "ca" process to construct our AUTH payload we need to bail while sa_localauth is not available. With this change Win7 is able to establish the the tunnel again. ok markus
2014-11-07Run eap_parse on the actual message and only when the length is rightMike Belopuhov
2014-11-07Repair initiator with PSK authMike Belopuhov
Attempt state transition to VALID (or EAP_VALID) in the ikev2_ike_auth after we have completed authentication synchronously (PSK) or asynchronously (X.509 and RSA) eliminating the need to do so in multiple places and restoring the correct order for PSK. ok markus
2014-10-29convert simple cases of select() to poll()Theo de Raadt
ok doug
2014-10-25Remove unnecessary netinet/in_systm.h include.Lawrence Teo
ok millert@
2014-10-18Simple malloc() to reallocarray() conversion to potentially avoid integerDoug Hogan
overflow. ok deraadt@
2014-10-12DH_compute_key() returns -1 on error but this was notJonathan Gray
handled by testing the result with a negation. Ralf Horstmann discovered iked would segfault when connecting from Strongswan on Android because of this and supplied the patch to fix the problem. ok reyk@
2014-10-08trivial use of reallocarray()Theo de Raadt
2014-08-27Add support for Curve25519 using the public domain code that is foundReyk Floeter
in OpenSSH. The "private use" DH group 1034 is based on the value that was picked by strongswan recently. OK mikeb@ markus@
2014-08-25Add support for DH groups 27-30 using the Brainpool curves which haveReyk Floeter
previously been added to LibreSSL's libcrypto. ok markus@ mikeb@
2014-08-25Delete secret or secret-derived data with explicit_bzero.Doug Hogan
concept ok deraadt@ diff looks ok tedu@
2014-08-18Sync proc.c with httpd. httpd needs SIGUSR1 but iked will ignore itReyk Floeter
now instead of terminating the process. ok mikeb@
2014-08-05Fix an example, nat-to requires to specify the "out" direction in pf rules.Reyk Floeter
From "Vigdis" via misc@ can go in deraadt@
2014-07-12Sync msgbuf_write() changes from relayd.Reyk Floeter
Please note that proc.c should be kept identical in relayd, iked and snmpd (currently without the includes). ok benno@
2014-07-10add additional includes required to build with -DOPENSSL_NO_DEPRECATEDJonathan Gray
ok reyk@
2014-07-09expire IPcomp SAs too; ok mikeb (some time ago)Markus Friedl
2014-06-03Handle the event parameter of libevent callback function as a bitYASUOKA Masahiko
mask. Also remove redundant imsg_event_add calls. Fixes come from usr.sbin/ospfd/control.c ok reyk
2014-05-13pass SA initiator not the exchange initator to sa_address(); ok mikeb@Markus Friedl
2014-05-09get rid of redundant {csa,flow}_{src,dst}id pointers, so we don't needMarkus Friedl
to update it on rekey (fixes use-after-free); ok mikeb@
2014-05-09replace iked_transform pointer with xform id, since target of pointerMarkus Friedl
might be freed (e.g. on ike sa rekey); ok mikeb@
2014-05-08match iked proc.c infrastructure with proc.cBret Lambert
ok reyk@
2014-05-07try postponed requests first, so we do in-order processing; ok mikeb@Markus Friedl
2014-05-07print msgid for debugging; ok reyk & mikebMarkus Friedl
2014-05-07make authentication work with X509 certificates that don't have aMarkus Friedl
subject-altname, i.e. support IKEV2_ID_ASN1_DN correctly; feedback & ok mikeb@
2014-05-07factor out ikev2_ike_auth() (state machine; used multiple times via callbacks)Markus Friedl
from ikev2_ike_auth_recv() code (message parsing; used once); ok mikeb@
2014-05-06change the create-child-sa responder code, so it does not store anyMarkus Friedl
state in the ikesa structure. this way we can initiate a create-child-sa and process requests for the peer at the same time. ok mikeb@