libisdn
asn1_codec_ber.c File Reference
#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 Documentation

#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.


Function Documentation

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.