#include <gnutls.h>
#include <gnutls_algorithms.h>
Go to the source code of this file.
Defines | |
#define | MAX_STRING_LEN 512 |
#define | GNUTLS_XML_SHOW_ALL 1 |
#define | PEM_CRL "X509 CRL" |
#define | PEM_X509_CERT "X509 CERTIFICATE" |
#define | PEM_X509_CERT2 "CERTIFICATE" |
#define | PEM_PKCS7 "PKCS7" |
#define | PEM_PKCS12 "PKCS12" |
#define | PK_PKIX1_RSA_OID "1.2.840.113549.1.1.1" |
#define | PK_DSA_OID "1.2.840.10040.4.1" |
#define | PK_GOST_R3410_94_OID "1.2.643.2.2.20" |
#define | PK_GOST_R3410_2001_OID "1.2.643.2.2.19" |
#define | SIG_DSA_SHA1_OID "1.2.840.10040.4.3" |
#define | SIG_RSA_MD5_OID "1.2.840.113549.1.1.4" |
#define | SIG_RSA_MD2_OID "1.2.840.113549.1.1.2" |
#define | SIG_RSA_SHA1_OID "1.2.840.113549.1.1.5" |
#define | SIG_RSA_SHA256_OID "1.2.840.113549.1.1.11" |
#define | SIG_RSA_SHA384_OID "1.2.840.113549.1.1.12" |
#define | SIG_RSA_SHA512_OID "1.2.840.113549.1.1.13" |
#define | SIG_RSA_RMD160_OID "1.3.36.3.3.1.2" |
#define | SIG_GOST_R3410_94_OID "1.2.643.2.2.4" |
#define | SIG_GOST_R3410_2001_OID "1.2.643.2.2.3" |
Functions | |
int | MHD__gnutls_x509_der_encode (ASN1_TYPE src, const char *src_name, MHD_gnutls_datum_t *res, int str) |
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) |
int | MHD__gnutls_x509_read_value (ASN1_TYPE c, const char *root, MHD_gnutls_datum_t *ret, int str) |
int | MHD__gnutls_x509_decode_and_read_attribute (ASN1_TYPE MHD__asn1_struct, const char *where, char *oid, int oid_size, MHD_gnutls_datum_t *value, int multi, int octet) |
int | MHD__gnutls_x509_get_pk_algorithm (ASN1_TYPE src, const char *src_name, unsigned int *bits) |
int | MHD__gnutls_asn1_copy_node (ASN1_TYPE *dst, const char *dst_name, ASN1_TYPE src, const char *src_name) |
#define PEM_X509_CERT "X509 CERTIFICATE" |
Definition at line 36 of file common.h.
Referenced by MHD_gnutls_x509_crt_import().
#define PEM_X509_CERT2 "CERTIFICATE" |
Definition at line 37 of file common.h.
Referenced by MHD_gnutls_x509_crt_import().
int MHD__gnutls_asn1_copy_node | ( | ASN1_TYPE * | dst, | |
const char * | dst_name, | |||
ASN1_TYPE | src, | |||
const char * | src_name | |||
) |
int MHD__gnutls_x509_decode_and_read_attribute | ( | ASN1_TYPE | MHD__asn1_struct, | |
const char * | where, | |||
char * | oid, | |||
int | oid_size, | |||
MHD_gnutls_datum_t * | value, | |||
int | multi, | |||
int | octet | |||
) |
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 | str | |||
) |
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().