diff options
author | markus <> | 2002-09-05 22:45:21 +0000 |
---|---|---|
committer | markus <> | 2002-09-05 22:45:21 +0000 |
commit | 154dc21ed42de3fb550aa3c54823498ea9aa644a (patch) | |
tree | 3df1e6f498b0d69e73af47546f15f51272e4f960 /src/lib/libssl/test | |
parent | e08fb7998d733407336e83a299f140b0c1d2fcd3 (diff) | |
parent | 2a6851ef8adb0e84ff2515493d3704a13c6256b0 (diff) | |
download | openbsd-154dc21ed42de3fb550aa3c54823498ea9aa644a.tar.gz openbsd-154dc21ed42de3fb550aa3c54823498ea9aa644a.tar.bz2 openbsd-154dc21ed42de3fb550aa3c54823498ea9aa644a.zip |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libssl/test')
-rw-r--r-- | src/lib/libssl/test/dummytest.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/lib/libssl/test/dummytest.c b/src/lib/libssl/test/dummytest.c new file mode 100644 index 0000000000..f98f003ef9 --- /dev/null +++ b/src/lib/libssl/test/dummytest.c | |||
@@ -0,0 +1,47 @@ | |||
1 | #include <stdio.h> | ||
2 | #include <stdlib.h> | ||
3 | #include <string.h> | ||
4 | #include <ctype.h> | ||
5 | #include <openssl/e_os2.h> | ||
6 | #include <openssl/buffer.h> | ||
7 | #include <openssl/crypto.h> | ||
8 | |||
9 | int main(int argc, char *argv[]) | ||
10 | { | ||
11 | char *p, *q, *program; | ||
12 | |||
13 | p = strrchr(argv[0], '/'); | ||
14 | if (!p) p = strrchr(argv[0], '\\'); | ||
15 | #ifdef OPENSSL_SYS_VMS | ||
16 | if (!p) p = strrchr(argv[0], ']'); | ||
17 | if (p) q = strrchr(p, '>'); | ||
18 | if (q) p = q; | ||
19 | if (!p) p = strrchr(argv[0], ':'); | ||
20 | q = 0; | ||
21 | #endif | ||
22 | if (p) p++; | ||
23 | if (!p) p = argv[0]; | ||
24 | if (p) q = strchr(p, '.'); | ||
25 | if (p && !q) q = p + strlen(p); | ||
26 | |||
27 | if (!p) | ||
28 | program = BUF_strdup("(unknown)"); | ||
29 | else | ||
30 | { | ||
31 | program = OPENSSL_malloc((q - p) + 1); | ||
32 | strncpy(program, p, q - p); | ||
33 | program[q - p] = '\0'; | ||
34 | } | ||
35 | |||
36 | for(p = program; *p; p++) | ||
37 | if (islower(*p)) *p = toupper(*p); | ||
38 | |||
39 | q = strstr(program, "TEST"); | ||
40 | if (q > p && q[-1] == '_') q--; | ||
41 | *q = '\0'; | ||
42 | |||
43 | printf("No %s support\n", program); | ||
44 | |||
45 | OPENSSL_free(program); | ||
46 | return(0); | ||
47 | } | ||