Classes | Defines | Functions
asn1.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  asn1_hdr
struct  asn1_oid

Defines

#define ANS1_TAG_RELATIVE_OID   0x0D
#define ASN1_CLASS_APPLICATION   1
#define ASN1_CLASS_CONTEXT_SPECIFIC   2
#define ASN1_CLASS_PRIVATE   3
#define ASN1_CLASS_UNIVERSAL   0
#define ASN1_MAX_OID_LEN   20
#define ASN1_TAG_BITSTRING   0x03
#define ASN1_TAG_BMPSTRING   0x1D /* not yet parsed */
#define ASN1_TAG_BOOLEAN   0x01
#define ASN1_TAG_ENUMERATED   0x0A /* not yet parsed */
#define ASN1_TAG_EOC   0x00 /* not used with DER */
#define ASN1_TAG_EXTERNAL   0x08 /* not yet parsed */
#define ASN1_TAG_GENERALIZEDTIME   0x18 /* not yet parsed */
#define ASN1_TAG_GENERALSTRING   0x1B /* not yet parsed */
#define ASN1_TAG_GRAPHICSTRING   0x19 /* not yet parsed */
#define ASN1_TAG_IA5STRING   0x16
#define ASN1_TAG_INTEGER   0x02
#define ASN1_TAG_NULL   0x05
#define ASN1_TAG_NUMERICSTRING   0x12 /* not yet parsed */
#define ASN1_TAG_OBJECT_DESCRIPTOR   0x07 /* not yet parsed */
#define ASN1_TAG_OCTETSTRING   0x04
#define ASN1_TAG_OID   0x06
#define ASN1_TAG_PRINTABLESTRING   0x13
#define ASN1_TAG_REAL   0x09 /* not yet parsed */
#define ASN1_TAG_SEQUENCE   0x10 /* shall be constructed */
#define ASN1_TAG_SET   0x11
#define ASN1_TAG_TG1STRING   0x14 /* not yet parsed */
#define ASN1_TAG_UNIVERSALSTRING   0x1C /* not yet parsed */
#define ASN1_TAG_UTCTIME   0x17
#define ASN1_TAG_UTF8STRING   0x0C /* not yet parsed */
#define ASN1_TAG_VIDEOTEXSTRING   0x15 /* not yet parsed */
#define ASN1_TAG_VISIBLESTRING   0x1A

Functions

unsigned long asn1_bit_string_to_long (const u8 *buf, size_t len)
int asn1_get_next (const u8 *buf, size_t len, struct asn1_hdr *hdr)
int asn1_get_oid (const u8 *buf, size_t len, struct asn1_oid *oid, const u8 **next)
void asn1_oid_to_str (struct asn1_oid *oid, char *buf, size_t len)
int asn1_parse_oid (const u8 *buf, size_t len, struct asn1_oid *oid)

Define Documentation

#define ANS1_TAG_RELATIVE_OID   0x0D

Definition at line 30 of file asn1.h.

#define ASN1_CLASS_APPLICATION   1

Definition at line 47 of file asn1.h.

Definition at line 48 of file asn1.h.

#define ASN1_CLASS_PRIVATE   3

Definition at line 49 of file asn1.h.

#define ASN1_CLASS_UNIVERSAL   0

Definition at line 46 of file asn1.h.

#define ASN1_MAX_OID_LEN   20

Definition at line 58 of file asn1.h.

#define ASN1_TAG_BITSTRING   0x03

Definition at line 21 of file asn1.h.

#define ASN1_TAG_BMPSTRING   0x1D /* not yet parsed */

Definition at line 44 of file asn1.h.

#define ASN1_TAG_BOOLEAN   0x01

Definition at line 19 of file asn1.h.

#define ASN1_TAG_ENUMERATED   0x0A /* not yet parsed */

Definition at line 28 of file asn1.h.

#define ASN1_TAG_EOC   0x00 /* not used with DER */

Definition at line 18 of file asn1.h.

#define ASN1_TAG_EXTERNAL   0x08 /* not yet parsed */

Definition at line 26 of file asn1.h.

#define ASN1_TAG_GENERALIZEDTIME   0x18 /* not yet parsed */

Definition at line 39 of file asn1.h.

#define ASN1_TAG_GENERALSTRING   0x1B /* not yet parsed */

Definition at line 42 of file asn1.h.

#define ASN1_TAG_GRAPHICSTRING   0x19 /* not yet parsed */

Definition at line 40 of file asn1.h.

#define ASN1_TAG_IA5STRING   0x16

Definition at line 37 of file asn1.h.

#define ASN1_TAG_INTEGER   0x02

Definition at line 20 of file asn1.h.

#define ASN1_TAG_NULL   0x05

Definition at line 23 of file asn1.h.

#define ASN1_TAG_NUMERICSTRING   0x12 /* not yet parsed */

Definition at line 33 of file asn1.h.

#define ASN1_TAG_OBJECT_DESCRIPTOR   0x07 /* not yet parsed */

Definition at line 25 of file asn1.h.

#define ASN1_TAG_OCTETSTRING   0x04

Definition at line 22 of file asn1.h.

#define ASN1_TAG_OID   0x06

Definition at line 24 of file asn1.h.

#define ASN1_TAG_PRINTABLESTRING   0x13

Definition at line 34 of file asn1.h.

#define ASN1_TAG_REAL   0x09 /* not yet parsed */

Definition at line 27 of file asn1.h.

#define ASN1_TAG_SEQUENCE   0x10 /* shall be constructed */

Definition at line 31 of file asn1.h.

#define ASN1_TAG_SET   0x11

Definition at line 32 of file asn1.h.

#define ASN1_TAG_TG1STRING   0x14 /* not yet parsed */

Definition at line 35 of file asn1.h.

#define ASN1_TAG_UNIVERSALSTRING   0x1C /* not yet parsed */

Definition at line 43 of file asn1.h.

#define ASN1_TAG_UTCTIME   0x17

Definition at line 38 of file asn1.h.

#define ASN1_TAG_UTF8STRING   0x0C /* not yet parsed */

Definition at line 29 of file asn1.h.

#define ASN1_TAG_VIDEOTEXSTRING   0x15 /* not yet parsed */

Definition at line 36 of file asn1.h.

#define ASN1_TAG_VISIBLESTRING   0x1A

Definition at line 41 of file asn1.h.


Function Documentation

unsigned long asn1_bit_string_to_long ( const u8 *  buf,
size_t  len 
)

Definition at line 189 of file asn1.c.

int asn1_get_next ( const u8 *  buf,
size_t  len,
struct asn1_hdr hdr 
)

Definition at line 20 of file asn1.c.

int asn1_get_oid ( const u8 *  buf,
size_t  len,
struct asn1_oid oid,
const u8 **  next 
)

Definition at line 129 of file asn1.c.

void asn1_oid_to_str ( struct asn1_oid oid,
char *  buf,
size_t  len 
)

Definition at line 149 of file asn1.c.

int asn1_parse_oid ( const u8 *  buf,
size_t  len,
struct asn1_oid oid 
)

Definition at line 85 of file asn1.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:37