aboutsummaryrefslogblamecommitdiffstats
path: root/libar2_version_to_string_proper.c
blob: 109b135d28866ba7ea2b616b5c9c50d9e59e2a20 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                   
/* See LICENSE file for copyright and license details. */
#include "common.h"


const char *
libar2_version_to_string_proper(enum libar2_argon2_version version)
{
	if (version == LIBAR2_ARGON2_VERSION_10) {
		return "1.0";

	} else if (version == LIBAR2_ARGON2_VERSION_13) {
		return "1.3";

	} else {
		errno = EINVAL;
		return NULL;
	}
}