os/security/cryptoservices/certificateandkeymgmt/inc/asn1cons.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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  @file 
    22  @publishedAll
    23  @released
    24 */
    25  
    26 #if !defined(__ASN1CONS_H__)
    27 #define __ASN1CONS_H__
    28 
    29 #include <e32std.h>
    30 
    31 const TInt KASN1ObjectMinLength = 2;
    32 
    33 /**
    34  * @publishedAll
    35  * @released
    36  */
    37 enum TASN1Class 
    38 		{
    39 		EUniversal=0, 
    40 		EApplicationSpecific=1, 
    41 		EContextSpecific=2, 
    42 		EPrivate=3
    43 		};
    44 
    45 /**
    46  * @publishedAll
    47  * @released
    48  */
    49 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.
    50 
    51 /**
    52  * @publishedAll
    53  * @released
    54  */
    55 enum 
    56 		{
    57 		EASN1EOC=0,
    58 		EASN1Boolean=1,
    59 		EASN1Integer=2,
    60 		EASN1BitString=3,
    61 		EASN1OctetString=4,
    62 		EASN1Null=5,
    63 		EASN1ObjectIdentifier=6,
    64 		EASN1ObjectDescriptor=7,
    65 		EASN1External=8,
    66 		EASN1Real=9,
    67 		EASN1Enumerated=10,
    68 		EASN1UTF8String=12,
    69 		EASN1Sequence=16,
    70 		EASN1Set=17,
    71 		EASN1NumericString=18,
    72 		EASN1PrintableString=19,
    73 		EASN1TeletexString=20,
    74 		EASN1VideotexString=21,
    75 		EASN1IA5String=22,
    76 		EASN1UTCTime=23,
    77 		EASN1GeneralizedTime=24,
    78 		EASN1GraphicString=25,
    79 		EASN1VisibleString=26,
    80 		EASN1GeneralString=27,
    81 		EASN1UniversalString=28,
    82 		EASN1BMPString=30
    83 		};
    84 
    85 #endif