Use proper enum types in proposal_substructure.
authorTobias Brunner <tobias@strongswan.org>
Fri, 25 Nov 2011 10:25:45 +0000 (11:25 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 20 Mar 2012 16:31:07 +0000 (17:31 +0100)
src/libcharon/encoding/payloads/proposal_substructure.c

index 7f075f1..f758d1f 100644 (file)
@@ -813,7 +813,7 @@ METHOD(proposal_substructure_t, get_lifetime, u_int32_t,
        private_proposal_substructure_t *this)
 {
        transform_substructure_t *transform;
        private_proposal_substructure_t *this)
 {
        transform_substructure_t *transform;
-       transform_attribute_type_t type;
+       ikev1_life_type_t type;
 
        switch (this->protocol_id)
        {
 
        switch (this->protocol_id)
        {
@@ -845,7 +845,7 @@ METHOD(proposal_substructure_t, get_lifebytes, u_int64_t,
        private_proposal_substructure_t *this)
 {
        transform_substructure_t *transform;
        private_proposal_substructure_t *this)
 {
        transform_substructure_t *transform;
-       transform_attribute_type_t type;
+       ikev1_life_type_t type;
 
        switch (this->protocol_id)
        {
 
        switch (this->protocol_id)
        {