epoc32/include/asn1cons.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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 * ASN1 constants
    16 *
    17 */
    18 
    19 
    20 
    21 
    22 /**
    23  @file 
    24  @publishedAll
    25  @released
    26 */
    27  
    28 #if !defined(__ASN1CONS_H__)
    29 #define __ASN1CONS_H__
    30 
    31 #include <e32std.h>
    32 
    33 const TInt KASN1ObjectMinLength = 2;
    34 
    35 /**
    36  * @publishedAll
    37  * @released
    38  */
    39 enum TASN1Class 
    40 		{
    41 		EUniversal=0, 
    42 		EApplicationSpecific=1, 
    43 		EContextSpecific=2, 
    44 		EPrivate=3
    45 		};
    46 
    47 /**
    48  * @publishedAll
    49  * @released
    50  */
    51 typedef TUint TTagType; // This will limit us to dealing with tags up to 255, I have put in the infrastructure to deal with encoding longer lengths but we probably don't want to cart them around all the time.
    52 
    53 /**
    54  * @publishedAll
    55  * @released
    56  */
    57 enum 
    58 		{
    59 		EASN1EOC=0,
    60 		EASN1Boolean=1,
    61 		EASN1Integer=2,
    62 		EASN1BitString=3,
    63 		EASN1OctetString=4,
    64 		EASN1Null=5,
    65 		EASN1ObjectIdentifier=6,
    66 		EASN1ObjectDescriptor=7,
    67 		EASN1External=8,
    68 		EASN1Real=9,
    69 		EASN1Enumerated=10,
    70 		EASN1UTF8String=12,
    71 		EASN1Sequence=16,
    72 		EASN1Set=17,
    73 		EASN1NumericString=18,
    74 		EASN1PrintableString=19,
    75 		EASN1TeletexString=20,
    76 		EASN1VideotexString=21,
    77 		EASN1IA5String=22,
    78 		EASN1UTCTime=23,
    79 		EASN1GeneralizedTime=24,
    80 		EASN1GraphicString=25,
    81 		EASN1VisibleString=26,
    82 		EASN1GeneralString=27,
    83 		EASN1UniversalString=28,
    84 		EASN1BMPString=30
    85 		};
    86 
    87 #endif