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:
@@ -24,12 +24,12 @@
|
||||
#ifndef PRF_HMAC_H_
|
||||
#define PRF_HMAC_H_
|
||||
|
||||
typedef struct hmac_prf_t hmac_prf_t;
|
||||
|
||||
#include <types.h>
|
||||
#include <crypto/prfs/prf.h>
|
||||
#include <crypto/hashers/hasher.h>
|
||||
|
||||
typedef struct hmac_prf_t hmac_prf_t;
|
||||
|
||||
/**
|
||||
* @brief Implementation of prf_t interface using the
|
||||
* HMAC algorithm.
|
||||
|
||||
@@ -24,9 +24,10 @@
|
||||
#ifndef PRF_H_
|
||||
#define PRF_H_
|
||||
|
||||
#include <types.h>
|
||||
|
||||
typedef enum pseudo_random_function_t pseudo_random_function_t;
|
||||
typedef struct prf_t prf_t;
|
||||
|
||||
#include <types.h>
|
||||
|
||||
/**
|
||||
* @brief Pseudo random function, as in IKEv2 RFC 3.3.2.
|
||||
@@ -52,9 +53,6 @@ enum pseudo_random_function_t {
|
||||
*/
|
||||
extern enum_name_t *pseudo_random_function_names;
|
||||
|
||||
|
||||
typedef struct prf_t prf_t;
|
||||
|
||||
/**
|
||||
* @brief Generic interface for pseudo-random-functions.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user