[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cryptoapi
Subject:    Re: structure CERT_CHAIN_CONTEXT
From:       Daniel Sie <dsie () WINDOWS ! MICROSOFT ! COM>
Date:       2002-07-29 21:34:45
[Download RAW message or body]


The ones you listed below are WinXP and above only. You should always
check cbSize for any structure that has the size field.

Will inform the MSDN to be updated.

Thank you for bringing this up.

-----Original Message-----
From: yukari miyazawa [mailto:myukari@ISS.ISL.MELCO.CO.JP]=20
Sent: Thursday, July 25, 2002 12:42 AM
To: CryptoAPI@DISCUSS.MICROSOFT.COM
Subject: structure CERT_CHAIN_CONTEXT


 Hi all.

 I am programming certification path validation tool using the
CertGetCertificateChain().  And I would like to execute the tool in
Windows 2000 and Windows XP.

 CertGetCertificateChain() returns a structure CERT_CHAIN_CONTEXT as a
result.  When I verify the same certificate using
CertGetCertificateChain(), the results are  different in Windows 2000
and Windows XP.

 When I refer to the following members of a structure
CERT_CHAIN_CONTEXT,  in Windows XP, I can obtain to the valid value.

     - pChainContext->pCertSimpleChain->rgpElement->pIssuanceUsage
     - pChainContext->pCertSimpleChain->rgpElement->pApplicationUsage
     -
pChainContext->pCertSimpleChain->rgpElement->pwszExtendedErrorInfo

 However, in Windows 2000, the above members contained the invalid
addresses.

 According to requirements defined in MSDN,
 It is written that CertGetCertificateChain() can be executed by Windows
NT 4.0 SP4  and later, and that structure CERT_CHAIN_CONTEXT can be
referred to the value by  Windows 2000 and later.

 So I think that I can get the same result in Windows 2000 and Windows
XP.

 I also found that the values of
     pChainContext->pCertSimpleChain->rgpElement->cbsize
 are different in each OS, that is, Windows 2000 and Windows XP.

 Are there any restriction of these functions when we execute on Windows
2000?  Are there any method to distinguish the members that I can access
to the value from cbsize?

 Does anyone know the sample program in order to access to the member
of CERT_CHAIN_CONTEXT structure?

 thank you.

----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html . To unsubscribe,
mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM

----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic