epoc32/include/asn1cons.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h) This is the epoc32/include tree with the "platform" subtrees removed, and all but a selected few mbg and rsg files removed.

/*
* Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
* ASN1 constants
*
*/


/**
 @file 
 @publishedAll
 @released
*/
 
#if !defined(__ASN1CONS_H__)
#define __ASN1CONS_H__

#include <e32std.h>

const TInt KASN1ObjectMinLength = 2;

/**
 * @publishedAll
 * @released
 */
enum TASN1Class 
		{
		EUniversal=0, 
		EApplicationSpecific=1, 
		EContextSpecific=2, 
		EPrivate=3
		};

/**
 * @publishedAll
 * @released
 */
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.

/**
 * @publishedAll
 * @released
 */
enum 
		{
		EASN1EOC=0,
		EASN1Boolean=1,
		EASN1Integer=2,
		EASN1BitString=3,
		EASN1OctetString=4,
		EASN1Null=5,
		EASN1ObjectIdentifier=6,
		EASN1ObjectDescriptor=7,
		EASN1External=8,
		EASN1Real=9,
		EASN1Enumerated=10,
		EASN1UTF8String=12,
		EASN1Sequence=16,
		EASN1Set=17,
		EASN1NumericString=18,
		EASN1PrintableString=19,
		EASN1TeletexString=20,
		EASN1VideotexString=21,
		EASN1IA5String=22,
		EASN1UTCTime=23,
		EASN1GeneralizedTime=24,
		EASN1GraphicString=25,
		EASN1VisibleString=26,
		EASN1GeneralString=27,
		EASN1UniversalString=28,
		EASN1BMPString=30
		};

#endif