Functions | Variables
ber.c File Reference
#include <openssl/bytestring.h>
#include <assert.h>
#include <string.h>
#include "internal.h"
#include "../internal.h"
Include dependency graph for ber.c:

Go to the source code of this file.

Functions

int CBS_asn1_ber_to_der (CBS *in, CBS *out, uint8_t **out_storage)
 
static int cbs_convert_ber (CBS *in, CBB *out, unsigned string_tag, char looking_for_eoc, unsigned depth)
 
static int cbs_find_ber (const CBS *orig_in, int *ber_found, unsigned depth)
 
int CBS_get_asn1_implicit_string (CBS *in, CBS *out, uint8_t **out_storage, unsigned outer_tag, unsigned inner_tag)
 
static char is_eoc (size_t header_len, CBS *contents)
 
static int is_string_type (unsigned tag)
 

Variables

static const unsigned kMaxDepth = 2048
 

Function Documentation

◆ CBS_asn1_ber_to_der()

int CBS_asn1_ber_to_der ( CBS in,
CBS out,
uint8_t **  out_storage 
)

Definition at line 193 of file ber.c.

◆ cbs_convert_ber()

static int cbs_convert_ber ( CBS in,
CBB out,
unsigned  string_tag,
char  looking_for_eoc,
unsigned  depth 
)
static

Definition at line 110 of file ber.c.

◆ cbs_find_ber()

static int cbs_find_ber ( const CBS orig_in,
int ber_found,
unsigned  depth 
)
static

Definition at line 58 of file ber.c.

◆ CBS_get_asn1_implicit_string()

int CBS_get_asn1_implicit_string ( CBS in,
CBS out,
uint8_t **  out_storage,
unsigned  outer_tag,
unsigned  inner_tag 
)

Definition at line 223 of file ber.c.

◆ is_eoc()

static char is_eoc ( size_t  header_len,
CBS contents 
)
static

Definition at line 98 of file ber.c.

◆ is_string_type()

static int is_string_type ( unsigned  tag)
static

Definition at line 31 of file ber.c.

Variable Documentation

◆ kMaxDepth

const unsigned kMaxDepth = 2048
static

Definition at line 27 of file ber.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:04