diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-12 21:56:50 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-12 21:56:50 +0100 |
commit | 33c953317cad9ea06d8a26fe2cc2ed0ed9e29692 (patch) | |
tree | 9e34e8fd215966299d11cf93d5471c76b3a933a7 /libar2_decode_params.c | |
parent | libar2_encode_base64: data may be NULL if buf is NULL (diff) | |
download | libar2-33c953317cad9ea06d8a26fe2cc2ed0ed9e29692.tar.gz libar2-33c953317cad9ea06d8a26fe2cc2ed0ed9e29692.tar.bz2 libar2-33c953317cad9ea06d8a26fe2cc2ed0ed9e29692.tar.xz |
Use params->version == 0 for implicit specification of version 1.0
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libar2_decode_params.c')
-rw-r--r-- | libar2_decode_params.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libar2_decode_params.c b/libar2_decode_params.c index cc90c24..fa59ab2 100644 --- a/libar2_decode_params.c +++ b/libar2_decode_params.c @@ -65,7 +65,7 @@ libar2_decode_params(const char *str, struct libar2_argon2_parameters *params, c if (*str++ != '$') goto einval; } else { - params->version = LIBAR2_ARGON2_VERSION_10; + params->version = 0; /* implicit LIBAR2_ARGON2_VERSION_10 */ } while (*str && *str != '$') { |