libksba  1.5.0
About: KSBA is a library to make the tasks of working with X.509 certificates, CMS data and related objects more easy.
  Fossies Dox: libksba-1.5.0.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

cms-parser.c File Reference
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "util.h"
#include "cms.h"
#include "asn1-func.h"
#include "ber-decoder.h"
#include "ber-help.h"
#include "keyinfo.h"
Include dependency graph for cms-parser.c:

Go to the source code of this file.


static int read_byte (ksba_reader_t reader)
static int read_buffer (ksba_reader_t reader, char *buffer, size_t count)
static gpg_error_t create_and_run_decoder (ksba_reader_t reader, const char *elem_name, unsigned int flags, AsnNode *r_root, unsigned char **r_image, size_t *r_imagelen)
static gpg_error_t parse_content_info (ksba_reader_t reader, unsigned long *r_len, int *r_ndef, char **r_oid, int *has_content)
static gpg_error_t parse_encrypted_content_info (ksba_reader_t reader, unsigned long *r_len, int *r_ndef, char **r_cont_oid, char **r_algo_oid, char **r_algo_parm, size_t *r_algo_parmlen, int *has_content)
gpg_error_t _ksba_cms_parse_content_info (ksba_cms_t cms)
static gpg_error_t parse_cms_version (ksba_reader_t reader, int *r_version, unsigned long *r_len, int *r_ndef)
gpg_error_t _ksba_cms_parse_signed_data_part_1 (ksba_cms_t cms)
gpg_error_t _ksba_cms_parse_signed_data_part_2 (ksba_cms_t cms)
gpg_error_t _ksba_cms_parse_enveloped_data_part_1 (ksba_cms_t cms)
gpg_error_t _ksba_cms_parse_enveloped_data_part_2 (ksba_cms_t cms)

Function Documentation

◆ _ksba_cms_parse_content_info()

gpg_error_t _ksba_cms_parse_content_info ( ksba_cms_t  cms)

◆ _ksba_cms_parse_enveloped_data_part_1()

◆ _ksba_cms_parse_enveloped_data_part_2()

gpg_error_t _ksba_cms_parse_enveloped_data_part_2 ( ksba_cms_t  cms)

Definition at line 969 of file cms-parser.c.

Referenced by ct_parse_enveloped_data().

◆ _ksba_cms_parse_signed_data_part_1()

◆ _ksba_cms_parse_signed_data_part_2()

◆ create_and_run_decoder()

static gpg_error_t create_and_run_decoder ( ksba_reader_t  reader,
const char *  elem_name,
unsigned int  flags,
AsnNode r_root,
unsigned char **  r_image,
size_t *  r_imagelen 

◆ parse_cms_version()

static gpg_error_t parse_cms_version ( ksba_reader_t  reader,
int *  r_version,
unsigned long *  r_len,
int *  r_ndef 

◆ parse_content_info()

static gpg_error_t parse_content_info ( ksba_reader_t  reader,
unsigned long *  r_len,
int *  r_ndef,
char **  r_oid,
int *  has_content 

◆ parse_encrypted_content_info()

static gpg_error_t parse_encrypted_content_info ( ksba_reader_t  reader,
unsigned long *  r_len,
int *  r_ndef,
char **  r_cont_oid,
char **  r_algo_oid,
char **  r_algo_parm,
size_t *  r_algo_parmlen,
int *  has_content 

◆ read_buffer()

static int read_buffer ( ksba_reader_t  reader,
char *  buffer,
size_t  count 

◆ read_byte()

static int read_byte ( ksba_reader_t  reader)

Definition at line 54 of file cms-parser.c.

References ksba_reader_read().

Referenced by parse_cms_version().