aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_free_context.c
blob: b2a62c948bf5da15c809b6e399a40f35db22e061 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST


void
librecrypt_free_context(LIBRECRYPT_CONTEXT *ctx)
{
	if (!ctx)
		return;
	librecrypt_wipe(ctx, sizeof(*ctx));
	free(ctx);
}


#else


CONST int
main(void)
{
	/* Tested in other files */
	librecrypt_free_context(NULL);
	return 0;
}


#endif