]> git.ipfire.org Git - thirdparty/strongswan.git/commit
charon-tkm: Implement IANA DH Id to TKM Id mapping
authorAdrian-Ken Rueegsegger <ken@codelabs.ch>
Tue, 26 Nov 2013 15:20:24 +0000 (16:20 +0100)
committerReto Buerki <reet@codelabs.ch>
Tue, 3 Dec 2013 10:58:53 +0000 (11:58 +0100)
commit6db7feacf6edef39d1b0837ca4ff5839221c1b7e
tree34a61737c0f836ab58325dd5222ebce5518ad98e
parent9e8a52003af23820061bd37244baa28c2106aace
charon-tkm: Implement IANA DH Id to TKM Id mapping

The TKM Diffie-Hellman plugin now maps IANA DH identifiers to TKM DH
algorithm identifiers. The mapping is specified in the daemon's
'dh_mapping' section in the strongswan.conf file:

dh_mapping {
iana_id1 = tkm_id1
iana_id2 = tkm_id2
iana_id3 = tkm_id3
...
}

Only the mapped IANA IDs are registered as supported DH groups.
src/charon-tkm/src/charon-tkm.c
src/charon-tkm/src/tkm/tkm_diffie_hellman.c
src/charon-tkm/src/tkm/tkm_diffie_hellman.h
src/charon-tkm/tests/diffie_hellman_tests.c
src/charon-tkm/tests/tests.c