File nut/include/pro/asn1.h


Included Files


Preprocessor definitions

#define PRO_ASN1_H

#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

#define ASN_COUNTER

#define ASN_GAUGE

#define ASN_UNSIGNED

#define ASN_TIMETICKS

#define ASN_OPAQUE

#define ASN_NSAP

#define ASN_COUNTER64

#define ASN_UINTEGER

#define ACL_RONLY 0xAAAA

#define ACL_RWRITE 0xAABA

#define ACL_NOACCESS 0x0000

#define ASN_BIT8 0x80


Typedef OID

typedef uint32_t OID

Typedef UNSIGNED64

typedef struct {...} UNSIGNED64
struct  
   {  
      uint32_t high;  
      uint32_t low;  
   }