moved definition of proposal_token from proposal.c to proposal_keywords.h
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 18 May 2009 17:33:15 +0000 (19:33 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 19 May 2009 08:02:24 +0000 (10:02 +0200)
src/charon/config/proposal.c
src/libstrongswan/crypto/proposal/proposal_keywords.h

index 5ae565e..877b0f4 100644 (file)
@@ -572,13 +572,6 @@ static void check_proposal(private_proposal_t *this)
        }
 }
 
-struct proposal_token {
-       char             *name;
-       transform_type_t  type;
-       u_int16_t         algorithm;
-       u_int16_t         keysize;  
-};
-
 /**
  * add a algorithm identified by a string to the proposal.
  */
index ca15bb5..86cb7ef 100644 (file)
 #ifndef _PROPOSAL_KEYWORDS_H_
 #define _PROPOSAL_KEYWORDS_H_
 
+#include <crypto/transform.h>
+
 typedef struct proposal_token proposal_token_t;
 
+struct proposal_token {
+    char             *name;
+    transform_type_t  type;
+       u_int16_t         algorithm;
+    u_int16_t         keysize;  
+};
+
 extern const proposal_token_t* proposal_get_token(register const char *str,
                                                                                                  register unsigned int len);