asn1.h
Go to the documentation of this file.00001 #ifndef _GPXE_ASN1_H
00002 #define _GPXE_ASN1_H
00003
00004
00005
00006
00007
00008
00009
00010 FILE_LICENCE ( GPL2_OR_LATER );
00011
00012 #define ASN1_INTEGER 0x02
00013 #define ASN1_BIT_STRING 0x03
00014 #define ASN1_OCTET_STRING 0x04
00015 #define ASN1_NULL 0x05
00016 #define ASN1_OID 0x06
00017 #define ASN1_SEQUENCE 0x30
00018 #define ASN1_IP_ADDRESS 0x40
00019 #define ASN1_EXPLICIT_TAG 0xa0
00020
00021
00022
00023
00024 struct asn1_cursor {
00025
00026 void *data;
00027
00028 size_t len;
00029 };
00030
00031 extern int asn1_enter ( struct asn1_cursor *cursor, unsigned int type );
00032 extern int asn1_skip ( struct asn1_cursor *cursor, unsigned int type );
00033
00034 #endif