REST: remove base64 padding fix as this is now fixed in encoder
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Fri, 26 Oct 2018 00:17:00 +0000 (09:17 +0900)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Fri, 26 Oct 2018 00:17:00 +0000 (09:17 +0900)
src/rest-plugins/oidc_helper.c

index 1e9e64fec0241a88bc89ed1b3f7e7f7358dfd4bf..539d59e08276212f3d8bca2e98cffa85ffbe6936 100644 (file)
@@ -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, '+', '-');