aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/ike_alg.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-05-24 11:26:00 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-05-24 11:26:00 +0200
commit52ccea657bcf98dbabaf0d5cba607a8cfab25797 (patch)
tree4dc8d321a2449300e7cd6305d3b27c11d4f21ee3 /src/pluto/ike_alg.h
parent770b4089029f865e82c00560b7a1c69879ead173 (diff)
downloadstrongswan-52ccea657bcf98dbabaf0d5cba607a8cfab25797.tar.bz2
strongswan-52ccea657bcf98dbabaf0d5cba607a8cfab25797.tar.xz
use the Diffie-Hellman functionality of libstrongswan
Diffstat (limited to 'src/pluto/ike_alg.h')
-rw-r--r--src/pluto/ike_alg.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/pluto/ike_alg.h b/src/pluto/ike_alg.h
index 14647e20c..9a2ad92e0 100644
--- a/src/pluto/ike_alg.h
+++ b/src/pluto/ike_alg.h
@@ -75,17 +75,24 @@ struct hash_desc {
const hmac_testvector_t *hmac_testvectors;
};
+struct dh_desc {
+ u_int16_t algo_type;
+ u_int16_t algo_id;
+ struct ike_alg *algo_next;
+
+ size_t modulus_size;
+};
+
#define IKE_ALG_ENCRYPT 0
#define IKE_ALG_HASH 1
-#define IKE_ALG_MAX IKE_ALG_HASH
+#define IKE_ALG_DH_GROUP 2
+#define IKE_ALG_MAX IKE_ALG_DH_GROUP
extern int ike_alg_add(struct ike_alg *a);
extern struct hash_desc *ike_alg_get_hasher(u_int alg);
-extern struct encrypt_desc *ike_alg_get_encrypter(u_int alg);
-extern bool ike_alg_enc_present(u_int ealg);
-extern bool ike_alg_hash_present(u_int halg);
-extern const struct oakley_group_desc* ike_alg_pfsgroup(struct connection *c
- , lset_t policy);
+extern struct encrypt_desc *ike_alg_get_crypter(u_int alg);
+extern struct dh_desc *ike_alg_get_dh_group(u_int alg);
+extern const struct dh_desc* ike_alg_pfsgroup(struct connection *c, lset_t policy);
extern struct db_context * ike_alg_db_new(struct alg_info_ike *ai, lset_t policy);
extern void ike_alg_list(void);
extern void ike_alg_show_connection(struct connection *c, const char *instance);