diff --git a/cups/tls-sspi.c b/cups/tls-sspi.c index 97d5712b67..ea3fb0076e 100644 --- a/cups/tls-sspi.c +++ b/cups/tls-sspi.c @@ -1767,21 +1767,25 @@ http_sspi_find_credentials( #ifdef SP_PROT_TLS1_2_SERVER if (http->mode == _HTTP_MODE_SERVER) { - if (tls_options & _HTTP_TLS_DENY_TLS10) - SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_SERVER | SP_PROT_TLS1_1_SERVER; - else if (tls_options & _HTTP_TLS_ALLOW_SSL3) + if (tls_min_version == _HTTP_TLS_SSL3) SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_SERVER | SP_PROT_TLS1_1_SERVER | SP_PROT_TLS1_0_SERVER | SP_PROT_SSL3_SERVER; - else + else if (tls_min_version == _HTTP_TLS_1_0) SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_SERVER | SP_PROT_TLS1_1_SERVER | SP_PROT_TLS1_0_SERVER; + else if (tls_min_version == _HTTP_TLS_1_1) + SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_SERVER | SP_PROT_TLS1_1_SERVER; + else + SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_SERVER; } else { - if (tls_options & _HTTP_TLS_DENY_TLS10) - SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_CLIENT | SP_PROT_TLS1_1_CLIENT; - else if (tls_options & _HTTP_TLS_ALLOW_SSL3) + if (tls_min_version == _HTTP_TLS_SSL3) SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_CLIENT | SP_PROT_TLS1_1_CLIENT | SP_PROT_TLS1_0_CLIENT | SP_PROT_SSL3_CLIENT; - else + else if (tls_min_version == _HTTP_TLS_1_0) SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_CLIENT | SP_PROT_TLS1_1_CLIENT | SP_PROT_TLS1_0_CLIENT; + else if (tls_min_version == _HTTP_TLS_1_1) + SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_CLIENT | SP_PROT_TLS1_1_CLIENT; + else + SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_CLIENT; } #else diff --git a/vcnet/config.h b/vcnet/config.h index a18f924a18..3507703ea5 100644 --- a/vcnet/config.h +++ b/vcnet/config.h @@ -56,8 +56,8 @@ * and strnicmp() functions... */ -#define strcasecmp stricmp -#define strncasecmp strnicmp +#define strcasecmp _stricmp +#define strncasecmp _strnicmp /* diff --git a/vcnet/cupstestppd.vcxproj b/vcnet/cupstestppd.vcxproj index d10ded7614..0d1bab8a0e 100644 --- a/vcnet/cupstestppd.vcxproj +++ b/vcnet/cupstestppd.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -22,28 +22,29 @@ {6BE0CDD3-4ED7-409C-A80F-19DF73664B1F} cupstestppd Win32Proj + 10.0.15063.0 Application - v140 + v141 Unicode true Application - v140 + v141 Unicode Application - v140 + v141 Unicode true Application - v140 + v141 Unicode diff --git a/vcnet/ippfind.vcxproj b/vcnet/ippfind.vcxproj index 0aaa8044aa..ccbfd1e833 100644 --- a/vcnet/ippfind.vcxproj +++ b/vcnet/ippfind.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -22,28 +22,29 @@ {B484DA0C-62C8-4C32-83B6-CCEB58968B85} ippfind Win32Proj + 10.0.15063.0 Application - v140 + v141 Unicode true Application - v140 + v141 Unicode Application - v140 + v141 Unicode true Application - v140 + v141 Unicode diff --git a/vcnet/ippserver.vcxproj b/vcnet/ippserver.vcxproj index da0afa1706..0b7a840f43 100644 --- a/vcnet/ippserver.vcxproj +++ b/vcnet/ippserver.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -22,28 +22,29 @@ {82A03BC7-0746-4B85-8908-3C7A3FAA58A9} ippserver Win32Proj + 10.0.15063.0 Application - v140 + v141 Unicode true Application - v140 + v141 Unicode Application - v140 + v141 Unicode true Application - v140 + v141 Unicode diff --git a/vcnet/ipptool.vcxproj b/vcnet/ipptool.vcxproj index cc34fbc7d2..8825c74085 100644 --- a/vcnet/ipptool.vcxproj +++ b/vcnet/ipptool.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -22,28 +22,29 @@ {B246D91E-61F2-4433-BFD2-6C2A96FBD4D4} ipptool Win32Proj + 10.0.15063.0 Application - v140 + v141 Unicode true Application - v140 + v141 Unicode Application - v140 + v141 Unicode true Application - v140 + v141 Unicode diff --git a/vcnet/libcups2.vcxproj b/vcnet/libcups2.vcxproj index 5ac35be5dc..b60acc30a7 100644 --- a/vcnet/libcups2.vcxproj +++ b/vcnet/libcups2.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -22,26 +22,27 @@ {CB4AA6F2-3E84-45BE-B505-95CD375E8BE3} libcups2 Win32Proj + 10.0.15063.0 DynamicLibrary - v140 + v141 MultiByte DynamicLibrary - v140 + v141 MultiByte DynamicLibrary - v140 + v141 MultiByte DynamicLibrary - v140 + v141 MultiByte @@ -386,6 +387,7 @@ xcopy /I/Y "$(TargetPath)" + @@ -423,5 +425,12 @@ xcopy /I/Y "$(TargetPath)" + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + \ No newline at end of file diff --git a/vcnet/libcups2.vcxproj.filters b/vcnet/libcups2.vcxproj.filters index 91f3269c2a..7f6f30194b 100644 --- a/vcnet/libcups2.vcxproj.filters +++ b/vcnet/libcups2.vcxproj.filters @@ -167,6 +167,7 @@ Source Files + diff --git a/vcnet/libcupsimage2.vcxproj b/vcnet/libcupsimage2.vcxproj index e9534ff956..7d8b9eebb5 100644 --- a/vcnet/libcupsimage2.vcxproj +++ b/vcnet/libcupsimage2.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -21,26 +21,27 @@ {CB4AA6F2-3E84-45BE-B505-95CD375E1234} Win32Proj + 10.0.15063.0 DynamicLibrary - v140 + v141 MultiByte DynamicLibrary - v140 + v141 MultiByte DynamicLibrary - v140 + v141 MultiByte DynamicLibrary - v140 + v141 MultiByte diff --git a/vcnet/regex.vcxproj b/vcnet/regex.vcxproj index 44ad98ecfd..48a34bb2c7 100644 --- a/vcnet/regex.vcxproj +++ b/vcnet/regex.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -22,28 +22,29 @@ {18950A1B-D37A-40C7-B2DF-C12986C0526E} regex Win32Proj + 10.0.15063.0 DynamicLibrary - v140 + v141 Unicode true DynamicLibrary - v140 + v141 Unicode DynamicLibrary - v140 + v141 Unicode true DynamicLibrary - v140 + v141 Unicode diff --git a/vcnet/testfile.vcxproj b/vcnet/testfile.vcxproj index 9682d939c4..c89e57b7dc 100644 --- a/vcnet/testfile.vcxproj +++ b/vcnet/testfile.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -13,16 +13,17 @@ {CE75FC5F-E0CF-45DC-AD27-84666D3FBA30} Win32Proj + 10.0.15063.0 Application - v140 + v141 MultiByte Application - v140 + v141 MultiByte diff --git a/vcnet/testhttp.vcxproj b/vcnet/testhttp.vcxproj index 3f1e513460..c61a3c72ef 100644 --- a/vcnet/testhttp.vcxproj +++ b/vcnet/testhttp.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -13,16 +13,17 @@ {90B0058C-8393-411F-BD3B-E2C831D4E883} Win32Proj + 10.0.15063.0 Application - v140 + v141 MultiByte Application - v140 + v141 MultiByte