sl@0: /* sl@0: * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * ASN1 constants sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @publishedAll sl@0: @released sl@0: */ sl@0: sl@0: #if !defined(__ASN1CONS_H__) sl@0: #define __ASN1CONS_H__ sl@0: sl@0: #include sl@0: sl@0: const TInt KASN1ObjectMinLength = 2; sl@0: sl@0: /** sl@0: * @publishedAll sl@0: * @released sl@0: */ sl@0: enum TASN1Class sl@0: { sl@0: EUniversal=0, sl@0: EApplicationSpecific=1, sl@0: EContextSpecific=2, sl@0: EPrivate=3 sl@0: }; sl@0: sl@0: /** sl@0: * @publishedAll sl@0: * @released sl@0: */ sl@0: 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. sl@0: sl@0: /** sl@0: * @publishedAll sl@0: * @released sl@0: */ sl@0: enum sl@0: { sl@0: EASN1EOC=0, sl@0: EASN1Boolean=1, sl@0: EASN1Integer=2, sl@0: EASN1BitString=3, sl@0: EASN1OctetString=4, sl@0: EASN1Null=5, sl@0: EASN1ObjectIdentifier=6, sl@0: EASN1ObjectDescriptor=7, sl@0: EASN1External=8, sl@0: EASN1Real=9, sl@0: EASN1Enumerated=10, sl@0: EASN1UTF8String=12, sl@0: EASN1Sequence=16, sl@0: EASN1Set=17, sl@0: EASN1NumericString=18, sl@0: EASN1PrintableString=19, sl@0: EASN1TeletexString=20, sl@0: EASN1VideotexString=21, sl@0: EASN1IA5String=22, sl@0: EASN1UTCTime=23, sl@0: EASN1GeneralizedTime=24, sl@0: EASN1GraphicString=25, sl@0: EASN1VisibleString=26, sl@0: EASN1GeneralString=27, sl@0: EASN1UniversalString=28, sl@0: EASN1BMPString=30 sl@0: }; sl@0: sl@0: #endif