diff -r 675a964f4eb5 -r 35751d3474b7 cryptoservices/certificateandkeymgmt/pkixcertbase/pkixchainbuilder.h --- a/cryptoservices/certificateandkeymgmt/pkixcertbase/pkixchainbuilder.h Tue Jul 21 01:04:32 2009 +0100 +++ b/cryptoservices/certificateandkeymgmt/pkixcertbase/pkixchainbuilder.h Thu Sep 10 14:01:51 2009 +0300 @@ -1,85 +1,83 @@ -/* -* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* CPKIXChainBuilder class implementation -* -*/ - - - - -/** - @file - @internalTechnology -*/ - -#ifndef __PKIXCHAINBUILDER_H__ -#define __PKIXCHAINBUILDER_H__ - -#include -#include "pkixcerts.h" - -class CPKIXCertChainAO; - -class CPKIXChainBuilder : public CActive - { - friend class CPKIXCertChainAO; - -public: - static CPKIXChainBuilder* NewL(); - static CPKIXChainBuilder* NewLC(); - ~CPKIXChainBuilder(); - -public: - void AddSourceL(MPKIXCertSource* aSource);//takes ownership of aSource... - void AddIssuer(TInt& aNumberOfCertsAdded, TBool& aResult, CArrayPtrFlat& aChain, - TRequestStatus& aStatus); - -private: - CPKIXChainBuilder(); - void ConstructL(); - TBool ResolveIssuersL(CArrayPtr& aChain, - const RPointerArray& aCandidates) const; - -private: - void RunL(); - void DoCancel(); - TInt RunError(TInt aError); - -private: - enum TState - { - EIdle = 0, - EAddCandidate, - EFinished - }; - -private: - RMPointerArray iSources; - - /** - * We don't own that object, it's only a pointer to a certificate - * in the CX509CertChain from which CPKIXCertChainBase derives. - */ - CX509Certificate* iSubject; - TRequestStatus* iOriginalRequestStatus; - TBool* iResult; - CArrayPtrFlat* iChain; - TInt iIndex; - TState iState; - RPointerArray iCandidates; - TInt* iNumberOfCertsAdded; - }; - -#endif +/* +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* CPKIXChainBuilder class implementation +* +*/ + + +/** + @file + @internalTechnology +*/ + +#ifndef __PKIXCHAINBUILDER_H__ +#define __PKIXCHAINBUILDER_H__ + +#include +#include "pkixcerts.h" + +class CPKIXCertChainAO; + +class CPKIXChainBuilder : public CActive + { + friend class CPKIXCertChainAO; + +public: + static CPKIXChainBuilder* NewL(); + static CPKIXChainBuilder* NewLC(); + ~CPKIXChainBuilder(); + +public: + void AddSourceL(MPKIXCertSource* aSource);//takes ownership of aSource... + void AddIssuer(TInt& aNumberOfCertsAdded, TBool& aResult, CArrayPtrFlat& aChain, + TRequestStatus& aStatus); + +private: + CPKIXChainBuilder(); + void ConstructL(); + TBool ResolveIssuersL(CArrayPtr& aChain, + const RPointerArray& aCandidates) const; + +private: + void RunL(); + void DoCancel(); + TInt RunError(TInt aError); + +private: + enum TState + { + EIdle = 0, + EAddCandidate, + EFinished + }; + +private: + RMPointerArray iSources; + + /** + * We don't own that object, it's only a pointer to a certificate + * in the CX509CertChain from which CPKIXCertChainBase derives. + */ + CX509Certificate* iSubject; + TRequestStatus* iOriginalRequestStatus; + TBool* iResult; + CArrayPtrFlat* iChain; + TInt iIndex; + TState iState; + RPointerArray iCandidates; + TInt* iNumberOfCertsAdded; + }; + +#endif