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:
parent
1e55ed5c7d
commit
e12d46ac50
5
CHANGES
5
CHANGES
@ -6,6 +6,11 @@
|
||||
|
||||
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)
|
||||
- Robert Iakobashvili fixed CURLOPT_INTERFACE for IPv6.
|
||||
|
||||
|
@ -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
|
||||
SKIPPED). Features testable here are:
|
||||
|
||||
crypto
|
||||
getrlimit
|
||||
GnuTLS
|
||||
idn
|
||||
|
@ -54,6 +54,9 @@ This IS the second real page!
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP with Digest authorization with stale=true
|
||||
</name>
|
||||
|
@ -53,6 +53,9 @@ This IS the real page!
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP PUT with --anyauth authorization (picking Digest)
|
||||
</name>
|
||||
|
@ -32,6 +32,9 @@ Nice auth sir!
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP with proxy-requiring-Basic to site-requiring-Digest
|
||||
</name>
|
||||
|
@ -46,6 +46,9 @@ Nice auth sir!
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP with proxy-requiring-Digest to site-requiring-Digest
|
||||
</name>
|
||||
|
@ -41,6 +41,9 @@ content for you
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP POST --digest to server not requiring any auth at all
|
||||
</name>
|
||||
|
@ -16,6 +16,9 @@ Content-Type: text/html; charset=iso-8859-1
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP POST --digest to server doing a 302-location response
|
||||
</name>
|
||||
|
@ -53,6 +53,9 @@ daniel
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP proxy CONNECT auth Digest
|
||||
</name>
|
||||
|
@ -41,6 +41,9 @@ ok
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP POST --digest
|
||||
</name>
|
||||
|
@ -51,6 +51,9 @@ ok
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP POST --digest with server doing a 100 before 401 response
|
||||
</name>
|
||||
|
@ -53,6 +53,9 @@ ok
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP POST multipart without Expect: header using proxy anyauth (Digest)
|
||||
</name>
|
||||
|
@ -50,6 +50,9 @@ ok
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP POST multipart with Expect: header using proxy anyauth (Digest)
|
||||
</name>
|
||||
|
@ -51,6 +51,9 @@ This IS the real page!
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP with two Digest authorization headers
|
||||
</name>
|
||||
|
@ -51,6 +51,9 @@ This IS the real page!
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP with Digest authorization
|
||||
</name>
|
||||
|
@ -51,6 +51,9 @@ This is not the real page either
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP with Digest authorization with bad password
|
||||
</name>
|
||||
|
@ -53,6 +53,9 @@ This IS the real page!
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP with Digest *OR* Basic authorization
|
||||
</name>
|
||||
|
@ -55,6 +55,9 @@ This IS the real page!
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
crypto
|
||||
</features>
|
||||
<name>
|
||||
HTTP PUT with Digest authorization
|
||||
</name>
|
||||
|
@ -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_gnutls; # set if libcurl is built with GnuTLS
|
||||
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
|
||||
# on files. Windows for example
|
||||
my @protocols; # array of supported protocols
|
||||
@ -1044,6 +1045,9 @@ sub checksystem {
|
||||
if($feat =~ /SSL/i) {
|
||||
# ssl enabled
|
||||
$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) {
|
||||
# large file support
|
||||
@ -1292,6 +1296,11 @@ sub singletest {
|
||||
next;
|
||||
}
|
||||
}
|
||||
elsif($f eq "crypto") {
|
||||
if($has_crypto) {
|
||||
next;
|
||||
}
|
||||
}
|
||||
# See if this "feature" is in the list of supported protocols
|
||||
elsif (grep /^$f$/, @protocols) {
|
||||
next;
|
||||
|
Loading…
x
Reference in New Issue
Block a user