undo, didn't work
[openssl.git] / crypto / evp / evp_test.c
index 87be695..1fdc997 100644 (file)
@@ -85,39 +85,8 @@ static int convert(unsigned char *s)
     return s-d;
     }
 
-static unsigned char *ustrsep(char **string ,const char *delim)
-    {
-    char isdelim[256];
-    char *token = *string;
-
-    if (**string == 0)
-        return NULL;
-
-    memset(isdelim, 0, 256);
-    isdelim[0] = 1;
-
-    while (*delim)
-       {
-        isdelim[(unsigned char)(*delim)] = 1;
-        delim++;
-       }
-
-    while (!isdelim[(unsigned char)(**string)])
-       {
-       while (!isdelim[(unsigned char)(**string)])
-           {
-           (*string)++;
-           }
-
-        if (**string)
-           {
-            **string = 0;
-           (*string)++;
-           }
-
-       return token;
-       }
-    }
+static unsigned char *ustrsep(char **p,const char *sep)
+    { return (unsigned char *)strsep((char **)p,sep); }
 
 static void test1(const EVP_CIPHER *c,const unsigned char *key,int kn,
                  const unsigned char *iv,int in,