moved typedefs to beginning of files to solve some include problems

splitted authenticator to have a separate implementation for each auth_method_t
using va_copy to clone va_lists, should fix proplems on AMD64
some other cleanups
This commit is contained in:
Martin Willi
2006-10-30 14:07:05 +00:00
parent 09cb5472bc
commit 382b481795
119 changed files with 1196 additions and 1120 deletions
@@ -24,11 +24,11 @@
#ifndef HMAC_SIGNER_H_
#define HMAC_SIGNER_H_
typedef struct hmac_signer_t hmac_signer_t;
#include <crypto/signers/signer.h>
#include <crypto/hashers/hasher.h>
typedef struct hmac_signer_t hmac_signer_t;
/**
* @brief Implementation of signer_t interface using the
* HMAC algorithm in combination with either MD5 or SHA1.
+6 -8
View File
@@ -24,11 +24,12 @@
#ifndef SIGNER_H_
#define SIGNER_H_
typedef enum integrity_algorithm_t integrity_algorithm_t;
typedef struct signer_t signer_t;
#include <types.h>
#include <definitions.h>
typedef enum integrity_algorithm_t integrity_algorithm_t;
/**
* @brief Integrity algorithm, as in IKEv2 RFC 3.3.2.
*
@@ -54,18 +55,15 @@ enum integrity_algorithm_t {
*/
extern enum_name_t *integrity_algorithm_names;
typedef struct signer_t signer_t;
/**
* @brief Generig interface for a symmetric signature algorithm.
*
*
* @b Constructors:
* - signer_create()
* - hmac_signer_create()
*
*
* @todo Implement more integrity algorithms
*
*
* @ingroup signers
*/
struct signer_t {