- changed group_number type to diffie_hellman_group_t

This commit is contained in:
Martin Willi
2005-11-18 14:40:15 +00:00
parent 7b3d138919
commit bb9d77ce22
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -558,7 +558,7 @@ static status_t destroy(private_diffie_hellman_t *this)
/* /*
* Described in header * 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); private_diffie_hellman_t *this = allocator_alloc_thing(private_diffie_hellman_t);
if ((this == NULL)) if ((this == NULL))
+2 -1
View File
@@ -24,6 +24,7 @@
#define DIFFIE_HELLMAN_H_ #define DIFFIE_HELLMAN_H_
#include "../types.h" #include "../types.h"
#include "../payloads/transform_substructure.h"
/** /**
* Object representing a diffie hellman exchange * Object representing a diffie hellman exchange
@@ -107,6 +108,6 @@ struct diffie_hellman_s {
* - diffie_hellman_t if successfully * - diffie_hellman_t if successfully
* - NULL if out of ressources or dh_group not supported * - 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_*/ #endif /*DIFFIE_HELLMAN_H_*/