]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dcrypt: Ignore padding when decoding base64url
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 2 Sep 2019 11:17:50 +0000 (14:17 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 23 Sep 2019 05:47:57 +0000 (08:47 +0300)
src/lib-dcrypt/dcrypt-openssl.c

index 350d0020617eab6e644cf1b8c344aeaa83ec274b..a4b1c73bd56c40b7d8e2fc5c11ee565f26ac89cc 100644 (file)
 /* openssl manual says this is OK */
 #define OID_TEXT_MAX_LEN 80
 
-#define t_base64url_decode_str(x) t_base64url_decode_str(0, (x))
+#define t_base64url_decode_str(x) t_base64url_decode_str(BASE64_DECODE_FLAG_IGNORE_PADDING, (x))
 
 struct dcrypt_context_symmetric {
        pool_t pool;