equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 1998-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 * TASN1DecX500DirectoryString class implementation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 @internalTechnology |
|
25 */ |
|
26 |
|
27 #ifndef __X500DEC_H__ |
|
28 #define __X500DEC_H__ |
|
29 |
|
30 #include <asn1dec.h> |
|
31 #include <x520ava.h> |
|
32 #include <x500dn.h> |
|
33 |
|
34 class TASN1DecX500DirectoryString |
|
35 |
|
36 { |
|
37 public: |
|
38 TASN1DecX500DirectoryString(); |
|
39 HBufC* DecodeDERL(const TDesC8& aSource,TInt& aPos, TInt aMaxLength = KMaxTInt); |
|
40 HBufC* DecodeDERL(const TASN1DecGeneric& aSource, TInt aMaxLength = KMaxTInt); |
|
41 TInt EncodeDER(TDes8& aDestination,TInt& aPos); |
|
42 TInt LengthDERContent(void) const; |
|
43 void SetMaxLength(TInt aLength); |
|
44 private: |
|
45 HBufC* DecodeContentsL(const TASN1DecGeneric& aSource, TInt aMaxLength); |
|
46 TInt iMaxLength; |
|
47 }; |
|
48 |
|
49 #endif |