Microsoft KB Archive/251347

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 12:51, 21 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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