aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/transforms
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-11-18 14:40:15 +0000
committerMartin Willi <martin@strongswan.org>2005-11-18 14:40:15 +0000
commitbb9d77ce22908b3757e09efd0e6acc47122bfaef (patch)
treef25a3dfde0b7a365cb18910c5ffca528f97f9158 /Source/charon/transforms
parent7b3d13891920cd935a876019f3220cc598fb4486 (diff)
downloadstrongswan-bb9d77ce22908b3757e09efd0e6acc47122bfaef.tar.bz2
strongswan-bb9d77ce22908b3757e09efd0e6acc47122bfaef.tar.xz
- changed group_number type to diffie_hellman_group_t
Diffstat (limited to 'Source/charon/transforms')
-rw-r--r--Source/charon/transforms/diffie_hellman.c2
-rw-r--r--Source/charon/transforms/diffie_hellman.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/Source/charon/transforms/diffie_hellman.c b/Source/charon/transforms/diffie_hellman.c
index 50202e2ce..5ff069000 100644
--- a/Source/charon/transforms/diffie_hellman.c
+++ b/Source/charon/transforms/diffie_hellman.c
@@ -558,7 +558,7 @@ static status_t destroy(private_diffie_hellman_t *this)
/*
* Described in header
*/
-diffie_hellman_t *diffie_hellman_create(u_int16_t dh_group_number)
+diffie_hellman_t *diffie_hellman_create(diffie_hellman_group_t dh_group_number)
{
private_diffie_hellman_t *this = allocator_alloc_thing(private_diffie_hellman_t);
if ((this == NULL))
diff --git a/Source/charon/transforms/diffie_hellman.h b/Source/charon/transforms/diffie_hellman.h
index 8313a140a..f0fb58972 100644
--- a/Source/charon/transforms/diffie_hellman.h
+++ b/Source/charon/transforms/diffie_hellman.h
@@ -24,6 +24,7 @@
#define DIFFIE_HELLMAN_H_
#include "../types.h"
+#include "../payloads/transform_substructure.h"
/**
* Object representing a diffie hellman exchange
@@ -107,6 +108,6 @@ struct diffie_hellman_s {
* - diffie_hellman_t if successfully
* - NULL if out of ressources or dh_group not supported
*/
-diffie_hellman_t *diffie_hellman_create(u_int16_t dh_group_number);
+diffie_hellman_t *diffie_hellman_create(diffie_hellman_group_t dh_group_number);
#endif /*DIFFIE_HELLMAN_H_*/