sl@0: /* sl@0: * Copyright (c) 2002-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: * Declares test step classes for negative cases of PKCS#10 tests. sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #if (!defined __PKCS10NEGATIVE_STEP_H__) sl@0: #define __PKCS10NEGATIVE_STEP_H__ sl@0: #include sl@0: #include "tpkcs10stepbasev2.h" sl@0: #include "tcertrequeststep.h" sl@0: sl@0: // Test steps sl@0: _LIT(KPKCS10NegPKCS10GenericAttr, "PKCS10NegPKCS10GenericAttr"); sl@0: _LIT(KPKCS10NegPKCS9ChallengePasswordAttr, "PKCS10NegPKCS9ChPwdAttr"); sl@0: _LIT(KPKCS10NegPKCS9ExtensionRequestAttr, "PKCS10NegPKCS9ExtReqAttr"); sl@0: _LIT(KPKCS10NegPKCS10Attributes, "PKCS10NegPKCS10Attributes"); sl@0: _LIT(KPKCS10NegPKCS10Request, "PKCS10NegPKCS10Request"); sl@0: sl@0: // Forward declarations sl@0: class CCertificateRequestStep; sl@0: class CPKCS10Request; sl@0: sl@0: // Helper active object to import key sl@0: class CPKCS10NegTesterActive : public CActive sl@0: { sl@0: public: sl@0: CPKCS10NegTesterActive(CTestExecuteLogger& aLogger); sl@0: ~CPKCS10NegTesterActive(); sl@0: sl@0: CCTKeyInfo* doImportKeyL(CCertificateRequestStep *aStep); sl@0: sl@0: // from CActive sl@0: void DoCancel() { return; }; sl@0: void RunL(); sl@0: TInt RunError(TInt aError); sl@0: sl@0: private: sl@0: sl@0: CTestExecuteLogger& Logger(){return iLogger;} sl@0: sl@0: private: sl@0: // Log buffer sl@0: TBuf<150> iLogInfo; sl@0: RFs iFs; sl@0: CUnifiedKeyStore* iKeyStore; sl@0: CCTKeyInfo* iKeyInfo; sl@0: CTestExecuteLogger& iLogger; sl@0: TBool iKeyImportStarted; sl@0: TInt iError; sl@0: HBufC8* iKeyData; sl@0: CCertificateRequestStep* iStep; sl@0: }; sl@0: sl@0: class CPKCS10NegPKCS10GenericAttr : public CCertificateRequestStep sl@0: { sl@0: public: sl@0: TVerdict doTestStepL(); sl@0: }; sl@0: sl@0: class CPKCS10NegPKCS9ChallengePasswordAttr : public CCertificateRequestStep sl@0: { sl@0: public: sl@0: TVerdict doTestStepL(); sl@0: }; sl@0: sl@0: class CPKCS10NegPKCS9ExtensionRequestAttr : public CCertificateRequestStep sl@0: { sl@0: public: sl@0: TVerdict doTestStepL(); sl@0: }; sl@0: sl@0: class CPKCS10NegPKCS10Attributes : public CCertificateRequestStep sl@0: { sl@0: public: sl@0: TVerdict doTestStepL(); sl@0: }; sl@0: sl@0: class CPKCS10NegPKCS10Request : public CCertificateRequestStep sl@0: { sl@0: public: sl@0: TVerdict doTestStepL(); sl@0: }; sl@0: sl@0: #endif sl@0: