Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

WinHTTPSetOption and "remove" option issue?

$
0
0

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


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>