Updated the test harness to add a new "crypto" feature check and updated the

appropriate test case to use it.  For now, this is treated the same as the
"SSL" feature because curl doesn't list it separately.
This commit is contained in:
Dan Fandrich 2007-03-09 23:39:42 +00:00
parent 1e55ed5c7d
commit e12d46ac50
19 changed files with 63 additions and 0 deletions

View File

@ -6,6 +6,11 @@
Changelog Changelog
Dan F (9 March 2007)
- Updated the test harness to add a new "crypto" feature check and updated the
appropriate test case to use it. For now, this is treated the same as the
"SSL" feature because curl doesn't list it separately.
Daniel (9 March 2007) Daniel (9 March 2007)
- Robert Iakobashvili fixed CURLOPT_INTERFACE for IPv6. - Robert Iakobashvili fixed CURLOPT_INTERFACE for IPv6.

View File

@ -135,6 +135,7 @@ A list of features that MUST be present in the client/library for this test to
be able to run (if these features are not present, the test will be be able to run (if these features are not present, the test will be
SKIPPED). Features testable here are: SKIPPED). Features testable here are:
crypto
getrlimit getrlimit
GnuTLS GnuTLS
idn idn

View File

@ -54,6 +54,9 @@ This IS the second real page!
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP with Digest authorization with stale=true HTTP with Digest authorization with stale=true
</name> </name>

View File

@ -53,6 +53,9 @@ This IS the real page!
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP PUT with --anyauth authorization (picking Digest) HTTP PUT with --anyauth authorization (picking Digest)
</name> </name>

View File

@ -32,6 +32,9 @@ Nice auth sir!
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP with proxy-requiring-Basic to site-requiring-Digest HTTP with proxy-requiring-Basic to site-requiring-Digest
</name> </name>

View File

@ -46,6 +46,9 @@ Nice auth sir!
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP with proxy-requiring-Digest to site-requiring-Digest HTTP with proxy-requiring-Digest to site-requiring-Digest
</name> </name>

View File

@ -41,6 +41,9 @@ content for you
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP POST --digest to server not requiring any auth at all HTTP POST --digest to server not requiring any auth at all
</name> </name>

View File

@ -16,6 +16,9 @@ Content-Type: text/html; charset=iso-8859-1
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP POST --digest to server doing a 302-location response HTTP POST --digest to server doing a 302-location response
</name> </name>

View File

@ -53,6 +53,9 @@ daniel
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP proxy CONNECT auth Digest HTTP proxy CONNECT auth Digest
</name> </name>

View File

@ -41,6 +41,9 @@ ok
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP POST --digest HTTP POST --digest
</name> </name>

View File

@ -51,6 +51,9 @@ ok
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP POST --digest with server doing a 100 before 401 response HTTP POST --digest with server doing a 100 before 401 response
</name> </name>

View File

@ -53,6 +53,9 @@ ok
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP POST multipart without Expect: header using proxy anyauth (Digest) HTTP POST multipart without Expect: header using proxy anyauth (Digest)
</name> </name>

View File

@ -50,6 +50,9 @@ ok
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP POST multipart with Expect: header using proxy anyauth (Digest) HTTP POST multipart with Expect: header using proxy anyauth (Digest)
</name> </name>

View File

@ -51,6 +51,9 @@ This IS the real page!
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP with two Digest authorization headers HTTP with two Digest authorization headers
</name> </name>

View File

@ -51,6 +51,9 @@ This IS the real page!
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP with Digest authorization HTTP with Digest authorization
</name> </name>

View File

@ -51,6 +51,9 @@ This is not the real page either
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP with Digest authorization with bad password HTTP with Digest authorization with bad password
</name> </name>

View File

@ -53,6 +53,9 @@ This IS the real page!
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP with Digest *OR* Basic authorization HTTP with Digest *OR* Basic authorization
</name> </name>

View File

@ -55,6 +55,9 @@ This IS the real page!
<server> <server>
http http
</server> </server>
<features>
crypto
</features>
<name> <name>
HTTP PUT with Digest authorization HTTP PUT with Digest authorization
</name> </name>

View File

@ -144,6 +144,7 @@ my $has_ntlm; # set if libcurl is built with NTLM support
my $has_openssl; # set if libcurl is built with OpenSSL my $has_openssl; # set if libcurl is built with OpenSSL
my $has_gnutls; # set if libcurl is built with GnuTLS my $has_gnutls; # set if libcurl is built with GnuTLS
my $has_nss; # set if libcurl is built with NSS my $has_nss; # set if libcurl is built with NSS
my $has_crypto; # set if libcurl is built with cryptographic support
my $has_textaware; # set if running on a system that has a text mode concept my $has_textaware; # set if running on a system that has a text mode concept
# on files. Windows for example # on files. Windows for example
my @protocols; # array of supported protocols my @protocols; # array of supported protocols
@ -1044,6 +1045,9 @@ sub checksystem {
if($feat =~ /SSL/i) { if($feat =~ /SSL/i) {
# ssl enabled # ssl enabled
$ssl_version=1; $ssl_version=1;
# curl doesn't list cryptographic support separately, so treat
# it the same as SSL for the time being
$has_crypto=1;
} }
if($feat =~ /Largefile/i) { if($feat =~ /Largefile/i) {
# large file support # large file support
@ -1292,6 +1296,11 @@ sub singletest {
next; next;
} }
} }
elsif($f eq "crypto") {
if($has_crypto) {
next;
}
}
# See if this "feature" is in the list of supported protocols # See if this "feature" is in the list of supported protocols
elsif (grep /^$f$/, @protocols) { elsif (grep /^$f$/, @protocols) {
next; next;