Commit Graph

48 Commits

Author SHA1 Message Date
Niklas Granberg ca640aa94b Added hit suite list to config, is now read into program on startup 2019-10-13 16:00:16 +02:00
Christoffer Lindström 1f5649b8d0 read and sets parameters correctly for rsa 2019-10-03 15:33:04 +02:00
Christoffer Lindström 9af1d0aa62 updated to openssl1.1.0 builds but does not run 2019-09-27 13:36:39 +02:00
Gunnar Grimsdal 7fe64ee705 Add multiple suite_id if the config have multiple HIT:s for a client. 2018-12-12 13:26:35 +01:00
Gunnar Grimsdal d7a704cf71 Use 8bit format when sending suite_id to follow the rfc. HCNF.hit_suite_list is now dependent on the config file. 2018-12-09 10:46:52 +01:00
PatrikLundgren aed4303cc1 hi_to_hit signature now includes hit_suite_id to choose correct hashfunction, change definition of global curve definitions and added header declarations 2018-11-19 13:11:38 +01:00
Gunnar Grimsdal 2522704bad HIT for ECDSA first try, not working. 2018-11-08 12:13:52 +01:00
Gunnar Grimsdal 6fad92475f Bug fixe, break on switch. Fix the parameter name in the log on type read error. 2018-11-07 13:31:22 +01:00
PatrikLundgren 6a246bc9a7 hitgen for ECDSA work in progress 2018-11-07 08:49:04 +01:00
Mohammad Khodari 2c36b80bc7 Merge remote-tracking branch 'origin/Hitgen2' into base_exchange_clean 2017-11-02 17:36:16 +01:00
Mohammad Khodari 6b89f1f5c5 update hip_transform 2017-11-01 14:29:33 +01:00
Jocke 27b77aa6e4 Updated HIT generation to handle hit suite id by default, in the XML storage and initiation 2017-10-09 15:42:47 +02:00
Jeff Ahrenholz 7b0142ee2d apply Orlie's Coverity scan fix patch to OpenHIP SVN r262 2016-11-16 13:53:01 -08:00
Jeff Ahrenholz bbcdf20a59 added support for configuring a static multicast SA for VPLS mode
The static multicast SA introduces "multicast_group", "multicast_spi", and 
"multicast_key" options to hip.conf; peers must be configured with a matching
group/SPI/key combination.

When multicast packets are received from the overlay, instead of unicasting a
copy through each established tunnel, the static key/SPI is used and an ESP
packet is sent out to the configured group. This means multicast is sent
as multicast (multiple groups mapped to one), not as unicast, having different 
implications for how the ESP is routed over the underlay network.



git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@260 4c5cb64f-9889-4596-9799-84b02dc3effa
2014-04-21 22:34:56 +00:00
Jeff Ahrenholz 22beb73bd2 patch by Tom H. to allow specifying LSI prefix in hip.conf file
modified by Jeff A. to work under Windows and to fix LSI generated with hitgen


git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@257 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-12-17 20:05:17 +00:00
Orlie Brewer a9a3e50fb8 Added code to send an ICMP packet of type "Parameter Problem" in
response to an ESP packet with an unknown SPI as per RFC 5202.
A HIP process receiving an ICMP packet of type "Parameter Problem"
for a HIP association will send a HIP address check UPDATE to its
peer for that HIP assoication.  If there is no response, that HIP
association will be deleted.  If the UPDATE is successful, HIP will
ignore future ICMP packets for that HIP assoication for a configurable
amount of time.  The icmp_timeout tag in the hip.conf controls this
behavior.  If not present or set to a value of zero, no ICMP packets
will be sent or responded to.  If set to a value greater than zero,
HIP will send and respond to ICMP packets as described above and
will ignore future ICMP packets for that number of seconds after
a successful address check UPDATE exchange.



git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@245 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-10-11 22:11:47 +00:00
Orlie Brewer 9ed56e90d3 In VPLS (endbox) mode, make the frequency of the heartbeat logging
messages (in seconds) configurable, i.e. the endbox_heartbeat_time
tag in the hip.conf file.  Not present or a value of zero means no
heartbeat logging messages.


git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@244 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-09-12 21:34:28 +00:00
Jeff Ahrenholz 8b477c0b94 remove __UMH__ (user-mode HIP) ifdefs throughout code
this was always defined, as kernel-only mode is no longer supported


git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@224 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-03-19 22:32:32 +00:00
Jeff Ahrenholz 54d876fe37 remove MOBILE_ROUTER ifdefs
mobile router support is now compiled in by default and controlled by the
  -mr command-line option



git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@222 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-03-19 20:58:35 +00:00
Jeff Ahrenholz e998039f1a fix memory leaks in hi_to_xml() due to BN_bn2hex() result not being freed
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@220 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-03-19 18:32:46 +00:00
Orlie Brewer 2396f3454b merge changes from trunk into hipv2 branch (r205:209)
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/branches/hipv2@210 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-03-14 21:31:50 +00:00
Jeff Ahrenholz 0578fd0cc4 added Emacs and vim mode lines to top of source files
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/branches/hipv2@193 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-02-08 16:13:41 +00:00
Jeff Ahrenholz 1688c20640 relicense to MIT license, updating the license text at top of all source files
fill in missing authors and copyright dates (using CVS/SVN history)
use doxygen tags in header block




git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/branches/hipv2@191 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-02-07 23:16:36 +00:00
Jeff Ahrenholz c02d395cff re-style code using GNU style with 2 space indents
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/branches/hipv2@190 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-02-06 22:27:31 +00:00
Orlie Brewer 219fffb05c merge changes from trunk into hipv2 branch (r181:187)
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/branches/hipv2@188 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-02-04 01:39:49 +00:00
Jeff Ahrenholz dcbcdbacc6 changed uncrustify config and re-ran style checker, using sp_before_paren setting
this adds a space before the parenthesis for if/for/switch/while blocks



git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/branches/hipv2@185 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-01-30 19:47:14 +00:00
Jeff Ahrenholz 36c8288829 ran uncrustify to enforce common style
all changes briefly visually inspected, with some tweaking of output

the following files were excluded due to bad results (mostly C++ styling):

src/util/cfg-ifmap/ifmap_thread.h
src/util/cfg-ifmap/ifmap_client.h 
src/include/hip/hip_cfg_ldap.h
src/include/hip/hip_cfg.h
src/include/hip/hip_cfg_files.h
src/include/hip/hip_cfg_map.h
src/include/hip/hip_cfg_api.h



git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/branches/hipv2@183 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-01-27 17:14:04 +00:00
Jeff Ahrenholz 32a40ec5ee merge changes from trunk into hipv2 branch (r164:181)
also fix build with gcc 4.6.1 (Ubuntu 11.10)


git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/branches/hipv2@182 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-01-26 21:07:37 +00:00
Orlie Brewer f71ed7c91b For HIP endbox (HIP_VPLS) mode, allow passing of ARP requests and replies
as well as the ethernet header of all IP packets through the ESP tunnels.
Also, defined an endbox hello message to allow endboxes on a cross-connected
network segment to elect which endbox will forward multicast packets.
These allow for the elimination of the private host map and the need to know
legacy node MAC addresses.


git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@180 4c5cb64f-9889-4596-9799-84b02dc3effa
2012-01-25 02:23:58 +00:00
Jeff Ahrenholz 69cd2ae8fc merge changes from trunk to hipv2 branch (r140:164)
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/branches/hipv2@166 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-12-22 18:38:52 +00:00
Orlie Brewer 69bb60c4b3 Add a configuration option to not save the my_host_identities.xml file.
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@164 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-12-13 01:46:45 +00:00
Jeff Ahrenholz 85f4ad4ff7 added ignored_addr option to hip.conf to help with testing
This ensures the specified address is not selected as the preferred address
or outbound interface address (for mobile router). This allows you to use
the same interface for SSH access to the HIP machine and for HIP traffic, and
across mobility events the ignored_addr will not be used.



git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/branches/hipv2@157 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-11-02 17:52:22 +00:00
Jeff Ahrenholz 03ead9b296 (Boeing r91)
globally replace SMA_CRAWLER with a more general HIP_VPLS tag



git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@118 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-06-13 21:59:31 +00:00
Jeff Ahrenholz 4d6e8cf259 fix bug with unitialized sockaddr_storage when retrieving endbox addresses
from config library (port was non-zero, causing I1 over UDP)



git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@105 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-05-23 21:27:29 +00:00
Orlie Brewer 4dac0c319a Added capability for a secondary master interface to HIP endbox mode.
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@94 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-04-28 23:40:45 +00:00
Orlie Brewer c11c510cf1 Bug fix for HIP endbox configuration.
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@90 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-04-26 17:55:02 +00:00
Orlie Brewer f45cca4c55 Modify endbox files configuration mode to work with a list of RVSes.
A couple of bug fixes for HIP mobile router.


git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@89 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-04-25 22:03:03 +00:00
Orlie Brewer 815f93abbe When changing which endbox is responsible for a legacy device, e.g. when
replacing a broken endbox, the global peer_hi_head data structure was not
getting updated.  As a result, the code for handling hip ACQUIRE and responding
to hip I1 would not progress to building an SA.  This changeset adds the
ability to dynamically change endbox assignments and add additional endboxes to
the overlay after the other endboxes are already up and running.


git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@88 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-04-21 20:36:48 +00:00
Jeff Ahrenholz 0a88063321 fix WIN32 build with recent multiple RVS patch
pthread conditionals are unavailable on WIN32; instead of implementing them,
resolve RVS each hostname serially (as opposed to using a separate thread for
 each name)


git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@73 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-03-28 16:01:53 +00:00
Orlie Brewer f9cf916a5c Added code to the HIP mobiler router to allow for multiple external interfaces.
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@67 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-03-15 21:47:58 +00:00
Orlie Brewer b459136e9a Added patches/openhip-bind directory with patch to bind production
release 9.7.2-P3 to allow the HIP extension to DNS as specified by RFC 5205.

Added contribution from Alexander Kiening to process the HIP extension
to the DNS response and to evaluate the RVS address in the DNS response
and continue with the connection establishment process by sending I1
packets to the RVS.  It will also support a list of RVSes
rather than a single RVS.


git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@63 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-03-02 23:56:45 +00:00
Orlie Brewer 536c19f733 Bugfixes:
hip_xml.c: don't display any addresses if the peer has none
hip_util.c: don't accept LSIs from resolver when performing peer address lookup


git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@58 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-01-13 01:30:54 +00:00
Orlie Brewer c93b35bce0 Updates to DHT resolution in order to keep up to date with the draft revisions.
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@55 4c5cb64f-9889-4596-9799-84b02dc3effa
2011-01-12 22:06:11 +00:00
Jeff Ahrenholz 4bc2762aac Summary of recent hip.conf file changes:
- min_lifetime and max_lifetime become min_reg_lifetime and max_reg_lifetime
  for clarity
- removed lifetime, reg_type_rvs, reg_type
- new disable_udp (default no) for using regular proto 139 HIP and 50 ESP 
  packets for outbound associations, inbound associations will match sender
- new default value of disable_dns=yes disables the DNS thread and possible
  performance hit on the system



git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@23 4c5cb64f-9889-4596-9799-84b02dc3effa
2009-08-13 14:58:05 +00:00
Jeff Ahrenholz 748267b8dc Cleanup of NAT code and implement nat-08 draft for HIP/ESP over UDP that
share the same port 50500.

remove keepalive threads and STUN code (note that this removes all instances
of the Vovida Software License); remove STUN and UDP options and initiate
UDP by default; remove extra udp params to fns and favor addr->sin_port 
instead

remove old CYGWIN ifdefs, no longer supported

move crawler code into usermode/hip_endbox.c for clarity



git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@22 4c5cb64f-9889-4596-9799-84b02dc3effa
2009-08-11 16:58:54 +00:00
Jeff Ahrenholz d9a19c19c9 Dave M. hip-0.6-hipcfgFiles.patch added support for files-based configuration library. Added autoconf support for --enable-sma-crawler=(config) including use of libtool.
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@6 4c5cb64f-9889-4596-9799-84b02dc3effa
2009-07-01 20:38:26 +00:00
Jeff Ahrenholz be95bd61ff Dave M. hip-0.6-noOpenSCdeps.patch remove all OpenSC dependencies and favor OpenSSL's engine interface instead
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@4 4c5cb64f-9889-4596-9799-84b02dc3effa
2009-06-23 19:02:50 +00:00
Jeff Ahrenholz 36136a6684 initial import of hip_release_ver0_6
git-svn-id: svn://svn.code.sf.net/p/openhip/code/hip/trunk@1 4c5cb64f-9889-4596-9799-84b02dc3effa
2009-06-11 15:29:33 +00:00