Skip to content

Commit

Permalink
Display a warning message if built against an old version of OpenSSL.
Browse files Browse the repository at this point in the history
  • Loading branch information
samr7 committed Jul 13, 2011
1 parent d8b7676 commit 34b6aa6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vanitygen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 34b6aa6

Please sign in to comment.