PK: use alloc and free function pointers

This commit is contained in:
Manuel Pégourié-Gonnard 2013-08-14 15:00:27 +02:00
parent 3053f5bcb4
commit 765db07dfb
3 changed files with 101 additions and 54 deletions

View file

@ -102,6 +102,13 @@ typedef struct
int (*verify_func)( void *ctx,
const unsigned char *hash, const md_info_t *md_info,
const unsigned char *sig, size_t sig_len );
/** Allocate a new context */
void * (*ctx_alloc_func)( void );
/** Free the given context */
void (*ctx_free_func)( void *ctx );
} pk_info_t;
/**