epoc32/include/asn1cons.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
     1.1 --- a/epoc32/include/asn1cons.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/asn1cons.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,87 @@
     1.4 -asn1cons.h
     1.5 +/*
     1.6 +* Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* under the terms of the License "Eclipse Public License v1.0"
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description: 
    1.19 +* ASN1 constants
    1.20 +*
    1.21 +*/
    1.22 +
    1.23 +
    1.24 +
    1.25 +
    1.26 +/**
    1.27 + @file 
    1.28 + @publishedAll
    1.29 + @released
    1.30 +*/
    1.31 + 
    1.32 +#if !defined(__ASN1CONS_H__)
    1.33 +#define __ASN1CONS_H__
    1.34 +
    1.35 +#include <e32std.h>
    1.36 +
    1.37 +const TInt KASN1ObjectMinLength = 2;
    1.38 +
    1.39 +/**
    1.40 + * @publishedAll
    1.41 + * @released
    1.42 + */
    1.43 +enum TASN1Class 
    1.44 +		{
    1.45 +		EUniversal=0, 
    1.46 +		EApplicationSpecific=1, 
    1.47 +		EContextSpecific=2, 
    1.48 +		EPrivate=3
    1.49 +		};
    1.50 +
    1.51 +/**
    1.52 + * @publishedAll
    1.53 + * @released
    1.54 + */
    1.55 +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.
    1.56 +
    1.57 +/**
    1.58 + * @publishedAll
    1.59 + * @released
    1.60 + */
    1.61 +enum 
    1.62 +		{
    1.63 +		EASN1EOC=0,
    1.64 +		EASN1Boolean=1,
    1.65 +		EASN1Integer=2,
    1.66 +		EASN1BitString=3,
    1.67 +		EASN1OctetString=4,
    1.68 +		EASN1Null=5,
    1.69 +		EASN1ObjectIdentifier=6,
    1.70 +		EASN1ObjectDescriptor=7,
    1.71 +		EASN1External=8,
    1.72 +		EASN1Real=9,
    1.73 +		EASN1Enumerated=10,
    1.74 +		EASN1UTF8String=12,
    1.75 +		EASN1Sequence=16,
    1.76 +		EASN1Set=17,
    1.77 +		EASN1NumericString=18,
    1.78 +		EASN1PrintableString=19,
    1.79 +		EASN1TeletexString=20,
    1.80 +		EASN1VideotexString=21,
    1.81 +		EASN1IA5String=22,
    1.82 +		EASN1UTCTime=23,
    1.83 +		EASN1GeneralizedTime=24,
    1.84 +		EASN1GraphicString=25,
    1.85 +		EASN1VisibleString=26,
    1.86 +		EASN1GeneralString=27,
    1.87 +		EASN1UniversalString=28,
    1.88 +		EASN1BMPString=30
    1.89 +		};
    1.90 +
    1.91 +#endif