summaryrefslogtreecommitdiffstats
path: root/lib/libssl/test
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2002-09-05 22:33:18 +0000
committermarkus <markus@openbsd.org>2002-09-05 22:33:18 +0000
commit6578914fed88fb905cb1cc0652774ce825c4d675 (patch)
tree1443d61ae65c7ca6a02982cb4470b397f6cc037f /lib/libssl/test
parentmerge with 0.9.7-beta1 (diff)
downloadwireguard-openbsd-6578914fed88fb905cb1cc0652774ce825c4d675.tar.xz
wireguard-openbsd-6578914fed88fb905cb1cc0652774ce825c4d675.zip
import openssl-0.9.7-beta3
Diffstat (limited to 'lib/libssl/test')
-rw-r--r--lib/libssl/test/dummytest.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/lib/libssl/test/dummytest.c b/lib/libssl/test/dummytest.c
new file mode 100644
index 00000000000..f98f003ef98
--- /dev/null
+++ b/lib/libssl/test/dummytest.c
@@ -0,0 +1,47 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <ctype.h>
+#include <openssl/e_os2.h>
+#include <openssl/buffer.h>
+#include <openssl/crypto.h>
+
+int main(int argc, char *argv[])
+ {
+ char *p, *q, *program;
+
+ p = strrchr(argv[0], '/');
+ if (!p) p = strrchr(argv[0], '\\');
+#ifdef OPENSSL_SYS_VMS
+ if (!p) p = strrchr(argv[0], ']');
+ if (p) q = strrchr(p, '>');
+ if (q) p = q;
+ if (!p) p = strrchr(argv[0], ':');
+ q = 0;
+#endif
+ if (p) p++;
+ if (!p) p = argv[0];
+ if (p) q = strchr(p, '.');
+ if (p && !q) q = p + strlen(p);
+
+ if (!p)
+ program = BUF_strdup("(unknown)");
+ else
+ {
+ program = OPENSSL_malloc((q - p) + 1);
+ strncpy(program, p, q - p);
+ program[q - p] = '\0';
+ }
+
+ for(p = program; *p; p++)
+ if (islower(*p)) *p = toupper(*p);
+
+ q = strstr(program, "TEST");
+ if (q > p && q[-1] == '_') q--;
+ *q = '\0';
+
+ printf("No %s support\n", program);
+
+ OPENSSL_free(program);
+ return(0);
+ }