From 2897ea16a77d8c0d47a2564703fb4759a8f3f45f Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Fri, 26 Oct 2018 09:17:00 +0900 Subject: REST: remove base64 padding fix as this is now fixed in encoder --- src/rest-plugins/oidc_helper.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/rest-plugins/oidc_helper.c') diff --git a/src/rest-plugins/oidc_helper.c b/src/rest-plugins/oidc_helper.c index 1e9e64fec..539d59e08 100644 --- a/src/rest-plugins/oidc_helper.c +++ b/src/rest-plugins/oidc_helper.c @@ -57,12 +57,6 @@ replace_char(char* str, char find, char replace){ //RFC4648 static void fix_base64(char* str) { - char *padding; - //First, remove trailing padding '=' - padding = strtok(str, "="); - while (NULL != padding) - padding = strtok(NULL, "="); - //Replace + with - replace_char (str, '+', '-'); -- cgit v1.2.3