#include <gnutls_int.h>
#include <libtasn1.h>
#include <gnutls_datum.h>
#include <gnutls_global.h>
#include <gnutls_errors.h>
#include <gnutls_str.h>
#include <gnutls_x509.h>
#include <gnutls_num.h>
#include <x509_b64.h>
#include <common.h>
#include <mpi.h>
#include <time.h>
Go to the source code of this file.
Functions | |
int | MHD__gnutls_x509_export_int (ASN1_TYPE MHD__asn1_data, MHD_gnutls_x509_crt_fmt_t format, char *pem_header, unsigned char *output_data, size_t *output_data_size) |
static int | MHD__gnutls_x509_decode_octet_string (const char *string_type, const opaque *der, size_t der_size, opaque *output, size_t *output_size) |
int | MHD__gnutls_x509_read_value (ASN1_TYPE c, const char *root, MHD_gnutls_datum_t *ret, int flags) |
int | MHD__gnutls_x509_der_encode (ASN1_TYPE src, const char *src_name, MHD_gnutls_datum_t *res, int str) |
int | MHD__gnutls_x509_get_pk_algorithm (ASN1_TYPE src, const char *src_name, unsigned int *bits) |
static int MHD__gnutls_x509_decode_octet_string | ( | const char * | string_type, | |
const opaque * | der, | |||
size_t | der_size, | |||
opaque * | output, | |||
size_t * | output_size | |||
) | [static] |
Definition at line 133 of file common.c.
References ASN1_SUCCESS, ASN1_TYPE_EMPTY, MHD__asn1_create_element(), MHD__asn1_delete_structure(), MHD__asn1_der_decoding(), MHD__asn1_read_value(), MHD__gnutls_get_pkix, MHD_gnutls_assert, MHD_gtls_asn2err(), MHD_gtls_str_cat(), and MHD_gtls_str_cpy().
Referenced by MHD__gnutls_x509_read_value().
int MHD__gnutls_x509_der_encode | ( | ASN1_TYPE | src, | |
const char * | src_name, | |||
MHD_gnutls_datum_t * | res, | |||
int | str | |||
) |
Definition at line 262 of file common.c.
References ASN1_MEM_ERROR, ASN1_SUCCESS, ASN1_TYPE_EMPTY, MHD_gnutls_datum_t::data, GNUTLS_E_MEMORY_ERROR, MHD__asn1_create_element(), MHD__asn1_delete_structure(), MHD__asn1_der_coding(), MHD__asn1_write_value(), MHD__gnutls_get_pkix, MHD_gnutls_assert, MHD_gnutls_free, MHD_gnutls_malloc, MHD_gtls_asn2err(), and MHD_gnutls_datum_t::size.
Referenced by MHD__gnutls_x509_export_int(), and MHD__gnutls_x509_write_rsa_params().
int MHD__gnutls_x509_export_int | ( | ASN1_TYPE | MHD__asn1_data, | |
MHD_gnutls_x509_crt_fmt_t | format, | |||
char * | pem_header, | |||
unsigned char * | output_data, | |||
size_t * | output_data_size | |||
) |
Definition at line 42 of file common.c.
References ASN1_MEM_ERROR, ASN1_SUCCESS, MHD_gnutls_datum_t::data, GNUTLS_E_INTERNAL_ERROR, GNUTLS_E_SHORT_MEMORY_BUFFER, GNUTLS_X509_FMT_DER, MHD__asn1_der_coding(), MHD__gnutls_fbase64_encode(), MHD__gnutls_free_datum, MHD__gnutls_x509_der_encode(), MHD_gnutls_assert, MHD_gnutls_free, MHD_gtls_asn2err(), and MHD_gnutls_datum_t::size.
Referenced by MHD_gnutls_x509_crt_export().
int MHD__gnutls_x509_get_pk_algorithm | ( | ASN1_TYPE | src, | |
const char * | src_name, | |||
unsigned int * | bits | |||
) |
Definition at line 350 of file common.c.
References ASN1_MEM_ERROR, ASN1_SUCCESS, GNUTLS_E_CERTIFICATE_ERROR, GNUTLS_E_MEMORY_ERROR, MAX_PUBLIC_PARAMS_SIZE, MHD__asn1_read_value(), MHD__gnutls_mpi_get_nbits, MHD__gnutls_x509_log, MHD__gnutls_x509_read_rsa_params(), MHD_gnutls_assert, MHD_gnutls_free, MHD_gnutls_malloc, MHD_GNUTLS_PK_RSA, MHD_gtls_asn2err(), MHD_gtls_mpi_release(), MHD_gtls_str_cat(), MHD_gtls_str_cpy(), and MHD_gtls_x509_oid2pk_algorithm().
Referenced by MHD_gnutls_x509_crt_get_pk_algorithm().
int MHD__gnutls_x509_read_value | ( | ASN1_TYPE | c, | |
const char * | root, | |||
MHD_gnutls_datum_t * | ret, | |||
int | flags | |||
) |
Definition at line 193 of file common.c.
References ASN1_MEM_ERROR, ASN1_SUCCESS, MHD_gnutls_datum_t::data, GNUTLS_E_MEMORY_ERROR, MHD__asn1_read_value(), MHD__gnutls_x509_decode_octet_string(), MHD_gnutls_assert, MHD_gnutls_free, MHD_gnutls_malloc, MHD_gtls_asn2err(), and MHD_gnutls_datum_t::size.
Referenced by MHD__gnutls_x509_crt_get_extension(), and MHD__gnutls_x509_crt_get_mpis().