#include "gnutls_int.h"
#include "gnutls_auth_int.h"
#include "gnutls_errors.h"
#include "gnutls_dh.h"
#include "gnutls_num.h"
#include "gnutls_datum.h"
#include "auth_cert.h"
#include <gnutls_pk.h>
#include <gnutls_algorithms.h>
#include <gnutls_global.h>
#include "debug.h"
#include <gnutls_sig.h>
#include <gnutls_x509.h>
#include <gnutls_rsa_export.h>
#include <gnutls_state.h>
Go to the source code of this file.
Functions | |
int | MHD__gnutls_gen_rsa_client_kx (MHD_gtls_session_t, opaque **) |
int | MHD__gnutls_proc_rsa_client_kx (MHD_gtls_session_t, opaque *, size_t) |
static int | gen_rsa_export_server_kx (MHD_gtls_session_t, opaque **) |
static int | proc_rsa_export_server_kx (MHD_gtls_session_t, opaque *, size_t) |
int | MHD__gnutls_peers_cert_less_512 (MHD_gtls_session_t session) |
Variables | |
const MHD_gtls_mod_auth_st | MHD_rsa_export_auth_struct |
static int gen_rsa_export_server_kx | ( | MHD_gtls_session_t | session, | |
opaque ** | data | |||
) | [static] |
Definition at line 68 of file auth_rsa_export.c.
References MHD_gnutls_datum_t::data, GNUTLS_E_INSUFFICIENT_CREDENTIALS, GNUTLS_E_INT_RET_0, GNUTLS_E_MEMORY_ERROR, GNUTLS_E_NO_TEMPORARY_RSA_PARAMS, MHD_gtls_session_int::key, MHD__gnutls_free_datum, MHD__gnutls_mpi_get_nbits, MHD__gnutls_rsa_params_to_mpi(), MHD_gnutls_assert, MHD_GNUTLS_CRD_CERTIFICATE, MHD_gnutls_free, MHD_gnutls_malloc, MHD_gtls_auth_info_set(), MHD_gtls_certificate_get_rsa_params(), MHD_gtls_get_cred(), MHD_gtls_get_selected_cert(), MHD_gtls_mpi_print(), MHD_gtls_realloc_fast(), MHD_gtls_rsa_export_set_pubkey(), MHD_gtls_tls_sign_params(), MHD_gtls_write_datum16(), MHD_gtls_write_uint16(), MHD_gnutls_privkey_int::params, MHD_gtls_certificate_credentials_st::params_func, MHD_gtls_certificate_credentials_st::rsa_params, and MHD_gnutls_datum_t::size.
int MHD__gnutls_gen_rsa_client_kx | ( | MHD_gtls_session_t | , | |
opaque ** | ||||
) |
int MHD__gnutls_peers_cert_less_512 | ( | MHD_gtls_session_t | session | ) |
Definition at line 190 of file auth_rsa_export.c.
References CERT_NO_COPY, MHD_gtls_security_param_st::cert_type, MHD__gnutls_mpi_get_nbits, MHD_gnutls_assert, MHD_GNUTLS_PK_RSA, MHD_gtls_gcert_deinit(), MHD_gtls_get_auth_info(), MHD_gtls_raw_cert_to_gcert(), MHD_gtls_cert_auth_info_st::ncerts, MHD_gnutls_cert::params, MHD_gtls_cert_auth_info_st::raw_certificate_list, MHD_gtls_session_int::security_parameters, and MHD_gnutls_cert::subject_pk_algorithm.
Referenced by MHD_gtls_recv_server_kx_message().
int MHD__gnutls_proc_rsa_client_kx | ( | MHD_gtls_session_t | , | |
opaque * | , | |||
size_t | ||||
) |
static int proc_rsa_export_server_kx | ( | MHD_gtls_session_t | session, | |
opaque * | data, | |||
size_t | _data_size | |||
) | [static] |
Definition at line 232 of file auth_rsa_export.c.
References CERT_NO_COPY, MHD_gtls_security_param_st::cert_type, MHD_gnutls_datum_t::data, DECR_LEN, GNUTLS_E_INTERNAL_ERROR, GNUTLS_E_MPI_SCAN_FAILED, MHD_gtls_session_int::key, MHD_gnutls_assert, MHD_gtls_gcert_deinit(), MHD_gtls_get_auth_info(), MHD_gtls_mpi_scan_nz(), MHD_gtls_raw_cert_to_gcert(), MHD_gtls_read_uint16(), MHD_gtls_rsa_export_set_pubkey(), MHD_gtls_verify_sig_params(), MHD_gtls_cert_auth_info_st::ncerts, MHD_gtls_cert_auth_info_st::raw_certificate_list, MHD_gtls_key::rsa, MHD_gtls_session_int::security_parameters, and MHD_gnutls_datum_t::size.
Initial value:
{ "RSA EXPORT", MHD_gtls_gen_cert_server_certificate, MHD_gtls_gen_cert_client_certificate, gen_rsa_export_server_kx, MHD__gnutls_gen_rsa_client_kx, MHD_gtls_gen_cert_client_cert_vrfy, MHD_gtls_gen_cert_server_cert_req, MHD_gtls_proc_cert_server_certificate, MHD__gnutls_proc_cert_client_certificate, proc_rsa_export_server_kx, MHD__gnutls_proc_rsa_client_kx, MHD_gtls_proc_cert_client_cert_vrfy, MHD_gtls_proc_cert_cert_req }
Definition at line 50 of file auth_rsa_export.c.