asn1.h

Go to the documentation of this file.
00001 #ifndef _GPXE_ASN1_H
00002 #define _GPXE_ASN1_H
00003 
00004 /** @file
00005  *
00006  * ASN.1 encoding
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  * A DER-encoded ASN.1 object cursor
00023  */
00024 struct asn1_cursor {
00025         /** Start of data */
00026         void *data;
00027         /** Length of data */
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 /* _GPXE_ASN1_H */

Generated on Tue Apr 6 20:01:06 2010 for gPXE by  doxygen 1.5.7.1