Microsoft KB Archive/251347: Difference between revisions

From BetaArchive Wiki
m (Text replacement - "&" to "&")
m (Text replacement - """ to """)
 
Line 59: Line 59:
   &sInfo, &dwSize))
   &sInfo, &dwSize))
{
{
err << &quot;InternetQueryOption failed -&quot; <<  
err << "InternetQueryOption failed -" <<  
                 GetLastError() << endl;
                 GetLastError() << endl;
}
}

Latest revision as of 12:51, 21 July 2020

Knowledge Base


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