libisdn
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "asn1.h"
#include "asn1_common.h"
#include "asn1_log.h"
#include "asn1_types.h"
Go to the source code of this file.
Defines | |
#define | INT_MSB1 0x80000000u |
#define | INT_MSB_MASK8 0xff000000u |
Functions | |
int | ber_decode_header (struct asn1_buffer *buf, struct asn1_header *hdr) |
int | ber_encode_header (struct asn1_buffer *buf, const struct asn1_header *hdr) |
int | ber_header_size (const struct asn1_header *hdr) |
int | ber_decode_value (struct asn1_buffer *buf, struct asn1_object *elem) |
int | ber_encode_value (struct asn1_buffer *buf, struct asn1_object *elem) |
#define INT_MSB1 0x80000000u |
Definition at line 47 of file asn1_codec_ber.c.
#define INT_MSB_MASK8 0xff000000u |
Definition at line 48 of file asn1_codec_ber.c.
int ber_decode_header | ( | struct asn1_buffer * | buf, |
struct asn1_header * | hdr | ||
) |
Definition at line 289 of file asn1_codec_ber.c.
References asn1_header::asn_class, asn1_header::asn_complex, asn1_header::asn_type, asn1_buffer::data, asn1_buffer::offset, asn1_header::size, and asn1_buffer::size.
int ber_decode_value | ( | struct asn1_buffer * | buf, |
struct asn1_object * | elem | ||
) |
Definition at line 477 of file asn1_codec_ber.c.
References __asn1_ptr_check, ASN1_CLASS_UNIVERSAL, ASN1_TYPE_ENUMERATED, ASN1_TYPE_INTEGER, ASN1_TYPE_OID, ASN1_TYPE_REAL, asn1_header::asn_class, asn1_header::asn_complex, asn1_header::asn_type, asn1_buffer::data, asn1_object::hdr, asn1_string::length, asn1_oid::length, asn1_buffer::offset, asn1_header::size, asn1_string::value, asn1_real::value, asn1_integer::value, asn1_oid::value, and asn1_enumerated::value.
int ber_encode_header | ( | struct asn1_buffer * | buf, |
const struct asn1_header * | hdr | ||
) |
Definition at line 352 of file asn1_codec_ber.c.
References asn1_header::asn_class, asn1_header::asn_complex, asn1_header::asn_type, asn1_buffer::data, asn1_buffer::offset, and asn1_header::size.
int ber_encode_value | ( | struct asn1_buffer * | buf, |
struct asn1_object * | elem | ||
) |
Definition at line 546 of file asn1_codec_ber.c.
References __asn1_ptr_check, ASN1_CLASS_UNIVERSAL, ASN1_TYPE_ENUMERATED, ASN1_TYPE_INTEGER, ASN1_TYPE_OID, ASN1_TYPE_REAL, asn1_header::asn_class, asn1_header::asn_complex, asn1_header::asn_type, asn1_buffer::data, asn1_object::hdr, asn1_string::length, asn1_oid::length, asn1_buffer::offset, asn1_header::size, asn1_string::value, asn1_real::value, asn1_integer::value, asn1_oid::value, and asn1_enumerated::value.
int ber_header_size | ( | const struct asn1_header * | hdr | ) |
ASN.1 BER codec
Definition at line 428 of file asn1_codec_ber.c.
References asn1_debug(), asn1_header::asn_type, and asn1_header::size.