diff options
| author | Mattias Andrée <m@maandree.se> | 2026-05-21 17:12:20 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-05-21 17:12:20 +0200 |
| commit | b29f4153e83623f24bebe99976e1368ef31bb008 (patch) | |
| tree | 65473709df1194a2f9277dc5fb47add5e41430c0 /librecrypt_free_context.c | |
| parent | Add (so far untested and undocument) support for pepper (diff) | |
| download | librecrypt-b29f4153e83623f24bebe99976e1368ef31bb008.tar.gz librecrypt-b29f4153e83623f24bebe99976e1368ef31bb008.tar.bz2 librecrypt-b29f4153e83623f24bebe99976e1368ef31bb008.tar.xz | |
Add support for custom hash functions
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_free_context.c')
| -rw-r--r-- | librecrypt_free_context.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/librecrypt_free_context.c b/librecrypt_free_context.c index 481282f..b2a62c9 100644 --- a/librecrypt_free_context.c +++ b/librecrypt_free_context.c @@ -6,6 +6,8 @@ void librecrypt_free_context(LIBRECRYPT_CONTEXT *ctx) { + if (!ctx) + return; librecrypt_wipe(ctx, sizeof(*ctx)); free(ctx); } @@ -14,15 +16,11 @@ librecrypt_free_context(LIBRECRYPT_CONTEXT *ctx) #else -int +CONST int main(void) { - SET_UP_ALARM(); - INIT_RESOURCE_TEST(); - - /* TODO test */ - - STOP_RESOURCE_TEST(); + /* Tested in other files */ + librecrypt_free_context(NULL); return 0; } |
