moved definition of proposal_token from proposal.c to proposal_keywords.h

This commit is contained in:
Andreas Steffen 2009-05-18 19:33:15 +02:00
parent 39ded7128c
commit 5908478527
2 changed files with 9 additions and 7 deletions

View 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.
*/

View File

@ -16,8 +16,17 @@
#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);