sl@0: /* sl@0: * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #ifndef PKIXCERTSTEPBASE_H sl@0: #define PKIXCERTSTEPBASE_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: _LIT(KPerformOom, "performoom"); sl@0: _LIT(KEndEntity, "endentity"); sl@0: _LIT(KIntermediateCert, "intermediatecert"); sl@0: _LIT(KRootCert, "rootcert"); sl@0: _LIT(KUid, "uid"); sl@0: _LIT(KOid, "oid"); sl@0: _LIT(KKeyFormat, "-%02d"); sl@0: sl@0: sl@0: class CPkixCertStepBase : public CTestStep sl@0: { sl@0: public: sl@0: ~CPkixCertStepBase(); sl@0: sl@0: virtual TVerdict doTestStepPreambleL(); sl@0: virtual TVerdict doTestStepL(); sl@0: sl@0: sl@0: protected: sl@0: virtual void PerformTestL(); sl@0: void PerformOomTestL(); sl@0: sl@0: //so keyname concat with -01, -02, -03, .... , -XX sl@0: void GetStringArrayFromConfigL(const TDesC& aSectName, const TDesC& aKeyName, RArray& aArray); sl@0: void GetIntArrayFromConfigL(const TDesC& aSectName, const TDesC& aKeyName, RArray& aArray); sl@0: HBufC8* ReadFileLC(const TDesC& aFileName); sl@0: sl@0: protected: sl@0: TBool iPerformOom; sl@0: RFs iFileServer; sl@0: CPKIXCertChain* iCertChain; sl@0: HBufC8* iConcatenatedChain; //string concatenation of the DER encoded certs in the chain, not including the root cert sl@0: TUid iUid; sl@0: RArray iOids; sl@0: RPointerArray iProcessedOids; //pointers into iOids, necessary format for API calls sl@0: RPointerArray iRootCerts; sl@0: TPtrC8 iPtr; sl@0: TBool iUseUidOverload; sl@0: sl@0: CActiveScheduler* iScheduler; sl@0: }; sl@0: sl@0: #endif // PKIXCERTSTEPBASE_H