Hi,
i need some help with WinHTTPSetOption and "remove" option what is set by WinHTTPSetOption.
I need to "unset" this options:
first if i receive an error WINHTTP_CALLBACK_STATUS_SECURE_FAILURE i set this options,
myFeature = SECURITY_FLAG_IGNORE_CERT_CN_INVALID | SECURITY_FLAG_IGNORE_CERT_DATE_INVALID | SECURITY_FLAG_IGNORE_UNKNOWN_CA;
fRet = WinHttpSetOption(m_hRequest, WINHTTP_OPTION_SECURITY_FLAGS, &myFeature, sizeof(myFeature));
now i like to "unset" the same options but all my trys they dont works :(.
This is what i try before:
fRet = WinHttpSetOption( m_hRequest, WINHTTP_OPTION_DISABLE_FEATURE, &myFeature, sizeof(myFeature));
but the options are active until i close my application?
Thanks for any help!
Best regards
mirso_h