Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / libtest / test307.pl
blob7e2687b542563febf2c061f3e61ccd3c2a4b2f1c
1 #!/usr/bin/env perl
2 # Determine if the given curl executable supports the 'openssl' SSL engine
3 if ( $#ARGV != 0 )
5 print "Usage: $0 curl-executable\n";
6 exit 3;
8 if (!open(CURL, "@ARGV[0] -s --engine list|"))
10 print "Can't get SSL engine list\n";
11 exit 2;
13 while( <CURL> )
15 exit 0 if ( /openssl/ );
17 close CURL;
18 print "openssl engine not supported\n";
19 exit 1;