sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
#include "fsdatatypes.h"
|
sl@0
|
20 |
|
sl@0
|
21 |
EXPORT_C CCertInfo* CCertInfo::NewLC(const CCertInfo& aOther)
|
sl@0
|
22 |
{
|
sl@0
|
23 |
CCertInfo* self = NewL(aOther);
|
sl@0
|
24 |
CleanupStack::PushL(self);
|
sl@0
|
25 |
return self;
|
sl@0
|
26 |
}
|
sl@0
|
27 |
|
sl@0
|
28 |
EXPORT_C CCertInfo* CCertInfo::NewL(const CCertInfo& aOther)
|
sl@0
|
29 |
{
|
sl@0
|
30 |
return new (ELeave) CCertInfo(aOther);
|
sl@0
|
31 |
}
|
sl@0
|
32 |
CCertInfo::CCertInfo(const CCertInfo& aOther) :
|
sl@0
|
33 |
MCertInfo(aOther)
|
sl@0
|
34 |
{
|
sl@0
|
35 |
}
|
sl@0
|
36 |
|
sl@0
|
37 |
EXPORT_C CCertInfo* CCertInfo::NewLC(const TDesC& aLabel,
|
sl@0
|
38 |
TCertificateFormat aFormat,
|
sl@0
|
39 |
TCertificateOwnerType aCertificateOwnerType,
|
sl@0
|
40 |
TInt aSize,
|
sl@0
|
41 |
const TKeyIdentifier* aSubjectKeyId,
|
sl@0
|
42 |
const TKeyIdentifier* aIssuerKeyId,
|
sl@0
|
43 |
TInt aCertificateId)
|
sl@0
|
44 |
{
|
sl@0
|
45 |
CCertInfo* self = new(ELeave) CCertInfo(aLabel,
|
sl@0
|
46 |
aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, aIssuerKeyId,
|
sl@0
|
47 |
aCertificateId);
|
sl@0
|
48 |
CleanupStack::PushL(self);
|
sl@0
|
49 |
self->ConstructL(NULL);
|
sl@0
|
50 |
return self;
|
sl@0
|
51 |
}
|
sl@0
|
52 |
|
sl@0
|
53 |
EXPORT_C CCertInfo* CCertInfo::NewLC(const TDesC& aLabel,
|
sl@0
|
54 |
TCertificateFormat aFormat,
|
sl@0
|
55 |
TCertificateOwnerType aCertificateOwnerType,
|
sl@0
|
56 |
TInt aSize,
|
sl@0
|
57 |
const TKeyIdentifier* aSubjectKeyId,
|
sl@0
|
58 |
const TKeyIdentifier* aIssuerKeyId,
|
sl@0
|
59 |
TInt aCertificateId,
|
sl@0
|
60 |
const TBool aDeletable)
|
sl@0
|
61 |
{
|
sl@0
|
62 |
CCertInfo* self = new(ELeave) CCertInfo(aLabel,
|
sl@0
|
63 |
aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, aIssuerKeyId,
|
sl@0
|
64 |
aCertificateId, aDeletable);
|
sl@0
|
65 |
CleanupStack::PushL(self);
|
sl@0
|
66 |
self->ConstructL(NULL);
|
sl@0
|
67 |
return self;
|
sl@0
|
68 |
}
|
sl@0
|
69 |
|
sl@0
|
70 |
EXPORT_C CCertInfo* CCertInfo::NewL(const TDesC& aLabel,
|
sl@0
|
71 |
TCertificateFormat aFormat,
|
sl@0
|
72 |
TCertificateOwnerType aCertificateOwnerType,
|
sl@0
|
73 |
TInt aSize,
|
sl@0
|
74 |
const TKeyIdentifier* aSubjectKeyId,
|
sl@0
|
75 |
const TKeyIdentifier* aIssuerKeyId,
|
sl@0
|
76 |
TInt aCertificateId)
|
sl@0
|
77 |
{
|
sl@0
|
78 |
CCertInfo* self = CCertInfo::NewLC(aLabel,
|
sl@0
|
79 |
aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, aIssuerKeyId,
|
sl@0
|
80 |
aCertificateId);
|
sl@0
|
81 |
CleanupStack::Pop(self);
|
sl@0
|
82 |
return self;
|
sl@0
|
83 |
}
|
sl@0
|
84 |
|
sl@0
|
85 |
EXPORT_C CCertInfo* CCertInfo::NewL(const TDesC& aLabel,
|
sl@0
|
86 |
TCertificateFormat aFormat,
|
sl@0
|
87 |
TCertificateOwnerType aCertificateOwnerType,
|
sl@0
|
88 |
TInt aSize,
|
sl@0
|
89 |
const TKeyIdentifier* aSubjectKeyId,
|
sl@0
|
90 |
const TKeyIdentifier* aIssuerKeyId,
|
sl@0
|
91 |
TInt aCertificateId,
|
sl@0
|
92 |
const TBool aDeletable)
|
sl@0
|
93 |
{
|
sl@0
|
94 |
CCertInfo* self = CCertInfo::NewLC(aLabel,
|
sl@0
|
95 |
aFormat, aCertificateOwnerType, aSize, aSubjectKeyId, aIssuerKeyId,
|
sl@0
|
96 |
aCertificateId, aDeletable);
|
sl@0
|
97 |
CleanupStack::Pop(self);
|
sl@0
|
98 |
return self;
|
sl@0
|
99 |
}
|
sl@0
|
100 |
|
sl@0
|
101 |
CCertInfo::CCertInfo(const TDesC& aLabel,
|
sl@0
|
102 |
TCertificateFormat aFormat,
|
sl@0
|
103 |
TCertificateOwnerType aCertificateOwnerType,
|
sl@0
|
104 |
TInt aSize,
|
sl@0
|
105 |
const TKeyIdentifier* aSubjectKeyId,
|
sl@0
|
106 |
const TKeyIdentifier* aIssuerKeyId,
|
sl@0
|
107 |
TInt aCertificateId,
|
sl@0
|
108 |
const TBool aDeletable) :
|
sl@0
|
109 |
MCertInfo(aLabel, aFormat, aCertificateOwnerType, aSize, aSubjectKeyId,
|
sl@0
|
110 |
aIssuerKeyId, aCertificateId, aDeletable)
|
sl@0
|
111 |
{
|
sl@0
|
112 |
}
|
sl@0
|
113 |
|
sl@0
|
114 |
EXPORT_C CCertInfo* CCertInfo::NewL(RReadStream& aStream)
|
sl@0
|
115 |
{
|
sl@0
|
116 |
CCertInfo* me = NewLC(aStream);
|
sl@0
|
117 |
CleanupStack::Pop(me);
|
sl@0
|
118 |
return me;
|
sl@0
|
119 |
}
|
sl@0
|
120 |
|
sl@0
|
121 |
EXPORT_C CCertInfo* CCertInfo::NewLC(RReadStream& aStream)
|
sl@0
|
122 |
{
|
sl@0
|
123 |
CCertInfo* self = new (ELeave) CCertInfo();
|
sl@0
|
124 |
CleanupStack::PushL(self);
|
sl@0
|
125 |
self->InternalizeL(aStream);
|
sl@0
|
126 |
return self;
|
sl@0
|
127 |
}
|
sl@0
|
128 |
|
sl@0
|
129 |
CCertInfo::CCertInfo() :
|
sl@0
|
130 |
MCertInfo()
|
sl@0
|
131 |
{
|
sl@0
|
132 |
}
|