os/security/cryptoservices/certificateandkeymgmt/tpkcs10/tpkcs10minortests.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/tpkcs10/tpkcs10minortests.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,88 @@
     1.4 +/*
     1.5 +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +* Declares test step classes for reuse cases of PKCS#10 tests.
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +/**
    1.24 + @file
    1.25 + @internalTechnology
    1.26 +*/
    1.27 +
    1.28 +#include <f32file.h> 
    1.29 +#include <x500dn.h>
    1.30 +#include <pkcs10.h>  
    1.31 +#include <pkcs10attr.h>
    1.32 +#include <pkcs9attr.h>
    1.33 +#include <unifiedkeystore.h>
    1.34 +#include <asn1dec.h>
    1.35 +#include <asn1enc.h>
    1.36 +
    1.37 +#if (!defined __PKCS10MINORTESTS_STEP_H__)
    1.38 +#define __PKCS10MINORTESTS_STEP_H__
    1.39 +#include <test/testexecutestepbase.h>
    1.40 +#include "tpkcs10stepbasev2.h"
    1.41 +#include "tcertrequeststep.h"
    1.42 +
    1.43 +_LIT(KPKCS10ReuseAttributeStep,"PKCS10ReuseAttribute");
    1.44 +_LIT(KPKCS10ReuseChallengePasswordAttr,"PKCS10ReuseChallengePasswordAttr");
    1.45 +_LIT(KPKCS10ReuseExtensionAttr,"PKCS10ReuseExtensionAttr");
    1.46 +_LIT(KPKCS10CancelRequestA,"PKCS10CancelRequestA");
    1.47 +
    1.48 +// forward declarations:
    1.49 +class CCertificateRequestStep;
    1.50 +
    1.51 +// Resuse test steps
    1.52 +class CPKCS10ReuseAttributeStep: public CCertificateRequestStep
    1.53 +{
    1.54 +	public:
    1.55 +	virtual void doTestL();
    1.56 +};
    1.57 +
    1.58 +class CPKCS10ReuseChallengePasswordAttrStep: public CCertificateRequestStep
    1.59 +{
    1.60 +	public:
    1.61 +	virtual void doTestL();
    1.62 +};
    1.63 +
    1.64 +class CPKCS10ReuseExtensionAttrStep: public CCertificateRequestStep
    1.65 +{
    1.66 +	public:
    1.67 +	virtual void doTestL();
    1.68 +};
    1.69 +
    1.70 +
    1.71 +
    1.72 +class CPKCS10TesterActiveCancelRequestA : public CPKCS10TesterActive
    1.73 +{
    1.74 +	public:
    1.75 + 	CPKCS10TesterActiveCancelRequestA( CTestExecuteLogger& aLogger );
    1.76 +	void RunL();
    1.77 +	TVerdict doActiveCertRequestL(CCertificateRequestStep* aStep);
    1.78 +	
    1.79 +};
    1.80 +
    1.81 +class CPKCS10CancelRequestAStep: public CCertificateRequestStep
    1.82 +{
    1.83 +	public:
    1.84 +	virtual void doTestL();
    1.85 +	
    1.86 +	//data
    1.87 +	CPKCS10TesterActiveCancelRequestA* 		iActiveObjTest;
    1.88 +};
    1.89 +
    1.90 +#endif
    1.91 +