Tobias Brunner
db1dc81329
IKEv1 ATTRIBUTES_NOT_SUPPORTED error notify added.
2012-03-20 17:31:30 +01:00
Martin Willi
dd5c3787dc
Give a hint that decryption failed if payload length invalid
2012-03-20 17:31:30 +01:00
Martin Willi
07b8ec7c00
Cast keymat safely, not based on external input
2012-03-20 17:31:30 +01:00
Tobias Brunner
fd5d6bb08e
Use IPSEC DOI also for ISAKMP SA deletes.
2012-03-20 17:31:29 +01:00
Martin Willi
82b1e5e270
Accept NULL as keymat when generating a message
2012-03-20 17:31:29 +01:00
Martin Willi
15a682f4c2
Separated libcharon/sa directory with ikev1 and ikev2 subfolders
2012-03-20 17:31:26 +01:00
Martin Willi
8833068877
Doxygen fixes
2012-03-20 17:31:25 +01:00
Martin Willi
26b02f50f4
Always use a transform number of 1 when encoding a single transform
2012-03-20 17:31:25 +01:00
Martin Willi
5d0458af0a
Another set of cleanups in message.c
2012-03-20 17:31:25 +01:00
Martin Willi
b9a707e696
Some coding style cleanups
2012-03-20 17:31:25 +01:00
Martin Willi
2f58f6cba1
Fixed notify enum names
2012-03-20 17:31:25 +01:00
Tobias Brunner
b46b56fac1
Log parsed unsigned ints with proper format strings.
2012-03-20 17:31:24 +01:00
Martin Willi
ca26065745
Add some additional IKEv1 notify types
2012-03-20 17:31:23 +01:00
Martin Willi
a4cc071364
Do not trust unprotected INFORMATIONALS, just print that we got one
2012-03-20 17:31:23 +01:00
Martin Willi
3ba15819ed
Remove executable flag from source code files
2012-03-20 17:31:22 +01:00
Martin Willi
51da01a722
Support encoding of Hybrid initiator authentication method
2012-03-20 17:31:21 +01:00
Tobias Brunner
33493a5253
Added method to get encoded version if ID_V1 payload.
2012-03-20 17:31:21 +01:00
Martin Willi
226b0f36c7
Fixed SPI size calculation in DELETE payload
2012-03-20 17:31:19 +01:00
Martin Willi
0acb520758
Support IKEv1 SPIs in IKEv1 delete payload
2012-03-20 17:31:19 +01:00
Martin Willi
9626164e9a
Don't complain when receiving XAuth or Unity configuration attributes
2012-03-20 17:31:16 +01:00
Martin Willi
c9e5998d7f
Interpret attribute format correctly in IKEv1 configuration format
2012-03-20 17:31:16 +01:00
Clavister OpenSource
b8383f1f2d
Encrypt INFORMATIONAL exchange if needed
2012-03-20 17:31:14 +01:00
Clavister OpenSource
9ce5d0c0e8
added functions for getting/setting ISAKMP SPI to notify payload
2012-03-20 17:31:14 +01:00
Martin Willi
9bb4de1d83
En- and decode DH group attribute in quick mode SA payloads
2012-03-20 17:31:14 +01:00
Clavister OpenSource
5d1eeec297
Handle incoming delete messages
2012-03-20 17:31:13 +01:00
Andreas Steffen
6f6380e670
use untoh64 instead of non-portable be64toh
2012-03-20 17:31:13 +01:00
Martin Willi
9ad5b8fa95
Cleanup CERT payload constructors
2012-03-20 17:31:13 +01:00
Martin Willi
df06ef2098
Cleaned up certreq payload for IKEv2/IKEv1 use
2012-03-20 17:31:13 +01:00
Martin Willi
695aff41f5
Encode a single IP traffic selector as ID_IPV?_ADDRESS identity
2012-03-20 17:31:12 +01:00
Martin Willi
caa6f772c8
Added missing break;s when converting ID_IP_ADDRESS types to ts, extracted function
2012-03-20 17:31:12 +01:00
Martin Willi
bd8700f055
Don't use unportable htobe64 macro directly
2012-03-20 17:31:12 +01:00
Clavister OpenSource
7d9269bfce
certificate handling for XAuth responder.
2012-03-20 17:31:11 +01:00
Clavister OpenSource
e102f86e88
Setting transform number in esp proposal.
...
iPhone (racoon) fails quick mode when transform number is 0
2012-03-20 17:31:11 +01:00
Clavister OpenSource
8a9ab2035f
ID_IPV4_ADDR and ID_IPV6_ADDR cases added to get_ts
2012-03-20 17:31:11 +01:00
Clavister OpenSource
07abb470c6
IKEv1: Added basic support for INFORMATIONAL exchange types, and for NOTIFY_V1 messages in the 3rd message in quick_mode.
2012-03-20 17:31:11 +01:00
Tobias Brunner
a0bea44a97
Message rules for IKEv1 NAT-T payloads added.
2012-03-20 17:31:10 +01:00
Tobias Brunner
1e97783c99
Added payloads for IKEv1 NAT-Traversal negotiation.
2012-03-20 17:31:09 +01:00
Tobias Brunner
24ddf03f52
Added an option to create a generator that does not log debug messages.
2012-03-20 17:31:09 +01:00
Tobias Brunner
37639e94fb
Handle invalid IKEv1 hashes more specifically.
2012-03-20 17:31:08 +01:00
Tobias Brunner
29a5e0707e
Handle unsupported IKEv1 exchange types more specifically.
2012-03-20 17:31:08 +01:00
Tobias Brunner
983e852af8
Handle INFORMATIONAL_V1 messages when no keys have been derived yet.
...
This allows to gracefully process the INFORMATIONAL_V1 message rules which
require the payloads to be encrypted and thus the exchange to be
authenticated with a HASH payload. If such an exchange is now initiated
before the ISAKMP_SA is established, the message is simply sent unencrypted
and without HASH payload.
2012-03-20 17:31:08 +01:00
Tobias Brunner
fd24c700fb
Use proper enum types in proposal_substructure.
2012-03-20 17:31:07 +01:00
Martin Willi
b4e815354c
Map auth_class to auth method and IKEv1 proposal attribute
2012-03-20 17:30:53 +01:00
Martin Willi
eeca2af81c
Removed obsolete transform attribute setters
2012-03-20 17:30:53 +01:00
Martin Willi
914ec2dbf2
Implemented IKEv1 attribute encoding in SA payload
2012-03-20 17:30:53 +01:00
Martin Willi
fbebc2a068
Implemented encoding of additional IKEv1 proposal attributes
2012-03-20 17:30:53 +01:00
Martin Willi
e174e0d445
Added not-yet used sa_payload parameters used in IKEv1
2012-03-20 17:30:52 +01:00
Clavister OpenSource
8b30286fcf
IKEv1 XAuth: Add XAUTH authentication types to the enum. Added the ability to switch between hardcoded PSK and XAUTH_INIT_PSK authentications using a flag, default to PSK.
2012-03-20 17:30:52 +01:00
Clavister OpenSource
ece4ed3fcd
IKEv1 ConfigMode: Fix configuration_attribute encoding rules for IKEv1 to use the attribute type instead of the internal only payload type.
2012-03-20 17:30:52 +01:00
Clavister OpenSource
0b6811b4a7
IKEv1 ConfigMode: Fixed cp_payload to use CONFIGURATION_ATTRIBUTE_V1 in all appropriate places, so the parsing is done correctly.
2012-03-20 17:30:51 +01:00