commit | 765db07dfbb68f9eb0bfdd7d0a5a02386580d3a2 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Wed Aug 14 15:00:27 2013 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Aug 20 20:46:04 2013 +0200 |
tree | a676631cb3eff3f0d2851fb724abe2c377ae80dd | |
parent | 3053f5bcb47ee346eadcbba1f07d179776ba6797 [diff] [blame] |
PK: use alloc and free function pointers
diff --git a/include/polarssl/pk.h b/include/polarssl/pk.h index 8626b60..83dc2d0 100644 --- a/include/polarssl/pk.h +++ b/include/polarssl/pk.h
@@ -102,6 +102,13 @@ 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; /**