asn1.h File Reference


Detailed Description

Definitions for Abstract Syntax Notation One, ASN.1.

 * $Id: asn1.h,v 1.1 2008/01/31 09:31:29 haraldkipp Exp $
 * 

Definition in file asn1.h.

Go to the source code of this file.

Data Structures

struct  UNSIGNED64

Defines

#define MAX_OID_LEN   32
#define MAX_SUBID   0xFFFFFFFF
#define MIN_OID_LEN   2
#define ASN_BOOLEAN   0x01
#define ASN_INTEGER   0x02
#define ASN_BIT_STR   0x03
#define ASN_OCTET_STR   0x04
#define ASN_NULL   0x05
#define ASN_OBJECT_ID   0x06
#define ASN_SEQUENCE   0x10
#define ASN_SET   0x11
#define ASN_UNIVERSAL   0x00
#define ASN_APPLICATION   0x40
#define ASN_CONTEXT   0x80
#define ASN_PRIVATE   0xC0
#define ASN_PRIMITIVE   0x00
#define ASN_CONSTRUCTOR   0x20
#define ASN_LONG_LEN   0x80
#define ASN_EXTENSION_ID   0x1F
#define ASN_IPADDRESS   (ASN_APPLICATION | 0)
#define ASN_COUNTER   (ASN_APPLICATION | 1)
#define ASN_GAUGE   (ASN_APPLICATION | 2)
#define ASN_UNSIGNED   (ASN_APPLICATION | 2)
#define ASN_TIMETICKS   (ASN_APPLICATION | 3)
#define ASN_OPAQUE   (ASN_APPLICATION | 4)
#define ASN_NSAP   (ASN_APPLICATION | 5)
#define ASN_COUNTER64   (ASN_APPLICATION | 6)
#define ASN_UINTEGER   (ASN_APPLICATION | 7)
#define ACL_RONLY   0xAAAA
#define ACL_RWRITE   0xAABA
#define ACL_NOACCESS   0x0000
#define ASN_BIT8   0x80

Typedefs

typedef u_long OID

Functions

const u_charAsnHeaderParse (const u_char *, size_t *, u_char *)
u_charAsnHeaderBuild (u_char *, size_t *, u_char, size_t)
const u_charAsnSequenceParse (const u_char *, size_t *, u_char)
u_charAsnSequenceBuild (u_char *, size_t *, u_char, size_t)
const u_charAsnIntegerParse (const u_char *, size_t *, u_char *, long *)
u_charAsnIntegerBuild (u_char *, size_t *, u_char, long *)
const u_charAsnUnsignedParse (const u_char *, size_t *, u_char *, u_long *)
u_charAsnUnsignedBuild (u_char *, size_t *, u_char, u_long *)
const u_charAsnOctetStringParse (const u_char *, size_t *, u_char *, u_char *, size_t *)
u_charAsnOctetStringBuild (u_char *, size_t *, u_char, const u_char *, size_t)
const u_charAsnOidParse (const u_char *, size_t *, u_char *, OID *, size_t *)
u_charAsnOidBuild (u_char *, size_t *, u_char, const OID *, size_t)
const u_charAsnNullParse (const u_char *, size_t *, u_char *)
u_charAsnNullBuild (u_char *, size_t *, u_char)
const u_charAsnBitStringParse (const u_char *, size_t *, u_char *, u_char *, size_t *)
u_charAsnBitStringBuild (u_char *, size_t *, u_char, const u_char *, size_t)
const u_charAsnUnsigned64Parse (const u_char *, size_t *, u_char *, UNSIGNED64 *)
u_charAsnUnsigned64Build (u_char *, size_t *, u_char, const UNSIGNED64 *)


Define Documentation

#define MAX_OID_LEN   32

Definition at line 49 of file asn1.h.

#define MAX_SUBID   0xFFFFFFFF

Definition at line 52 of file asn1.h.

#define MIN_OID_LEN   2

Definition at line 54 of file asn1.h.

#define ASN_BOOLEAN   0x01

Definition at line 56 of file asn1.h.

#define ASN_INTEGER   0x02

Definition at line 57 of file asn1.h.

#define ASN_BIT_STR   0x03

Definition at line 58 of file asn1.h.

#define ASN_OCTET_STR   0x04

Definition at line 59 of file asn1.h.

#define ASN_NULL   0x05

Definition at line 60 of file asn1.h.

#define ASN_OBJECT_ID   0x06

Definition at line 61 of file asn1.h.

#define ASN_SEQUENCE   0x10

Definition at line 62 of file asn1.h.

#define ASN_SET   0x11

Definition at line 63 of file asn1.h.

#define ASN_UNIVERSAL   0x00

Definition at line 65 of file asn1.h.

#define ASN_APPLICATION   0x40

Definition at line 66 of file asn1.h.

#define ASN_CONTEXT   0x80

Definition at line 67 of file asn1.h.

#define ASN_PRIVATE   0xC0

Definition at line 68 of file asn1.h.

#define ASN_PRIMITIVE   0x00

Definition at line 70 of file asn1.h.

#define ASN_CONSTRUCTOR   0x20

Definition at line 71 of file asn1.h.

#define ASN_LONG_LEN   0x80

Definition at line 73 of file asn1.h.

#define ASN_EXTENSION_ID   0x1F

Definition at line 74 of file asn1.h.

#define ASN_IPADDRESS   (ASN_APPLICATION | 0)

Definition at line 77 of file asn1.h.

#define ASN_COUNTER   (ASN_APPLICATION | 1)

Definition at line 78 of file asn1.h.

#define ASN_GAUGE   (ASN_APPLICATION | 2)

Definition at line 79 of file asn1.h.

#define ASN_UNSIGNED   (ASN_APPLICATION | 2)

Definition at line 80 of file asn1.h.

#define ASN_TIMETICKS   (ASN_APPLICATION | 3)

Definition at line 81 of file asn1.h.

#define ASN_OPAQUE   (ASN_APPLICATION | 4)

Definition at line 82 of file asn1.h.

#define ASN_NSAP   (ASN_APPLICATION | 5)

Definition at line 85 of file asn1.h.

#define ASN_COUNTER64   (ASN_APPLICATION | 6)

Definition at line 86 of file asn1.h.

#define ASN_UINTEGER   (ASN_APPLICATION | 7)

Definition at line 87 of file asn1.h.

#define ACL_RONLY   0xAAAA

Definition at line 89 of file asn1.h.

#define ACL_RWRITE   0xAABA

Definition at line 90 of file asn1.h.

#define ACL_NOACCESS   0x0000

Definition at line 91 of file asn1.h.

#define ASN_BIT8   0x80

Definition at line 93 of file asn1.h.


Typedef Documentation

typedef u_long OID

Definition at line 95 of file asn1.h.


Function Documentation

const u_char* AsnHeaderParse ( const u_char ,
size_t *  ,
u_char  
)

u_char* AsnHeaderBuild ( u_char ,
size_t *  ,
u_char  ,
size_t   
)

const u_char* AsnSequenceParse ( const u_char ,
size_t *  ,
u_char   
)

u_char* AsnSequenceBuild ( u_char ,
size_t *  ,
u_char  ,
size_t   
)

const u_char* AsnIntegerParse ( const u_char ,
size_t *  ,
u_char ,
long *   
)

u_char* AsnIntegerBuild ( u_char ,
size_t *  ,
u_char  ,
long *   
)

const u_char* AsnUnsignedParse ( const u_char ,
size_t *  ,
u_char ,
u_long  
)

u_char* AsnUnsignedBuild ( u_char ,
size_t *  ,
u_char  ,
u_long  
)

const u_char* AsnOctetStringParse ( const u_char ,
size_t *  ,
u_char ,
u_char ,
size_t *   
)

u_char* AsnOctetStringBuild ( u_char ,
size_t *  ,
u_char  ,
const u_char ,
size_t   
)

const u_char* AsnOidParse ( const u_char ,
size_t *  ,
u_char ,
OID ,
size_t *   
)

u_char* AsnOidBuild ( u_char ,
size_t *  ,
u_char  ,
const OID ,
size_t   
)

const u_char* AsnNullParse ( const u_char ,
size_t *  ,
u_char  
)

u_char* AsnNullBuild ( u_char ,
size_t *  ,
u_char   
)

const u_char* AsnBitStringParse ( const u_char ,
size_t *  ,
u_char ,
u_char ,
size_t *   
)

u_char* AsnBitStringBuild ( u_char ,
size_t *  ,
u_char  ,
const u_char ,
size_t   
)

const u_char* AsnUnsigned64Parse ( const u_char ,
size_t *  ,
u_char ,
UNSIGNED64  
)

u_char* AsnUnsigned64Build ( u_char ,
size_t *  ,
u_char  ,
const UNSIGNED64  
)


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/