1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-12-24 17:41:01 +03:00

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;
/**