Martin Willi
|
767966e70b
|
Delete CHILD_SA if installing SA in third message fails
|
2012-03-20 17:31:24 +01:00 |
|
Martin Willi
|
53816600ff
|
Added a quick_delete task flag to enforce delete, even if CHILD_SA not found
|
2012-03-20 17:31:24 +01:00 |
|
Martin Willi
|
429d95fef2
|
Send delete if Main Mode authentication fails as initiator
|
2012-03-20 17:31:24 +01:00 |
|
Martin Willi
|
5762c0efeb
|
Send notifies in all error cases of Main Mode
|
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
|
daf7e6bc36
|
Use (as client) and verify (as server) configured XAuth identities
|
2012-03-20 17:31:23 +01:00 |
|
Martin Willi
|
7a7efbf9d8
|
Added an identity getter to XAuth methods to query the actually used identity
|
2012-03-20 17:31:23 +01:00 |
|
Martin Willi
|
5f6a37eb9b
|
Be a little more verbose about XAuth configs in ipsec statusall
|
2012-03-20 17:31:23 +01:00 |
|
Martin Willi
|
21a4fc832e
|
Pass ipsec.conf xauth_identity option via stroke to charon configurations
|
2012-03-20 17:31:23 +01:00 |
|
Martin Willi
|
10a6a5acff
|
Store Main Mode identity even if XAuth-only is used for authentication
|
2012-03-20 17:31:23 +01:00 |
|
Martin Willi
|
f5e5c5edbd
|
Added an XAUTH identity to use or require for XAuth authentication
|
2012-03-20 17:31:23 +01:00 |
|
Martin Willi
|
bdadc5aee2
|
Check authorization constraints after main mode completed
|
2012-03-20 17:31:23 +01:00 |
|
Martin Willi
|
fd2a491b31
|
Stop checking once a key size constraint is not fulfilled
|
2012-03-20 17:31:23 +01:00 |
|
Martin Willi
|
ac3bc42e63
|
Save authentication info collected during main mode authentication
|
2012-03-20 17:31:23 +01:00 |
|
Martin Willi
|
b24b73b7f3
|
Flush auth configs, if enabled, for both IKEv1 and IKEv2
|
2012-03-20 17:31:23 +01:00 |
|
Martin Willi
|
4ac137135a
|
Fixed return value if SIG payload missing
|
2012-03-20 17:31:22 +01:00 |
|
Martin Willi
|
00d8823242
|
Show auth method of config we are looking for in main mode
|
2012-03-20 17:31:22 +01:00 |
|
Martin Willi
|
7b1e15ac4e
|
Fixed IKEv1 prf+ keymat expansion beyond 320 bits
|
2012-03-20 17:31:22 +01:00 |
|
Martin Willi
|
3ba15819ed
|
Remove executable flag from source code files
|
2012-03-20 17:31:22 +01:00 |
|
Martin Willi
|
91ca35a2d2
|
Removed IKEv1 specific code from child_delete task
|
2012-03-20 17:31:22 +01:00 |
|
Martin Willi
|
c459dae556
|
Use IKEv1 specific tasks to close Quick Mode SAs
|
2012-03-20 17:31:22 +01:00 |
|
Martin Willi
|
5f10938592
|
Added a dedicated IKEv1 task to delete CHILD_SAs
|
2012-03-20 17:31:22 +01:00 |
|
Martin Willi
|
07095794a1
|
Close IKE_SA directly after sending the delete
|
2012-03-20 17:31:22 +01:00 |
|
Martin Willi
|
0f5b6c6831
|
Removed IKEv1 specific code from ike_delete task
|
2012-03-20 17:31:22 +01:00 |
|
Martin Willi
|
5f23be840b
|
Use the IKEv1 specific delete in IKEv1 SAs
|
2012-03-20 17:31:22 +01:00 |
|
Martin Willi
|
8db202f1b0
|
Added a dedicated delete task for IKEv1 IKE_SAs
|
2012-03-20 17:31:21 +01:00 |
|
Martin Willi
|
137c06babf
|
Use a single task_type_t enum name for ME and non-ME variant
|
2012-03-20 17:31:21 +01:00 |
|
Martin Willi
|
7b25135ecf
|
Send certificates and requests when using Hybrid authentication
|
2012-03-20 17:31:21 +01:00 |
|
Martin Willi
|
d1b986eb48
|
Look for an XAuth authentication config both in the first and the second round
|
2012-03-20 17:31:21 +01:00 |
|
Martin Willi
|
d548435a02
|
Added hybrid authentication support to Main Mode
|
2012-03-20 17:31:21 +01:00 |
|
Martin Willi
|
51da01a722
|
Support encoding of Hybrid initiator authentication method
|
2012-03-20 17:31:21 +01:00 |
|
Martin Willi
|
29101ce978
|
Added a IKEv1 hybrid authenticator based on Pubkey/PSK authenticators
|
2012-03-20 17:31:21 +01:00 |
|
Martin Willi
|
0b0191e143
|
Ignore additional TRANSACTION request if we already queued one
|
2012-03-20 17:31:21 +01:00 |
|
Martin Willi
|
fce566a876
|
Keep a history of received response hashes to detect late retransmissions
If we receive an old response and we already sent out the next request,
we must be able to identify that it is not the response to the new
request.
|
2012-03-20 17:31:20 +01:00 |
|
Martin Willi
|
3643179535
|
Narrow down received and configured traffic selector to a common subset
|
2012-03-20 17:31:20 +01:00 |
|
Martin Willi
|
7b34de45c3
|
Don't send a retransmit for a request we never have sent a response
|
2012-03-20 17:31:20 +01:00 |
|
Martin Willi
|
f5ef357791
|
Print unsigned IKEv1 message IDs
|
2012-03-20 17:31:20 +01:00 |
|
Martin Willi
|
9f10b95a3b
|
Added a bunch of well known IKEv1 vendor IDs to database
|
2012-03-20 17:31:20 +01:00 |
|
Martin Willi
|
156cd8827f
|
Use a generic IKEv1 vendor ID database to send and receive vendor IDs
|
2012-03-20 17:31:20 +01:00 |
|
Martin Willi
|
360c3394cf
|
Fixed compiler warning (set but unused variable)
|
2012-03-20 17:31:20 +01:00 |
|
Martin Willi
|
f91b6ac77a
|
Queue a TRANSACTION message for later processing if Main Mode not yet completed
|
2012-03-20 17:31:20 +01:00 |
|
Martin Willi
|
e33510f8a3
|
Fixed leak of shared keys in xauth-generic plugin
|
2012-03-20 17:31:20 +01:00 |
|
Martin Willi
|
45956d15ea
|
Free list after removing the last local credential set, fixes a leak report
|
2012-03-20 17:31:19 +01:00 |
|
Martin Willi
|
226b0f36c7
|
Fixed SPI size calculation in DELETE payload
|
2012-03-20 17:31:19 +01:00 |
|
Martin Willi
|
41fbde4544
|
Reset task manager state when build() completes an exchange (quick mode)
|
2012-03-20 17:31:19 +01:00 |
|
Martin Willi
|
92aa6e0255
|
Include COOKIES in IKEv1 delete payloads
|
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
|
c9fc577a8a
|
Use version specific DELETE payload identifier in ike_delete task
|
2012-03-20 17:31:19 +01:00 |
|
Martin Willi
|
8ef2bae4db
|
Activate DELETE tasks when queued
|
2012-03-20 17:31:19 +01:00 |
|
Martin Willi
|
5dec456b69
|
Fix IKEv1 DELETE subtask creation and processing
|
2012-03-20 17:31:19 +01:00 |
|
Martin Willi
|
10e18713f1
|
Handle DELETE as responder as INFORMATIONAL subtask
|
2012-03-20 17:31:19 +01:00 |
|
Martin Willi
|
46505067c7
|
Close SA immediately after sending an INFORMATIONAL error
|
2012-03-20 17:31:18 +01:00 |
|
Martin Willi
|
97933967a0
|
Moved responder informational handling to task
|
2012-03-20 17:31:18 +01:00 |
|
Martin Willi
|
1477ab157c
|
Remove unused status type
|
2012-03-20 17:31:18 +01:00 |
|
Martin Willi
|
1cc3e92ccc
|
Check if IKEv1 exchange type matches before handling it as response
|
2012-03-20 17:31:18 +01:00 |
|
Martin Willi
|
e7ae90c194
|
Use informational task in quick mode to send notifies
|
2012-03-20 17:31:18 +01:00 |
|
Martin Willi
|
b47052694f
|
Cleaned up notification sending in IKEv1 task manager
|
2012-03-20 17:31:18 +01:00 |
|
Martin Willi
|
accf46129a
|
Use informational taks to send notify errors
|
2012-03-20 17:31:18 +01:00 |
|
Martin Willi
|
f492907667
|
Added a task stub to create and process IKEv1 informational exchanges
|
2012-03-20 17:31:18 +01:00 |
|
Martin Willi
|
590ca1d482
|
Allow IKEv1 tasks to return ALREADY_DONE to flush all active or passive tasks
|
2012-03-20 17:31:18 +01:00 |
|
Martin Willi
|
0f61964ed7
|
Support flushing of single tasks queues in IKEv1 task manager
|
2012-03-20 17:31:18 +01:00 |
|
Martin Willi
|
9862852823
|
Double check if we have a packet before retransmitting it
|
2012-03-20 17:31:18 +01:00 |
|
Martin Willi
|
cc6b03bb5a
|
If no IKEv1 shared key found for hosts, try to find one based on config identities
|
2012-03-20 17:31:17 +01:00 |
|
Martin Willi
|
033dfba01f
|
Log peer cfg enumeration externally for flexibility
|
2012-03-20 17:31:17 +01:00 |
|
Martin Willi
|
d7376e2ab4
|
Accept NULL identities passed to peer config enumeration
|
2012-03-20 17:31:17 +01:00 |
|
Martin Willi
|
0e2cc3fed9
|
Fixed authentication method selection for main mode PSK authentication
|
2012-03-20 17:31:17 +01:00 |
|
Martin Willi
|
ea9e047bc5
|
Use virtual IP to substitute dynamic traffic selectors in quick mode
|
2012-03-20 17:31:17 +01:00 |
|
Martin Willi
|
156b8662a6
|
Queue Mode Config tasks when required
|
2012-03-20 17:31:16 +01:00 |
|
Martin Willi
|
b155084c42
|
Added IKEv1 Mode Config task based on IKEv2 ike_config
|
2012-03-20 17:31:16 +01:00 |
|
Martin Willi
|
21c916886d
|
Added missing XAuth auth_class enum name
|
2012-03-20 17:31:16 +01:00 |
|
Martin Willi
|
a22b9e4f33
|
Reject quick modes if IKE_SA not yet established
|
2012-03-20 17:31:16 +01:00 |
|
Martin Willi
|
67a753b95c
|
Use a common function to set IKE_SA to established
|
2012-03-20 17:31:16 +01:00 |
|
Martin Willi
|
f223a28ae7
|
Be less verbose if plugin dependecy not satisfied
|
2012-03-20 17:31:16 +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 |
|
Martin Willi
|
9f43868a01
|
Implemented responder part of XAUTH task
|
2012-03-20 17:31:16 +01:00 |
|
Martin Willi
|
d192cc9dc8
|
Implemented initiator part of xauth task
|
2012-03-20 17:31:16 +01:00 |
|
Martin Willi
|
081b6dd3ed
|
Ask for a username/password in xauth-null as XAUTH initiator
|
2012-03-20 17:31:16 +01:00 |
|
Martin Willi
|
59ee898326
|
Get first XAuth backend if none configured
|
2012-03-20 17:31:16 +01:00 |
|
Martin Willi
|
cbda13f6fe
|
Accept a xauth backend name appended to left/rightauth
|
2012-03-20 17:31:15 +01:00 |
|
Martin Willi
|
6ebcbc654c
|
Added auth_cfg option to select XAUTH backend to use
|
2012-03-20 17:31:15 +01:00 |
|
Martin Willi
|
89afbe58bb
|
Remove unused task swap_initiator method
|
2012-03-20 17:31:15 +01:00 |
|
Martin Willi
|
1fe6cdfac2
|
Use a string to identify xauth backends, no need for integer types
|
2012-03-20 17:31:15 +01:00 |
|
Martin Willi
|
4e73f85b81
|
Remove xauth_authenticator, we handle it in the task
|
2012-03-20 17:31:15 +01:00 |
|
Martin Willi
|
96c9159d96
|
Use a second authentication config to configure XAUTH authentication
|
2012-03-20 17:31:15 +01:00 |
|
Martin Willi
|
69adeb5bf2
|
Replace xauth_request task with a new stub where we reimplement it
|
2012-03-20 17:31:15 +01:00 |
|
Martin Willi
|
c6d0098c1b
|
Added missing auth_method_t enum names
|
2012-03-20 17:31:15 +01:00 |
|
Martin Willi
|
a0eea1a7ac
|
Defined hybrid IKEv1 authentication methods
|
2012-03-20 17:31:15 +01:00 |
|
Martin Willi
|
1755ac0617
|
Cleaned up quick mode notify processing
|
2012-03-20 17:31:14 +01:00 |
|
Martin Willi
|
5adf855e3d
|
Add support for KE payloads in IKEv1 quick mode (PFS)
|
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 |
|
Martin Willi
|
fb8bc6a764
|
Use authenticators in IKEv1 main mode
|
2012-03-20 17:31:14 +01:00 |
|
Martin Willi
|
76fe7de3fd
|
Added a factory function for IKEv1 authenticators
|
2012-03-20 17:31:14 +01:00 |
|
Martin Willi
|
7c27c914d4
|
Implemented IKEv1 pubkey SIG payload processing in an authenticator
|
2012-03-20 17:31:14 +01:00 |
|
Martin Willi
|
2792587875
|
Implemented IKEv1 PSK HASH payload processing in separated authenticator
|
2012-03-20 17:31:14 +01:00 |
|
Martin Willi
|
c64a4b4f8e
|
Implemented post-authentication certificate handling for IKEv1
|
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
|
0bcdb8e571
|
Implemented pre-authentication certificate handling for IKEv1
|
2012-03-20 17:31:13 +01:00 |
|
Martin Willi
|
8c33850615
|
Added task types for IKEv1 certificate handling
|
2012-03-20 17:31:13 +01:00 |
|