wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
asn1.c File Reference

ASN.1 DER parsing. More...

#include "includes.h"
#include "common.h"
#include "asn1.h"

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 (const struct asn1_oid *oid, char *buf, size_t len)
 
unsigned long asn1_bit_string_to_long (const u8 *buf, size_t len)
 
int asn1_oid_equal (const struct asn1_oid *a, const struct asn1_oid *b)
 

Variables

struct asn1_oid asn1_sha1_oid
 
struct asn1_oid asn1_sha256_oid
 

Detailed Description

ASN.1 DER parsing.

Variable Documentation

struct asn1_oid asn1_sha1_oid
Initial value:
= {
.oid = { 1, 3, 14, 3, 2, 26 },
.len = 6
}
struct asn1_oid asn1_sha256_oid
Initial value:
= {
.oid = { 2, 16, 840, 1, 101, 3, 4, 2, 1 },
.len = 9
}