summaryrefslogtreecommitdiff
path: root/Sockets/tests/base64.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-04-12 11:38:42 +0000
committerOthmar Gsenger <otti@anytun.org>2008-04-12 11:38:42 +0000
commitfffd213c8cba2135afda493d797c41c10354770e (patch)
treebb5eea1b12871d8c3fed0e687d83be3e504d11b2 /Sockets/tests/base64.cpp
parentsvn cleanup (diff)
big svn cleanup
Diffstat (limited to 'Sockets/tests/base64.cpp')
-rw-r--r--Sockets/tests/base64.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/Sockets/tests/base64.cpp b/Sockets/tests/base64.cpp
deleted file mode 100644
index 722439d..0000000
--- a/Sockets/tests/base64.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#include <stdio.h>
-
-#include "Base64.h"
-
-
-int main(int argc,char *argv[])
-{
- if (argc < 2)
- return -1;
- std::string str;
- std::string str2;
- Base64 b;
- if (!strcmp(argv[1],"-file"))
- {
- if (argc < 3)
- return -2;
- FILE *fil;
- if ((fil = fopen(argv[2],"rt")) != NULL)
- {
- b.encode(fil, str);
- fclose(fil);
- }
- printf("File:\n%s\n--End of File\n",str.c_str());
- b.decode(str, str2);
- printf("Content:\n%s\n--End of Content\n",str2.c_str());
- }
- else
- {
- b.encode(argv[1], strlen(argv[1]), str);
- printf("'%s' ==> '%s'",argv[1], str.c_str());
- b.decode(str, str2);
- printf(" ==> '%s'\n",str2.c_str());
- }
-}