diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-05-02 16:40:01 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-05-02 16:40:01 (GMT) |
commit | 0a2b8b8e0bc2e91a9f10659b30e2e4f5b79ce692 (patch) | |
tree | 3d0871d05cfd11f60b86829d2d93704034dad24e /openssl/test/dummytest.c | |
parent | e9abe0dba896d2b0fc22301588336e89ff246ba7 (diff) | |
download | blt-0a2b8b8e0bc2e91a9f10659b30e2e4f5b79ce692.zip blt-0a2b8b8e0bc2e91a9f10659b30e2e4f5b79ce692.tar.gz blt-0a2b8b8e0bc2e91a9f10659b30e2e4f5b79ce692.tar.bz2 |
reinstall
Diffstat (limited to 'openssl/test/dummytest.c')
-rw-r--r-- | openssl/test/dummytest.c | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/openssl/test/dummytest.c b/openssl/test/dummytest.c deleted file mode 100644 index 554acc2..0000000 --- a/openssl/test/dummytest.c +++ /dev/null @@ -1,57 +0,0 @@ -#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 = 0, *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((unsigned char)(*p))) - *p = toupper((unsigned char)(*p)); - - q = strstr(program, "TEST"); - if (q > p && q[-1] == '_') - q--; - *q = '\0'; - - printf("No %s support\n", program); - - OPENSSL_free(program); - return (0); -} |