|
1 /* |
|
2 * Copyright (c) 2007-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 * Declares test step classes for reuse cases of PKCS#10 tests. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 @internalTechnology |
|
25 */ |
|
26 |
|
27 #include <f32file.h> |
|
28 #include <x500dn.h> |
|
29 #include <pkcs10.h> |
|
30 #include <pkcs10attr.h> |
|
31 #include <pkcs9attr.h> |
|
32 #include <unifiedkeystore.h> |
|
33 #include <asn1dec.h> |
|
34 #include <asn1enc.h> |
|
35 |
|
36 #if (!defined __PKCS10MINORTESTS_STEP_H__) |
|
37 #define __PKCS10MINORTESTS_STEP_H__ |
|
38 #include <testexecutestepbase.h> |
|
39 #include "tpkcs10stepbasev2.h" |
|
40 #include "tcertrequeststep.h" |
|
41 |
|
42 _LIT(KPKCS10ReuseAttributeStep,"PKCS10ReuseAttribute"); |
|
43 _LIT(KPKCS10ReuseChallengePasswordAttr,"PKCS10ReuseChallengePasswordAttr"); |
|
44 _LIT(KPKCS10ReuseExtensionAttr,"PKCS10ReuseExtensionAttr"); |
|
45 _LIT(KPKCS10CancelRequestA,"PKCS10CancelRequestA"); |
|
46 |
|
47 // forward declarations: |
|
48 class CCertificateRequestStep; |
|
49 |
|
50 // Resuse test steps |
|
51 class CPKCS10ReuseAttributeStep: public CCertificateRequestStep |
|
52 { |
|
53 public: |
|
54 virtual void doTestL(); |
|
55 }; |
|
56 |
|
57 class CPKCS10ReuseChallengePasswordAttrStep: public CCertificateRequestStep |
|
58 { |
|
59 public: |
|
60 virtual void doTestL(); |
|
61 }; |
|
62 |
|
63 class CPKCS10ReuseExtensionAttrStep: public CCertificateRequestStep |
|
64 { |
|
65 public: |
|
66 virtual void doTestL(); |
|
67 }; |
|
68 |
|
69 |
|
70 |
|
71 class CPKCS10TesterActiveCancelRequestA : public CPKCS10TesterActive |
|
72 { |
|
73 public: |
|
74 CPKCS10TesterActiveCancelRequestA( CTestExecuteLogger& aLogger ); |
|
75 void RunL(); |
|
76 TVerdict doActiveCertRequestL(CCertificateRequestStep* aStep); |
|
77 |
|
78 }; |
|
79 |
|
80 class CPKCS10CancelRequestAStep: public CCertificateRequestStep |
|
81 { |
|
82 public: |
|
83 virtual void doTestL(); |
|
84 |
|
85 //data |
|
86 CPKCS10TesterActiveCancelRequestA* iActiveObjTest; |
|
87 }; |
|
88 |
|
89 #endif |