gnutls_cert.h File Reference

#include <gnutls_pk.h>
#include "x509.h"
Include dependency graph for gnutls_cert.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MHD_gnutls_cert
struct  MHD_gnutls_privkey_int

Defines

#define MAX_PUBLIC_PARAMS_SIZE   4
#define DSA_PUBLIC_PARAMS   4
#define RSA_PUBLIC_PARAMS   2
#define KEY_DIGITAL_SIGNATURE   128
#define KEY_NON_REPUDIATION   64
#define KEY_KEY_ENCIPHERMENT   32
#define KEY_DATA_ENCIPHERMENT   16
#define KEY_KEY_AGREEMENT   8
#define KEY_KEY_CERT_SIGN   4
#define KEY_CRL_SIGN   2
#define KEY_ENCIPHER_ONLY   1
#define KEY_DECIPHER_ONLY   32768

Typedefs

typedef struct
MHD_gnutls_privkey_int 
MHD_gnutls_privkey

Enumerations

enum  ConvFlags { CERT_NO_COPY = 2, CERT_ONLY_PUBKEY = 4, CERT_ONLY_EXTENSIONS = 16 }

Functions

int MHD_gtls_x509_raw_cert_to_gcert (MHD_gnutls_cert *gcert, const MHD_gnutls_datum_t *derCert, int flags)
int MHD_gtls_x509_crt_to_gcert (MHD_gnutls_cert *gcert, MHD_gnutls_x509_crt_t cert, unsigned int flags)
void MHD_gtls_gkey_deinit (MHD_gnutls_privkey *key)
void MHD_gtls_gcert_deinit (MHD_gnutls_cert *cert)
int MHD_gtls_selected_cert_supported_kx (struct MHD_gtls_session_int *session, enum MHD_GNUTLS_KeyExchangeAlgorithm **alg, int *alg_size)
int MHD_gtls_raw_cert_to_gcert (MHD_gnutls_cert *gcert, enum MHD_GNUTLS_CertificateType type, const MHD_gnutls_datum_t *raw_cert, int flags)

Define Documentation

#define DSA_PUBLIC_PARAMS   4

Definition at line 34 of file gnutls_cert.h.

#define KEY_CRL_SIGN   2

Definition at line 46 of file gnutls_cert.h.

#define KEY_DATA_ENCIPHERMENT   16

Definition at line 43 of file gnutls_cert.h.

#define KEY_DECIPHER_ONLY   32768

Definition at line 48 of file gnutls_cert.h.

#define KEY_DIGITAL_SIGNATURE   128
#define KEY_ENCIPHER_ONLY   1

Definition at line 47 of file gnutls_cert.h.

#define KEY_KEY_AGREEMENT   8

Definition at line 44 of file gnutls_cert.h.

#define KEY_KEY_CERT_SIGN   4

Definition at line 45 of file gnutls_cert.h.

#define KEY_KEY_ENCIPHERMENT   32

Definition at line 42 of file gnutls_cert.h.

Referenced by MHD__gnutls_check_key_usage().

#define KEY_NON_REPUDIATION   64

Definition at line 41 of file gnutls_cert.h.

#define MAX_PUBLIC_PARAMS_SIZE   4
#define RSA_PUBLIC_PARAMS   2

Definition at line 35 of file gnutls_cert.h.

Referenced by MHD__gnutls_x509_crt_get_mpis(), and MHD_gtls_pkcs1_rsa_encrypt().


Typedef Documentation


Enumeration Type Documentation

enum ConvFlags
Enumerator:
CERT_NO_COPY 
CERT_ONLY_PUBKEY 
CERT_ONLY_EXTENSIONS 

Definition at line 102 of file gnutls_cert.h.


Function Documentation

void MHD_gtls_gcert_deinit ( MHD_gnutls_cert cert  ) 
void MHD_gtls_gkey_deinit ( MHD_gnutls_privkey key  ) 

Definition at line 400 of file gnutls_x509.c.

References MHD_gtls_mpi_release(), MHD_gnutls_privkey_int::params, and MHD_gnutls_privkey_int::params_size.

Referenced by MHD__gnutls_certificate_free_keys(), and MHD_gtls_selected_certs_deinit().

Here is the call graph for this function:

Here is the caller graph for this function:

int MHD_gtls_raw_cert_to_gcert ( MHD_gnutls_cert gcert,
enum MHD_GNUTLS_CertificateType  type,
const MHD_gnutls_datum_t raw_cert,
int  flags 
)
int MHD_gtls_selected_cert_supported_kx ( struct MHD_gtls_session_int session,
enum MHD_GNUTLS_KeyExchangeAlgorithm **  alg,
int *  alg_size 
)
int MHD_gtls_x509_crt_to_gcert ( MHD_gnutls_cert gcert,
MHD_gnutls_x509_crt_t  cert,
unsigned int  flags 
)
int MHD_gtls_x509_raw_cert_to_gcert ( MHD_gnutls_cert gcert,
const MHD_gnutls_datum_t derCert,
int  flags 
)

Definition at line 309 of file gnutls_cert.c.

References GNUTLS_X509_FMT_DER, MHD_gnutls_assert, MHD_gnutls_x509_crt_deinit(), MHD_gnutls_x509_crt_import(), MHD_gnutls_x509_crt_init(), and MHD_gtls_x509_crt_to_gcert().

Referenced by MHD_gtls_proc_x509_server_certificate(), MHD_gtls_raw_cert_to_gcert(), and parse_pem_cert_mem().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  doxygen 1.6.2