os/security/cryptoservices/certificateandkeymgmt/tpkcs7/tpkcs7stepbase.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 *
    16 */
    17 
    18 
    19 /**
    20  @file 
    21  @internalTechnology
    22 */
    23 
    24 #if (!defined __TPKCS7_STEP_BASE_H__)
    25 #define __TPKCS7_STEP_BASE_H__
    26 #include <test/testexecutestepbase.h>
    27 #include "tpkcs7server.h"
    28 #include <x509cert.h>
    29 
    30 class CTPKCS7StepBase : public CTestStep
    31 	{
    32 public:
    33 	CTPKCS7StepBase ();
    34 	~CTPKCS7StepBase();
    35 	inline void SetServer(CTPKCS7Server * aServer);
    36 
    37 	// From CTestStep
    38 	TVerdict			doTestStepPreambleL ();
    39 	HBufC8*				readFileL (TPtrC tag);
    40 protected:
    41 	HBufC8*				iRawData;
    42 	HBufC8*	            iSaltValue;
    43 	HBufC8*	            iContentData;
    44 	HBufC8*             iDigest;
    45 	HBufC8*             iEncodedParams;
    46 	CX509Certificate*	iRootCertificate;
    47 	RFs					iFs;
    48 	CTPKCS7Server* iServer;
    49 	};
    50 	
    51 inline void CTPKCS7StepBase::SetServer(CTPKCS7Server* aServer)
    52  	{
    53  	iServer = aServer;
    54  	}
    55 #endif