Fix *_ctx_new and *_ctx_free implementations
They both will only alloc and free the internal *_ctx structs. Get rid of the void * argument for new and only pass arg to *_free instead of the whole lc_*_ctx struct.
This commit is contained in:
parent
0a47025c19
commit
f511cddf0d
6 changed files with 17 additions and 18 deletions
2
auth.h
2
auth.h
|
@ -25,7 +25,7 @@ struct lc_auth_impl {
|
|||
int (*auth)(const uint8_t *, size_t, uint8_t *, size_t *,
|
||||
const uint8_t *, size_t);
|
||||
|
||||
void *(*ctx_new)(const void *);
|
||||
void *(*ctx_new)(void);
|
||||
void (*ctx_free)(void *);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue