libcoap 4.3.5-develop-783b531
Loading...
Searching...
No Matches
coap_asn1.c File Reference

CoAP specific ASN.1 handling. More...

+ Include dependency graph for coap_asn1.c:

Go to the source code of this file.

Functions

size_t asn1_len (const uint8_t **ptr, size_t *plen)
 Get the asn1 length from the current ptr.
 
coap_asn1_tag_t asn1_tag_c (const uint8_t **ptr, size_t *plen, int *constructed, int *cls)
 Get the asn1 tag from the current ptr.
 
static coap_binary_tget_asn1_tag_internal (coap_asn1_tag_t ltag, const uint8_t *ptr, size_t tlen, asn1_validate validate, uint32_t recursive_check)
 
coap_binary_tget_asn1_tag (coap_asn1_tag_t ltag, const uint8_t *ptr, size_t tlen, asn1_validate validate)
 Get the asn1 tag and data from the current ptr.
 
coap_binary_tget_asn1_spki (const uint8_t *data, size_t size)
 Abstract SPKI public key from the ASN1.
 

Variables

static const unsigned char cert_asn1_header1 []
 
static const unsigned char cert_asn1_header2 []
 

Detailed Description

CoAP specific ASN.1 handling.

Definition in file coap_asn1.c.

Function Documentation

◆ get_asn1_tag_internal()

static coap_binary_t * get_asn1_tag_internal ( coap_asn1_tag_t  ltag,
const uint8_t *  ptr,
size_t  tlen,
asn1_validate  validate,
uint32_t  recursive_check 
)
static

Definition at line 87 of file coap_asn1.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ cert_asn1_header1

const unsigned char cert_asn1_header1[]
static
Initial value:
= {
0x30, 0x59,
0x30, 0x13,
0x06, 0x07,
0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02, 0x01,
}

Definition at line 144 of file coap_asn1.c.

◆ cert_asn1_header2

const unsigned char cert_asn1_header2[]
static
Initial value:
= {
0x03, 0x42,
}

Definition at line 155 of file coap_asn1.c.