BUG: InternetQueryOption with INTERNET_OPTION_SECURITY_CERTIFICATE Returns Incorrect Results

ID: Q251347


The information in this article applies to:
  • Microsoft Internet Explorer (Programming) versions 5, 5.01


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 this to be a bug in the Microsoft products listed at the beginning of this article.

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

Keywords : kbWinInet kbIE500bug kbDSupport kbIE501bug
Version : WINDOWS:5,5.01
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: January 27, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.