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)  

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

Go to the source code of this file.


gpg_error_t _ksba_asntime_to_iso (const char *buffer, size_t length, int is_utctime, ksba_isotime_t timebuf)
gpg_error_t _ksba_assert_time_format (const ksba_isotime_t atime)
void _ksba_copy_time (ksba_isotime_t d, const ksba_isotime_t s)
int _ksba_cmp_time (const ksba_isotime_t a, const ksba_isotime_t b)
void _ksba_current_time (ksba_isotime_t timebuf)
gpg_error_t _ksba_dn_to_str (const unsigned char *image, AsnNode node, char **r_string)
gpg_error_t _ksba_derdn_to_str (const unsigned char *der, size_t derlen, char **r_string)
gpg_error_t _ksba_dn_from_str (const char *string, char **rbuf, size_t *rlength)
char * _ksba_oid_node_to_str (const unsigned char *image, AsnNode node)
gpg_error_t _ksba_oid_from_buf (const void *buffer, size_t buflen, unsigned char **rbuf, size_t *rlength)
gpg_error_t _ksba_name_new_from_der (ksba_name_t *r_name, const unsigned char *image, size_t imagelen)

Function Documentation

◆ _ksba_asntime_to_iso()

gpg_error_t _ksba_asntime_to_iso ( const char *  buffer,
size_t  length,
int  is_utctime,
ksba_isotime_t  timebuf 

◆ _ksba_assert_time_format()

gpg_error_t _ksba_assert_time_format ( const ksba_isotime_t  atime)

Definition at line 102 of file time.c.

References digitp, GPG_ERR_BUG, and gpg_error.

Referenced by _ksba_certreq_set_validity(), _ksba_copy_time(), and _ksba_der_store_time().

◆ _ksba_cmp_time()

int _ksba_cmp_time ( const ksba_isotime_t  a,
const ksba_isotime_t  b 

Definition at line 145 of file time.c.

Referenced by _ksba_der_store_time(), and build_cri().

◆ _ksba_copy_time()

◆ _ksba_current_time()

void _ksba_current_time ( ksba_isotime_t  timebuf)

Definition at line 152 of file time.c.

Referenced by _ksba_cms_set_signing_time().

◆ _ksba_derdn_to_str()

gpg_error_t _ksba_derdn_to_str ( const unsigned char *  der,
size_t  derlen,
char **  r_string 

◆ _ksba_dn_from_str()

◆ _ksba_dn_to_str()

gpg_error_t _ksba_dn_to_str ( const unsigned char *  image,
AsnNode  node,
char **  r_string 

◆ _ksba_name_new_from_der()

◆ _ksba_oid_from_buf()

gpg_error_t _ksba_oid_from_buf ( const void *  buffer,
size_t  buflen,
unsigned char **  rbuf,
size_t *  rlength 

Definition at line 269 of file oid.c.

References gpg_error_from_syserror, ksba_oid_from_str(), xfree, and xtrymalloc.

◆ _ksba_oid_node_to_str()

char* _ksba_oid_node_to_str ( const unsigned char *  image,
AsnNode  node