Microsoft KB Archive/251347

= BUG: InternetQueryOption with INTERNET_OPTION_SECURITY_CERTIFICATE Returns Incorrect Results =

Article ID: 251347

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.01
 * Microsoft Windows Internet Services (WinInet)

-



This article was previously published under Q251347



SYMPTOMS
InternetQueryOption returns the wrong data when you use INTERNET_OPTION_SECURITY_CERTIFICATE as the second parameter in Internet Explorer 5 and Internet Explorer 5.01.



RESOLUTION
If you use InternetQueryOption with INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT as the parameter, the API will return the correct information: INTERNET_CERTIFICATE_INFO sInfo; dwSize = sizeof(sInfo); if(!InternetQueryOption(hRequest,INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT, &sInfo, &dwSize)) { err << "InternetQueryOption failed -" << GetLastError << endl; }



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Additional query words: InternetQueryOption; INTERNET_OPTION_SECURITY_CERTIFICATE; certificate; secure; SSL

Keywords: kbbug kbpending KB251347

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.