| #include <openssl/crypto.h> |
| #include <openssl/e_os2.h> |
| #include <openssl/buffer.h> |
| int main(int argc, char *argv[]) |
| char *p, *q = 0, *program; |
| p = strrchr(argv[0], '/'); |
| p = strrchr(argv[0], '\\'); |
| p = strrchr(argv[0], ']'); |
| p = strrchr(argv[0], ':'); |
| program = OPENSSL_strdup("(unknown)"); |
| program = OPENSSL_malloc((q - p) + 1); |
| strncpy(program, p, q - p); |
| for (p = program; *p; p++) |
| if (islower((unsigned char)(*p))) |
| *p = toupper((unsigned char)(*p)); |
| q = strstr(program, "TEST"); |
| if (q > p && q[-1] == '_') |
| printf("No %s support\n", program); |