asn1.h File Reference

ASN.1 DER parsing. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  asn1_hdr
struct  asn1_oid

Defines

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

Functions

int asn1_get_next (const u8 *buf, size_t len, struct asn1_hdr *hdr)
int asn1_parse_oid (const u8 *buf, size_t len, struct asn1_oid *oid)
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)
unsigned long asn1_bit_string_to_long (const u8 *buf, size_t len)

Detailed Description

ASN.1 DER parsing.

Copyright
Copyright (c) 2006, Jouni Malinen <j@w1.fi>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file asn1.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:22:19 2009 for hostapd by  doxygen 1.6.1