File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,10 +177,10 @@ enum
177177
178178enum
179179{
180- SECURITY_FLAG_IGNORE_UNKNOWN_CA,
181- SECURITY_FLAG_IGNORE_CERT_DATE_INVALID,
182- SECURITY_FLAG_IGNORE_CERT_CN_INVALID,
183- SECURITY_FLAG_IGNORE_CERT_WRONG_USAGE,
180+ SECURITY_FLAG_IGNORE_UNKNOWN_CA = 0x01 ,
181+ SECURITY_FLAG_IGNORE_CERT_DATE_INVALID = 0x02 ,
182+ SECURITY_FLAG_IGNORE_CERT_CN_INVALID = 0x04 ,
183+ SECURITY_FLAG_IGNORE_CERT_WRONG_USAGE = 0x10 ,
184184};
185185enum
186186{
Original file line number Diff line number Diff line change @@ -2763,6 +2763,11 @@ BOOLAPI WinHttpSetOption(
27632763 request->VerifyPeer () = 0L ;
27642764 request->VerifyHost () = 0L ;
27652765 }
2766+ else if (value == SECURITY_FLAG_IGNORE_CERT_CN_INVALID)
2767+ {
2768+ request->VerifyPeer () = 1L ;
2769+ request->VerifyHost () = 0L ;
2770+ }
27662771 else if (!value)
27672772 {
27682773 request->VerifyPeer () = 1L ;
You can’t perform that action at this time.
0 commit comments