equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2001-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 * Implementation for DER encoding of NULLs |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include <asn1enc.h> |
|
21 |
|
22 EXPORT_C CASN1EncNull* CASN1EncNull::NewLC() |
|
23 { |
|
24 CASN1EncNull* self = new (ELeave) CASN1EncNull; |
|
25 CleanupStack::PushL(self); |
|
26 self->ConstructL(); |
|
27 return self; |
|
28 } |
|
29 |
|
30 EXPORT_C CASN1EncNull* CASN1EncNull::NewL() |
|
31 { |
|
32 CASN1EncNull* self = NewLC(); |
|
33 CleanupStack::Pop(self); |
|
34 return self; |
|
35 } |
|
36 |
|
37 CASN1EncNull::CASN1EncNull() |
|
38 : CASN1EncPrimitive(EASN1Null) |
|
39 { |
|
40 } |
|
41 |
|
42 |
|
43 void CASN1EncNull::CalculateContentsLengthDER() |
|
44 { |
|
45 iContentsLengthDER = 0; |
|
46 } |
|
47 |
|
48 |
|
49 void CASN1EncNull::WriteContentsDERL(TDes8& /* aBuf */) const |
|
50 { |
|
51 // Nothing to do |
|
52 } |