libksba  1.6.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.6.0.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ber-decoder.h File Reference
#include "asn1-func.h"
Include dependency graph for ber-decoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.




typedef struct ber_decoder_sBerDecoder


BerDecoder _ksba_ber_decoder_new (void)
void _ksba_ber_decoder_release (BerDecoder d)
gpg_error_t _ksba_ber_decoder_set_module (BerDecoder d, ksba_asn_tree_t module)
gpg_error_t _ksba_ber_decoder_set_reader (BerDecoder d, ksba_reader_t r)
gpg_error_t _ksba_ber_decoder_dump (BerDecoder d, FILE *fp)
gpg_error_t _ksba_ber_decoder_decode (BerDecoder d, const char *start_name, unsigned int flags, AsnNode *r_root, unsigned char **r_image, size_t *r_imagelen)

Macro Definition Documentation



Definition at line 52 of file ber-decoder.h.

Typedef Documentation

◆ BerDecoder

typedef struct ber_decoder_s* BerDecoder

Definition at line 37 of file ber-decoder.h.

Function Documentation

◆ _ksba_ber_decoder_decode()

◆ _ksba_ber_decoder_dump()

◆ _ksba_ber_decoder_new()

BerDecoder _ksba_ber_decoder_new ( void  )

Definition at line 344 of file ber-decoder.c.

References xtrycalloc.

Referenced by _ksba_cert_read_der(), create_and_run_decoder(), and one_file().

◆ _ksba_ber_decoder_release()

void _ksba_ber_decoder_release ( BerDecoder  d)

Definition at line 356 of file ber-decoder.c.

References xfree.

Referenced by _ksba_cert_read_der(), create_and_run_decoder(), and one_file().

◆ _ksba_ber_decoder_set_module()

gpg_error_t _ksba_ber_decoder_set_module ( BerDecoder  d,
ksba_asn_tree_t  module 

_ksba_ber_decoder_set_module: @d: Decoder object @module: ASN.1 Parse tree

Initialize the decoder with the ASN.1 module. Note, that this is a shallow copy of the module. Hmmm: What about ref-counting of AsnNodes?

Return value: 0 on success or an error code

Definition at line 373 of file ber-decoder.c.

References GPG_ERR_INV_VALUE, gpg_error, ber_decoder_s::module, and ksba_asn_tree_s::parse_tree.

Referenced by _ksba_cert_read_der(), create_and_run_decoder(), and one_file().

◆ _ksba_ber_decoder_set_reader()

gpg_error_t _ksba_ber_decoder_set_reader ( BerDecoder  d,
ksba_reader_t  r