Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

libnet-asn1.h File Reference

Go to the source code of this file.

Defines

#define MAX_SUBID   0xFFFFFFFF
#define MAX_OID_LEN   64
#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_BIT8   (0x80)
#define IS_CONSTRUCTOR(byte)   ((byte) & ASN_CONSTRUCTOR)
#define IS_EXTENSION_ID(byte)   (((byte) & ASN_EXTENSION_ID) = ASN_EXTENSION_ID)

Typedefs

typedef u_long oid

Functions

u_char * libnet_build_asn1_int (u_char *, int *, u_char, long *, int)
u_char * libnet_build_asn1_uint (u_char *, int *, u_char, u_long *, int)
u_char * libnet_build_asn1_string (u_char *, int *, u_char, u_char *, int)
u_char * libnet_build_asn1_header (u_char *, int *, u_char, int)
u_char * libnet_build_asn1_length (u_char *, int *, int)
u_char * libnet_build_asn1_sequence (u_char *, int *, u_char, int)
u_char * libnet_build_asn1_objid (u_char *, int *, u_char, oid *, int)
u_char * libnet_build_asn1_null (u_char *, int *, u_char)
u_char * libnet_build_asn1_bitstring (u_char *, int *, u_char, u_char *, int)


Define Documentation

#define ASN_APPLICATION   (0x40)
 

Definition at line 76 of file libnet-asn1.h.

#define ASN_BIT8   (0x80)
 

Definition at line 85 of file libnet-asn1.h.

#define ASN_BIT_STR   (0x03)
 

Definition at line 68 of file libnet-asn1.h.

#define ASN_BOOLEAN   (0x01)
 

Definition at line 66 of file libnet-asn1.h.

#define ASN_CONSTRUCTOR   (0x20)
 

Definition at line 81 of file libnet-asn1.h.

#define ASN_CONTEXT   (0x80)
 

Definition at line 77 of file libnet-asn1.h.

#define ASN_EXTENSION_ID   (0x1F)
 

Definition at line 84 of file libnet-asn1.h.

#define ASN_INTEGER   (0x02)
 

Definition at line 67 of file libnet-asn1.h.

#define ASN_LONG_LEN   (0x80)
 

Definition at line 83 of file libnet-asn1.h.

#define ASN_NULL   (0x05)
 

Definition at line 70 of file libnet-asn1.h.

#define ASN_OBJECT_ID   (0x06)
 

Definition at line 71 of file libnet-asn1.h.

#define ASN_OCTET_STR   (0x04)
 

Definition at line 69 of file libnet-asn1.h.

#define ASN_PRIMITIVE   (0x00)
 

Definition at line 80 of file libnet-asn1.h.

#define ASN_PRIVATE   (0xC0)
 

Definition at line 78 of file libnet-asn1.h.

#define ASN_SEQUENCE   (0x10)
 

Definition at line 72 of file libnet-asn1.h.

#define ASN_SET   (0x11)
 

Definition at line 73 of file libnet-asn1.h.

#define ASN_UNIVERSAL   (0x00)
 

Definition at line 75 of file libnet-asn1.h.

#define IS_CONSTRUCTOR byte   )     ((byte) & ASN_CONSTRUCTOR)
 

Definition at line 87 of file libnet-asn1.h.

#define IS_EXTENSION_ID byte   )     (((byte) & ASN_EXTENSION_ID) = ASN_EXTENSION_ID)
 

Definition at line 88 of file libnet-asn1.h.

#define MAX_OID_LEN   64
 

Definition at line 64 of file libnet-asn1.h.

#define MAX_SUBID   0xFFFFFFFF
 

Definition at line 58 of file libnet-asn1.h.


Typedef Documentation

typedef u_long oid
 

Definition at line 57 of file libnet-asn1.h.


Function Documentation

u_char* libnet_build_asn1_bitstring u_char *  ,
int *  ,
u_char  ,
u_char *  ,
int 
 

u_char* libnet_build_asn1_header u_char *  ,
int *  ,
u_char  ,
int 
 

u_char* libnet_build_asn1_int u_char *  ,
int *  ,
u_char  ,
long *  ,
int 
 

u_char* libnet_build_asn1_length u_char *  ,
int *  ,
int 
 

u_char* libnet_build_asn1_null u_char *  ,
int *  ,
u_char 
 

u_char* libnet_build_asn1_objid u_char *  ,
int *  ,
u_char  ,
oid ,
int 
 

u_char* libnet_build_asn1_sequence u_char *  ,
int *  ,
u_char  ,
int 
 

u_char* libnet_build_asn1_string u_char *  ,
int *  ,
u_char  ,
u_char *  ,
int 
 

u_char* libnet_build_asn1_uint u_char *  ,
int *  ,
u_char  ,
u_long *  ,
int 
 


Generated on Sun May 14 14:51:27 2006 by  doxygen 1.4.2