Browse Source

Display a warning message if built against an old version of OpenSSL.

master 0.12
samr7 14 years ago
parent
commit
34b6aa670e
  1. 10
      vanitygen.c

10
vanitygen.c

@ -2274,7 +2274,7 @@ void @@ -2274,7 +2274,7 @@ void
usage(const char *name)
{
printf(
"Vanitygen %s\n"
"Vanitygen %s (" OPENSSL_VERSION_TEXT ")\n"
"Usage: %s [-vqrikNT] [-t <threads>] [-f <filename>|-] [<pattern>...]\n"
"Generates a bitcoin receiving address matching <pattern>, and outputs the\n"
"address and associated private key. The private key may be stored in a safe\n"
@ -2381,6 +2381,14 @@ main(int argc, char **argv) @@ -2381,6 +2381,14 @@ main(int argc, char **argv)
}
}
#if OPENSSL_VERSION_NUMBER < 0x10000000L
/* Complain about older versions of OpenSSL */
if (verbose > 0) {
printf("WARNING: Built with " OPENSSL_VERSION_TEXT "\n"
"WARNING: Use OpenSSL 1.0.0d+ for best performance\n");
}
#endif
if (caseinsensitive && regex)
printf("WARNING: case insensitive mode incompatible with "
"regular expressions\n");

Loading…
Cancel
Save