gnutls

gnutls

Synopsis

#define             HAVE_SSIZE_T
#define             GNUTLS_VERSION
#define             GNUTLS_VERSION_MAJOR
#define             GNUTLS_VERSION_MINOR
#define             GNUTLS_VERSION_PATCH
#define             GNUTLS_VERSION_NUMBER
#define             GNUTLS_CIPHER_RIJNDAEL_128_CBC
#define             GNUTLS_CIPHER_RIJNDAEL_256_CBC
#define             GNUTLS_CIPHER_RIJNDAEL_CBC
#define             GNUTLS_CIPHER_ARCFOUR
enum                gnutls_cipher_algorithm_t;
enum                gnutls_kx_algorithm_t;
enum                gnutls_params_type_t;
enum                gnutls_credentials_type_t;
#define             GNUTLS_MAC_SHA
#define             GNUTLS_DIG_SHA
enum                gnutls_mac_algorithm_t;
enum                gnutls_digest_algorithm_t;
#define             GNUTLS_MAX_ALGORITHM_NUM
#define             GNUTLS_COMP_ZLIB
enum                gnutls_compression_method_t;
enum                gnutls_connection_end_t;
enum                gnutls_alert_level_t;
enum                gnutls_alert_description_t;
enum                gnutls_handshake_description_t;
enum                gnutls_certificate_status_t;
enum                gnutls_certificate_request_t;
enum                gnutls_openpgp_crt_status_t;
enum                gnutls_close_request_t;
#define             GNUTLS_TLS1
enum                gnutls_protocol_t;
enum                gnutls_certificate_type_t;
enum                gnutls_x509_crt_fmt_t;
enum                gnutls_certificate_print_formats_t;
enum                gnutls_pk_algorithm_t;
const char *        gnutls_pk_algorithm_get_name        (gnutls_pk_algorithm_t algorithm);
#define             GNUTLS_SIGN_RSA_SHA
#define             GNUTLS_SIGN_DSA_SHA
enum                gnutls_sign_algorithm_t;
const char *        gnutls_sign_algorithm_get_name      (gnutls_sign_algorithm_t sign);
typedef             gnutls_transport_ptr_t;
struct              gnutls_session_int;
typedef             gnutls_session_t;
struct              gnutls_dh_params_int;
typedef             gnutls_dh_params_t;
struct              gnutls_x509_privkey_int;
typedef             gnutls_rsa_params_t;
struct              gnutls_priority_st;
typedef             gnutls_priority_t;
int                 gnutls_init                         (gnutls_session_t *session,
                                                         gnutls_connection_end_t con_end);
void                gnutls_deinit                       (gnutls_session_t session);
int                 gnutls_bye                          (gnutls_session_t session,
                                                         gnutls_close_request_t how);
int                 gnutls_handshake                    (gnutls_session_t session);
int                 gnutls_rehandshake                  (gnutls_session_t session);
gnutls_alert_description_t  gnutls_alert_get            (gnutls_session_t session);
int                 gnutls_alert_send                   (gnutls_session_t session,
                                                         gnutls_alert_level_t level,
                                                         gnutls_alert_description_t desc);
int                 gnutls_alert_send_appropriate       (gnutls_session_t session,
                                                         int err);
const char *        gnutls_alert_get_name               (gnutls_alert_description_t alert);
gnutls_cipher_algorithm_t  gnutls_cipher_get            (gnutls_session_t session);
gnutls_kx_algorithm_t  gnutls_kx_get                    (gnutls_session_t session);
gnutls_mac_algorithm_t  gnutls_mac_get                  (gnutls_session_t session);
gnutls_compression_method_t  gnutls_compression_get     (gnutls_session_t session);
gnutls_certificate_type_t  gnutls_certificate_type_get  (gnutls_session_t session);
size_t              gnutls_cipher_get_key_size          (gnutls_cipher_algorithm_t algorithm);
size_t              gnutls_mac_get_key_size             (gnutls_mac_algorithm_t algorithm);
const char *        gnutls_cipher_get_name              (gnutls_cipher_algorithm_t algorithm);
const char *        gnutls_mac_get_name                 (gnutls_mac_algorithm_t algorithm);
const char *        gnutls_compression_get_name         (gnutls_compression_method_t algorithm);
const char *        gnutls_kx_get_name                  (gnutls_kx_algorithm_t algorithm);
const char *        gnutls_certificate_type_get_name    (gnutls_certificate_type_t type);
const char *        gnutls_pk_get_name                  (gnutls_pk_algorithm_t algorithm);
const char *        gnutls_sign_get_name                (gnutls_sign_algorithm_t algorithm);
gnutls_mac_algorithm_t  gnutls_mac_get_id               (const char *name);
gnutls_compression_method_t  gnutls_compression_get_id  (const char *name);
gnutls_cipher_algorithm_t  gnutls_cipher_get_id         (const char *name);
gnutls_kx_algorithm_t  gnutls_kx_get_id                 (const char *name);
gnutls_protocol_t   gnutls_protocol_get_id              (const char *name);
gnutls_certificate_type_t  gnutls_certificate_type_get_id
                                                        (const char *name);
gnutls_pk_algorithm_t  gnutls_pk_get_id                 (const char *name);
gnutls_sign_algorithm_t  gnutls_sign_get_id             (const char *name);
const gnutls_cipher_algorithm_t * gnutls_cipher_list    (void);
const gnutls_mac_algorithm_t * gnutls_mac_list          (void);
const gnutls_compression_method_t * gnutls_compression_list
                                                        (void);
const gnutls_protocol_t * gnutls_protocol_list          (void);
const gnutls_certificate_type_t * gnutls_certificate_type_list
                                                        (void);
const gnutls_kx_algorithm_t * gnutls_kx_list            (void);
const gnutls_pk_algorithm_t * gnutls_pk_list            (void);
const gnutls_sign_algorithm_t * gnutls_sign_list        (void);
const char *        gnutls_cipher_suite_info            (size_t idx,
                                                         char *cs_id,
                                                         gnutls_kx_algorithm_t *kx,
                                                         gnutls_cipher_algorithm_t *cipher,
                                                         gnutls_mac_algorithm_t *mac,
                                                         gnutls_protocol_t *version);
int                 gnutls_error_is_fatal               (int error);
int                 gnutls_error_to_alert               (int err,
                                                         int *level);
void                gnutls_perror                       (int error);
const char *        gnutls_strerror                     (int error);
const char *        gnutls_strerror_name                (int error);
void                gnutls_handshake_set_private_extensions
                                                        (gnutls_session_t session,
                                                         int allow);
gnutls_handshake_description_t  gnutls_handshake_get_last_out
                                                        (gnutls_session_t session);
gnutls_handshake_description_t  gnutls_handshake_get_last_in
                                                        (gnutls_session_t session);
ssize_t             gnutls_record_send                  (gnutls_session_t session,
                                                         const void *data,
                                                         size_t sizeofdata);
ssize_t             gnutls_record_recv                  (gnutls_session_t session,
                                                         void *data,
                                                         size_t sizeofdata);
#define             gnutls_read
#define             gnutls_write
void                gnutls_session_enable_compatibility_mode
                                                        (gnutls_session_t session);
void                gnutls_record_disable_padding       (gnutls_session_t session);
int                 gnutls_record_get_direction         (gnutls_session_t session);
size_t              gnutls_record_get_max_size          (gnutls_session_t session);
ssize_t             gnutls_record_set_max_size          (gnutls_session_t session,
                                                         size_t size);
size_t              gnutls_record_check_pending         (gnutls_session_t session);
int                 gnutls_prf                          (gnutls_session_t session,
                                                         size_t label_size,
                                                         const char *label,
                                                         int server_random_first,
                                                         size_t extra_size,
                                                         const char *extra,
                                                         size_t outsize,
                                                         char *out);
int                 gnutls_prf_raw                      (gnutls_session_t session,
                                                         size_t label_size,
                                                         const char *label,
                                                         size_t seed_size,
                                                         const char *seed,
                                                         size_t outsize,
                                                         char *out);
int                 (*gnutls_ext_recv_func)             (gnutls_session_t session,
                                                         unsigned char *data,
                                                         size_t len);
int                 (*gnutls_ext_send_func)             (gnutls_session_t session,
                                                         unsigned char *data,
                                                         size_t len);
enum                gnutls_ext_parse_type_t;
int                 gnutls_ext_register                 (int type,
                                                         const char *name,
                                                         gnutls_ext_parse_type_t parse_type,
                                                         gnutls_ext_recv_func recv_func,
                                                         gnutls_ext_send_func send_func);
enum                gnutls_server_name_type_t;
int                 gnutls_server_name_set              (gnutls_session_t session,
                                                         gnutls_server_name_type_t type,
                                                         const void *name,
                                                         size_t name_length);
int                 gnutls_server_name_get              (gnutls_session_t session,
                                                         void *data,
                                                         size_t *data_length,
                                                         unsigned int *type,
                                                         unsigned int indx);
void                gnutls_oprfi_enable_client          (gnutls_session_t session,
                                                         size_t len,
                                                         unsigned char *data);
int                 (*gnutls_oprfi_callback_func)       (gnutls_session_t session,
                                                         void *userdata,
                                                         size_t oprfi_len,
                                                         unsigned char *in_oprfi,
                                                         unsigned char *out_oprfi);
void                gnutls_oprfi_enable_server          (gnutls_session_t session,
                                                         gnutls_oprfi_callback_func cb,
                                                         void *userdata);
enum                gnutls_supplemental_data_format_type_t;
const char *        gnutls_supplemental_get_name        (gnutls_supplemental_data_format_type_t type);
int                 gnutls_cipher_set_priority          (gnutls_session_t session,
                                                         const int *list);
int                 gnutls_mac_set_priority             (gnutls_session_t session,
                                                         const int *list);
int                 gnutls_compression_set_priority     (gnutls_session_t session,
                                                         const int *list);
int                 gnutls_kx_set_priority              (gnutls_session_t session,
                                                         const int *list);
int                 gnutls_protocol_set_priority        (gnutls_session_t session,
                                                         const int *list);
int                 gnutls_certificate_type_set_priority
                                                        (gnutls_session_t session,
                                                         const int *list);
int                 gnutls_priority_init                (gnutls_priority_t *priority_cache,
                                                         const char *priorities,
                                                         const char **err_pos);
void                gnutls_priority_deinit              (gnutls_priority_t priority_cache);
int                 gnutls_priority_set                 (gnutls_session_t session,
                                                         gnutls_priority_t priority);
int                 gnutls_priority_set_direct          (gnutls_session_t session,
                                                         const char *priorities,
                                                         const char **err_pos);
int                 gnutls_set_default_priority         (gnutls_session_t session);
int                 gnutls_set_default_export_priority  (gnutls_session_t session);
const char *        gnutls_cipher_suite_get_name        (gnutls_kx_algorithm_t kx_algorithm,
                                                         gnutls_cipher_algorithm_t cipher_algorithm,
                                                         gnutls_mac_algorithm_t mac_algorithm);
gnutls_protocol_t   gnutls_protocol_get_version         (gnutls_session_t session);
const char *        gnutls_protocol_get_name            (gnutls_protocol_t version);
int                 gnutls_session_set_data             (gnutls_session_t session,
                                                         const void *session_data,
                                                         size_t session_data_size);
int                 gnutls_session_get_data             (gnutls_session_t session,
                                                         void *session_data,
                                                         size_t *session_data_size);
int                 gnutls_session_get_data2            (gnutls_session_t session,
                                                         gnutls_datum_t *data);
#define             GNUTLS_MAX_SESSION_ID
int                 gnutls_session_get_id               (gnutls_session_t session,
                                                         void *session_id,
                                                         size_t *session_id_size);
#define             GNUTLS_MASTER_SIZE
#define             GNUTLS_RANDOM_SIZE
const void *        gnutls_session_get_server_random    (gnutls_session_t session);
const void *        gnutls_session_get_client_random    (gnutls_session_t session);
const void *        gnutls_session_get_master_secret    (gnutls_session_t session);
void                (*gnutls_finished_callback_func)    (gnutls_session_t session,
                                                         const void *finished,
                                                         size_t len);
void                gnutls_session_set_finished_function
                                                        (gnutls_session_t session,
                                                         gnutls_finished_callback_func func);
int                 gnutls_session_is_resumed           (gnutls_session_t session);
int                 (*gnutls_db_store_func)             (void *Param1,
                                                         gnutls_datum_t key,
                                                         gnutls_datum_t data);
int                 (*gnutls_db_remove_func)            (void *Param1,
                                                         gnutls_datum_t key);
gnutls_datum_t      (*gnutls_db_retr_func)              (void *Param1,
                                                         gnutls_datum_t key);
void                gnutls_db_set_cache_expiration      (gnutls_session_t session,
                                                         int seconds);
void                gnutls_db_remove_session            (gnutls_session_t session);
void                gnutls_db_set_retrieve_function     (gnutls_session_t session,
                                                         gnutls_db_retr_func retr_func);
void                gnutls_db_set_remove_function       (gnutls_session_t session,
                                                         gnutls_db_remove_func rem_func);
void                gnutls_db_set_store_function        (gnutls_session_t session,
                                                         gnutls_db_store_func store_func);
void                gnutls_db_set_ptr                   (gnutls_session_t session,
                                                         void *ptr);
void *              gnutls_db_get_ptr                   (gnutls_session_t session);
int                 gnutls_db_check_entry               (gnutls_session_t session,
                                                         gnutls_datum_t session_entry);
int                 (*gnutls_handshake_post_client_hello_func)
                                                        (gnutls_session_t Param1);
void                gnutls_handshake_set_post_client_hello_function
                                                        (gnutls_session_t session,
                                                         gnutls_handshake_post_client_hello_func func);
void                gnutls_handshake_set_max_packet_length
                                                        (gnutls_session_t session,
                                                         size_t max);
const char *        gnutls_check_version                (const char *req_version);
void                gnutls_credentials_clear            (gnutls_session_t session);
int                 gnutls_credentials_set              (gnutls_session_t session,
                                                         gnutls_credentials_type_t type,
                                                         void *cred);
#define             gnutls_cred_set
struct              gnutls_certificate_credentials_st;
void                gnutls_anon_free_server_credentials (gnutls_anon_server_credentials_t sc);
int                 gnutls_anon_allocate_server_credentials
                                                        (gnutls_anon_server_credentials_t *sc);
void                gnutls_anon_set_server_dh_params    (gnutls_anon_server_credentials_t res,
                                                         gnutls_dh_params_t dh_params);
void                gnutls_anon_set_server_params_function
                                                        (gnutls_anon_server_credentials_t res,
                                                         gnutls_params_function *func);
void                gnutls_anon_free_client_credentials (gnutls_anon_client_credentials_t sc);
int                 gnutls_anon_allocate_client_credentials
                                                        (gnutls_anon_client_credentials_t *sc);
void                gnutls_certificate_free_credentials (gnutls_certificate_credentials_t sc);
int                 gnutls_certificate_allocate_credentials
                                                        (gnutls_certificate_credentials_t *res);
void                gnutls_certificate_free_keys        (gnutls_certificate_credentials_t sc);
void                gnutls_certificate_free_cas         (gnutls_certificate_credentials_t sc);
void                gnutls_certificate_free_ca_names    (gnutls_certificate_credentials_t sc);
void                gnutls_certificate_free_crls        (gnutls_certificate_credentials_t sc);
void                gnutls_certificate_set_dh_params    (gnutls_certificate_credentials_t res,
                                                         gnutls_dh_params_t dh_params);
void                gnutls_certificate_set_rsa_export_params
                                                        (gnutls_certificate_credentials_t res,
                                                         gnutls_rsa_params_t rsa_params);
void                gnutls_certificate_set_verify_flags (gnutls_certificate_credentials_t res,
                                                         unsigned int flags);
void                gnutls_certificate_set_verify_limits
                                                        (gnutls_certificate_credentials_t res,
                                                         unsigned int max_bits,
                                                         unsigned int max_depth);
int                 gnutls_certificate_set_x509_trust_file
                                                        (gnutls_certificate_credentials_t res,
                                                         const char *cafile,
                                                         gnutls_x509_crt_fmt_t type);
int                 gnutls_certificate_set_x509_trust_mem
                                                        (gnutls_certificate_credentials_t res,
                                                         const gnutls_datum_t *ca,
                                                         gnutls_x509_crt_fmt_t type);
int                 gnutls_certificate_set_x509_crl_file
                                                        (gnutls_certificate_credentials_t res,
                                                         const char *crlfile,
                                                         gnutls_x509_crt_fmt_t type);
int                 gnutls_certificate_set_x509_crl_mem (gnutls_certificate_credentials_t res,
                                                         const gnutls_datum_t *CRL,
                                                         gnutls_x509_crt_fmt_t type);
int                 gnutls_certificate_set_x509_key_file
                                                        (gnutls_certificate_credentials_t res,
                                                         const char *certfile,
                                                         const char *keyfile,
                                                         gnutls_x509_crt_fmt_t type);
int                 gnutls_certificate_set_x509_key_mem (gnutls_certificate_credentials_t res,
                                                         const gnutls_datum_t *cert,
                                                         const gnutls_datum_t *key,
                                                         gnutls_x509_crt_fmt_t type);
void                gnutls_certificate_send_x509_rdn_sequence
                                                        (gnutls_session_t session,
                                                         int status);
int                 gnutls_certificate_set_x509_simple_pkcs12_file
                                                        (gnutls_certificate_credentials_t res,
                                                         const char *pkcs12file,
                                                         gnutls_x509_crt_fmt_t type,
                                                         const char *password);
int                 gnutls_certificate_set_x509_simple_pkcs12_mem
                                                        (gnutls_certificate_credentials_t res,
                                                         const gnutls_datum *p12blob,
                                                         gnutls_x509_crt_fmt_t type,
                                                         const char *password);
typedef             gnutls_x509_privkey_t;
struct              gnutls_x509_crl_int;
typedef             gnutls_x509_crl_t;
struct              gnutls_x509_crt_int;
typedef             gnutls_x509_crt_t;
struct              gnutls_openpgp_keyring_int;
typedef             gnutls_openpgp_keyring_t;
int                 gnutls_certificate_set_x509_key     (gnutls_certificate_credentials_t res,
                                                         gnutls_x509_crt_t *cert_list,
                                                         int cert_list_size,
                                                         gnutls_x509_privkey_t key);
int                 gnutls_certificate_set_x509_trust   (gnutls_certificate_credentials_t res,
                                                         gnutls_x509_crt_t *ca_list,
                                                         int ca_list_size);
int                 gnutls_certificate_set_x509_crl     (gnutls_certificate_credentials_t res,
                                                         gnutls_x509_crl_t *crl_list,
                                                         int crl_list_size);
void                gnutls_certificate_get_x509_cas     (gnutls_certificate_credentials_t sc,
                                                         gnutls_x509_crt_t **x509_ca_list,
                                                         unsigned int *ncas);
void                gnutls_certificate_get_x509_crls    (gnutls_certificate_credentials_t sc,
                                                         gnutls_x509_crl_t **x509_crl_list,
                                                         unsigned int *ncrls);
void                gnutls_certificate_get_openpgp_keyring
                                                        (gnutls_certificate_credentials_t sc,
                                                         gnutls_openpgp_keyring_t *keyring);
int                 gnutls_global_init                  (void);
void                gnutls_global_deinit                (void);
void *              (*gnutls_alloc_function)            (size_t Param1);
void *              (*gnutls_calloc_function)           (size_t Param1,
                                                         size_t Param2);
int                 (*gnutls_is_secure_function)        (const void *Param1);
void                (*gnutls_free_function)             (void *Param1);
void *              (*gnutls_realloc_function)          (void *Param1,
                                                         size_t Param2);
void                gnutls_global_set_mem_functions     (gnutls_alloc_function alloc_func,
                                                         gnutls_alloc_function secure_alloc_func,
                                                         gnutls_is_secure_function is_secure_func,
                                                         gnutls_realloc_function realloc_func,
                                                         gnutls_free_function free_func);
extern              gnutls_alloc_function gnutls_malloc;
extern              gnutls_alloc_function gnutls_secure_malloc;
extern              gnutls_realloc_function gnutls_realloc;
extern              gnutls_calloc_function gnutls_calloc;
extern              gnutls_free_function gnutls_free;
char *              (*gnutls_strdup)                    (const char *Param1);
void                (*gnutls_log_func)                  (...,
                                                         const char *Param2);
void                gnutls_global_set_log_function      (gnutls_log_func log_func);
void                gnutls_global_set_log_level         (int level);
int                 gnutls_dh_params_init               (gnutls_dh_params_t *dh_params);
void                gnutls_dh_params_deinit             (gnutls_dh_params_t dh_params);
int                 gnutls_dh_params_import_raw         (gnutls_dh_params_t dh_params,
                                                         const gnutls_datum_t *prime,
                                                         const gnutls_datum_t *generator);
int                 gnutls_dh_params_import_pkcs3       (gnutls_dh_params_t params,
                                                         const gnutls_datum_t *pkcs3_params,
                                                         gnutls_x509_crt_fmt_t format);
int                 gnutls_dh_params_generate2          (gnutls_dh_params_t params,
                                                         unsigned int bits);
int                 gnutls_dh_params_export_pkcs3       (gnutls_dh_params_t params,
                                                         gnutls_x509_crt_fmt_t format,
                                                         unsigned char *params_data,
                                                         size_t *params_data_size);
int                 gnutls_dh_params_export_raw         (gnutls_dh_params_t params,
                                                         gnutls_datum_t *prime,
                                                         gnutls_datum_t *generator,
                                                         unsigned int *bits);
int                 gnutls_dh_params_cpy                (gnutls_dh_params_t dst,
                                                         gnutls_dh_params_t src);
int                 gnutls_rsa_params_init              (gnutls_rsa_params_t *rsa_params);
void                gnutls_rsa_params_deinit            (gnutls_rsa_params_t rsa_params);
int                 gnutls_rsa_params_cpy               (gnutls_rsa_params_t dst,
                                                         gnutls_rsa_params_t src);
int                 gnutls_rsa_params_import_raw        (gnutls_rsa_params_t rsa_params,
                                                         const gnutls_datum_t *m,
                                                         const gnutls_datum_t *e,
                                                         const gnutls_datum_t *d,
                                                         const gnutls_datum_t *p,
                                                         const gnutls_datum_t *q,
                                                         const gnutls_datum_t *u);
int                 gnutls_rsa_params_generate2         (gnutls_rsa_params_t params,
                                                         unsigned int bits);
int                 gnutls_rsa_params_export_raw        (gnutls_rsa_params_t params,
                                                         gnutls_datum_t *m,
                                                         gnutls_datum_t *e,
                                                         gnutls_datum_t *d,
                                                         gnutls_datum_t *p,
                                                         gnutls_datum_t *q,
                                                         gnutls_datum_t *u,
                                                         unsigned int *bits);
int                 gnutls_rsa_params_export_pkcs1      (gnutls_rsa_params_t params,
                                                         gnutls_x509_crt_fmt_t format,
                                                         unsigned char *params_data,
                                                         size_t *params_data_size);
int                 gnutls_rsa_params_import_pkcs1      (gnutls_rsa_params_t params,
                                                         const gnutls_datum_t *pkcs1_params,
                                                         gnutls_x509_crt_fmt_t format);
ssize_t             (*gnutls_pull_func)                 (gnutls_transport_ptr_t Param1,
                                                         void *Param2,
                                                         size_t Param3);
ssize_t             (*gnutls_push_func)                 (gnutls_transport_ptr_t Param1,
                                                         const void *Param2,
                                                         size_t Param3);
void                gnutls_transport_set_ptr            (gnutls_session_t session,
                                                         gnutls_transport_ptr_t ptr);
void                gnutls_transport_set_ptr2           (gnutls_session_t session,
                                                         gnutls_transport_ptr_t recv_ptr,
                                                         gnutls_transport_ptr_t send_ptr);
gnutls_transport_ptr_t  gnutls_transport_get_ptr        (gnutls_session_t session);
void                gnutls_transport_get_ptr2           (gnutls_session_t session,
                                                         gnutls_transport_ptr_t *recv_ptr,
                                                         gnutls_transport_ptr_t *send_ptr);
void                gnutls_transport_set_lowat          (gnutls_session_t session,
                                                         int num);
void                gnutls_transport_set_push_function  (gnutls_session_t session,
                                                         gnutls_push_func push_func);
void                gnutls_transport_set_pull_function  (gnutls_session_t session,
                                                         gnutls_pull_func pull_func);
void                gnutls_transport_set_errno          (gnutls_session_t session,
                                                         int err);
void                gnutls_transport_set_global_errno   (int err);
void                gnutls_session_set_ptr              (gnutls_session_t session,
                                                         void *ptr);
void *              gnutls_session_get_ptr              (gnutls_session_t session);
void                gnutls_openpgp_send_cert            (gnutls_session_t session,
                                                         gnutls_openpgp_crt_status_t status);
int                 gnutls_fingerprint                  (gnutls_digest_algorithm_t algo,
                                                         const gnutls_datum_t *data,
                                                         void *result,
                                                         size_t *result_size);
void                gnutls_srp_free_client_credentials  (gnutls_srp_client_credentials_t sc);
int                 gnutls_srp_allocate_client_credentials
                                                        (gnutls_srp_client_credentials_t *sc);
int                 gnutls_srp_set_client_credentials   (gnutls_srp_client_credentials_t res,
                                                         const char *username,
                                                         const char *password);
void                gnutls_srp_free_server_credentials  (gnutls_srp_server_credentials_t sc);
int                 gnutls_srp_allocate_server_credentials
                                                        (gnutls_srp_server_credentials_t *sc);
int                 gnutls_srp_set_server_credentials_file
                                                        (gnutls_srp_server_credentials_t res,
                                                         const char *password_file,
                                                         const char *password_conf_file);
const char *        gnutls_srp_server_get_username      (gnutls_session_t session);
void                gnutls_srp_set_prime_bits           (gnutls_session_t session,
                                                         unsigned int bits);
int                 gnutls_srp_verifier                 (const char *username,
                                                         const char *password,
                                                         const gnutls_datum_t *salt,
                                                         const gnutls_datum_t *generator,
                                                         const gnutls_datum_t *prime,
                                                         gnutls_datum_t *res);
extern              const gnutls_datum_t gnutls_srp_2048_group_prime;
extern              const gnutls_datum_t gnutls_srp_2048_group_generator;
extern              const gnutls_datum_t gnutls_srp_1536_group_prime;
extern              const gnutls_datum_t gnutls_srp_1536_group_generator;
extern              const gnutls_datum_t gnutls_srp_1024_group_prime;
extern              const gnutls_datum_t gnutls_srp_1024_group_generator;
void                gnutls_srp_set_server_credentials_function
                                                        (gnutls_srp_server_credentials_t cred,
                                                         gnutls_srp_server_credentials_function *func);
void                gnutls_srp_set_client_credentials_function
                                                        (gnutls_srp_client_credentials_t cred,
                                                         gnutls_srp_client_credentials_function *func);
int                 gnutls_srp_base64_encode            (const gnutls_datum_t *data,
                                                         char *result,
                                                         size_t *result_size);
int                 gnutls_srp_base64_encode_alloc      (const gnutls_datum_t *data,
                                                         gnutls_datum_t *result);
int                 gnutls_srp_base64_decode            (const gnutls_datum_t *b64_data,
                                                         char *result,
                                                         size_t *result_size);
int                 gnutls_srp_base64_decode_alloc      (const gnutls_datum_t *b64_data,
                                                         gnutls_datum_t *result);
enum                gnutls_psk_key_flags;
void                gnutls_psk_free_client_credentials  (gnutls_psk_client_credentials_t sc);
int                 gnutls_psk_allocate_client_credentials
                                                        (gnutls_psk_client_credentials_t *sc);
int                 gnutls_psk_set_client_credentials   (gnutls_psk_client_credentials_t res,
                                                         const char *username,
                                                         const gnutls_datum_t *key,
                                                         gnutls_psk_key_flags format);
void                gnutls_psk_free_server_credentials  (gnutls_psk_server_credentials_t sc);
int                 gnutls_psk_allocate_server_credentials
                                                        (gnutls_psk_server_credentials_t *sc);
int                 gnutls_psk_set_server_credentials_file
                                                        (gnutls_psk_server_credentials_t res,
                                                         const char *password_file);
int                 gnutls_psk_set_server_credentials_hint
                                                        (gnutls_psk_server_credentials_t res,
                                                         const char *hint);
const char *        gnutls_psk_server_get_username      (gnutls_session_t session);
const char *        gnutls_psk_client_get_hint          (gnutls_session_t session);
void                gnutls_psk_set_server_credentials_function
                                                        (gnutls_psk_server_credentials_t cred,
                                                         gnutls_psk_server_credentials_function *func);
void                gnutls_psk_set_client_credentials_function
                                                        (gnutls_psk_client_credentials_t cred,
                                                         gnutls_psk_client_credentials_function *func);
int                 gnutls_hex_encode                   (const gnutls_datum_t *data,
                                                         char *result,
                                                         size_t *result_size);
int                 gnutls_hex_decode                   (const gnutls_datum_t *hex_data,
                                                         char *result,
                                                         size_t *result_size);
void                gnutls_psk_set_server_dh_params     (gnutls_psk_server_credentials_t res,
                                                         gnutls_dh_params_t dh_params);
void                gnutls_psk_set_server_params_function
                                                        (gnutls_psk_server_credentials_t res,
                                                         gnutls_params_function *func);
int                 gnutls_psk_netconf_derive_key       (const char *password,
                                                         const char *psk_identity,
                                                         const char *psk_identity_hint,
                                                         gnutls_datum_t *output_key);
enum                gnutls_x509_subject_alt_name_t;
struct              gnutls_openpgp_crt_int;
typedef             gnutls_openpgp_crt_t;
struct              gnutls_openpgp_privkey_int;
typedef             gnutls_openpgp_privkey_t;
gnutls_credentials_type_t  gnutls_auth_get_type         (gnutls_session_t session);
gnutls_credentials_type_t  gnutls_auth_server_get_type  (gnutls_session_t session);
gnutls_credentials_type_t  gnutls_auth_client_get_type  (gnutls_session_t session);
void                gnutls_dh_set_prime_bits            (gnutls_session_t session,
                                                         unsigned int bits);
int                 gnutls_dh_get_secret_bits           (gnutls_session_t session);
int                 gnutls_dh_get_peers_public_bits     (gnutls_session_t session);
int                 gnutls_dh_get_prime_bits            (gnutls_session_t session);
int                 gnutls_dh_get_group                 (gnutls_session_t session,
                                                         gnutls_datum_t *raw_gen,
                                                         gnutls_datum_t *raw_prime);
int                 gnutls_dh_get_pubkey                (gnutls_session_t session,
                                                         gnutls_datum_t *raw_key);
int                 gnutls_rsa_export_get_pubkey        (gnutls_session_t session,
                                                         gnutls_datum_t *exponent,
                                                         gnutls_datum_t *modulus);
int                 gnutls_rsa_export_get_modulus_bits  (gnutls_session_t session);
int                 (*gnutls_sign_func)                 (gnutls_session_t session,
                                                         void *userdata,
                                                         gnutls_certificate_type_t cert_type,
                                                         const gnutls_datum_t *cert,
                                                         const gnutls_datum_t *hash,
                                                         gnutls_datum_t *signature);
void                gnutls_sign_callback_set            (gnutls_session_t session,
                                                         gnutls_sign_func sign_func,
                                                         void *userdata);
gnutls_sign_func    gnutls_sign_callback_get            (gnutls_session_t session,
                                                         void **userdata);
void                gnutls_certificate_client_set_retrieve_function
                                                        (gnutls_certificate_credentials_t cred,
                                                         gnutls_certificate_client_retrieve_function *func);
void                gnutls_certificate_server_set_retrieve_function
                                                        (gnutls_certificate_credentials_t cred,
                                                         gnutls_certificate_server_retrieve_function *func);
void                gnutls_certificate_server_set_request
                                                        (gnutls_session_t session,
                                                         gnutls_certificate_request_t req);
const gnutls_datum_t * gnutls_certificate_get_peers     (gnutls_session_t session,
                                                         unsigned int *list_size);
const gnutls_datum_t * gnutls_certificate_get_ours      (gnutls_session_t session);
time_t              gnutls_certificate_activation_time_peers
                                                        (gnutls_session_t session);
time_t              gnutls_certificate_expiration_time_peers
                                                        (gnutls_session_t session);
int                 gnutls_certificate_client_get_request_status
                                                        (gnutls_session_t session);
int                 gnutls_certificate_verify_peers2    (gnutls_session_t session,
                                                         unsigned int *status);
int                 gnutls_certificate_verify_peers     (gnutls_session_t session);
int                 gnutls_pem_base64_encode            (const char *msg,
                                                         const gnutls_datum_t *data,
                                                         char *result,
                                                         size_t *result_size);
int                 gnutls_pem_base64_decode            (const char *header,
                                                         const gnutls_datum_t *b64_data,
                                                         unsigned char *result,
                                                         size_t *result_size);
int                 gnutls_pem_base64_encode_alloc      (const char *msg,
                                                         const gnutls_datum_t *data,
                                                         gnutls_datum_t *result);
int                 gnutls_pem_base64_decode_alloc      (const char *header,
                                                         const gnutls_datum_t *b64_data,
                                                         gnutls_datum_t *result);
#define             GNUTLS_KEY_DIGITAL_SIGNATURE
#define             GNUTLS_KEY_NON_REPUDIATION
#define             GNUTLS_KEY_KEY_ENCIPHERMENT
#define             GNUTLS_KEY_DATA_ENCIPHERMENT
#define             GNUTLS_KEY_KEY_AGREEMENT
#define             GNUTLS_KEY_KEY_CERT_SIGN
#define             GNUTLS_KEY_CRL_SIGN
#define             GNUTLS_KEY_ENCIPHER_ONLY
#define             GNUTLS_KEY_DECIPHER_ONLY
void                gnutls_certificate_set_params_function
                                                        (gnutls_certificate_credentials_t res,
                                                         gnutls_params_function *func);
void                gnutls_anon_set_params_function     (gnutls_anon_server_credentials_t res,
                                                         gnutls_params_function *func);
void                gnutls_psk_set_params_function      (gnutls_psk_server_credentials_t res,
                                                         gnutls_params_function *func);
int                 gnutls_hex2bin                      (const char *hex_data,
                                                         size_t hex_size,
                                                         char *bin_data,
                                                         size_t *bin_size);
#define             GNUTLS_E_SUCCESS
#define             GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHM
#define             GNUTLS_E_UNKNOWN_CIPHER_TYPE
#define             GNUTLS_E_LARGE_PACKET
#define             GNUTLS_E_UNSUPPORTED_VERSION_PACKET
#define             GNUTLS_E_UNEXPECTED_PACKET_LENGTH
#define             GNUTLS_E_INVALID_SESSION
#define             GNUTLS_E_FATAL_ALERT_RECEIVED
#define             GNUTLS_E_UNEXPECTED_PACKET
#define             GNUTLS_E_WARNING_ALERT_RECEIVED
#define             GNUTLS_E_ERROR_IN_FINISHED_PACKET
#define             GNUTLS_E_UNEXPECTED_HANDSHAKE_PACKET
#define             GNUTLS_E_UNKNOWN_CIPHER_SUITE
#define             GNUTLS_E_UNWANTED_ALGORITHM
#define             GNUTLS_E_MPI_SCAN_FAILED
#define             GNUTLS_E_DECRYPTION_FAILED
#define             GNUTLS_E_MEMORY_ERROR
#define             GNUTLS_E_DECOMPRESSION_FAILED
#define             GNUTLS_E_COMPRESSION_FAILED
#define             GNUTLS_E_AGAIN
#define             GNUTLS_E_EXPIRED
#define             GNUTLS_E_DB_ERROR
#define             GNUTLS_E_SRP_PWD_ERROR
#define             GNUTLS_E_INSUFFICIENT_CREDENTIALS
#define             GNUTLS_E_INSUFICIENT_CREDENTIALS
#define             GNUTLS_E_INSUFFICIENT_CRED
#define             GNUTLS_E_INSUFICIENT_CRED
#define             GNUTLS_E_HASH_FAILED
#define             GNUTLS_E_BASE64_DECODING_ERROR
#define             GNUTLS_E_MPI_PRINT_FAILED
#define             GNUTLS_E_REHANDSHAKE
#define             GNUTLS_E_GOT_APPLICATION_DATA
#define             GNUTLS_E_RECORD_LIMIT_REACHED
#define             GNUTLS_E_ENCRYPTION_FAILED
#define             GNUTLS_E_PK_ENCRYPTION_FAILED
#define             GNUTLS_E_PK_DECRYPTION_FAILED
#define             GNUTLS_E_PK_SIGN_FAILED
#define             GNUTLS_E_X509_UNSUPPORTED_CRITICAL_EXTENSION
#define             GNUTLS_E_KEY_USAGE_VIOLATION
#define             GNUTLS_E_NO_CERTIFICATE_FOUND
#define             GNUTLS_E_INVALID_REQUEST
#define             GNUTLS_E_SHORT_MEMORY_BUFFER
#define             GNUTLS_E_INTERRUPTED
#define             GNUTLS_E_PUSH_ERROR
#define             GNUTLS_E_PULL_ERROR
#define             GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER
#define             GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE
#define             GNUTLS_E_PKCS1_WRONG_PAD
#define             GNUTLS_E_RECEIVED_ILLEGAL_EXTENSION
#define             GNUTLS_E_INTERNAL_ERROR
#define             GNUTLS_E_DH_PRIME_UNACCEPTABLE
#define             GNUTLS_E_FILE_ERROR
#define             GNUTLS_E_TOO_MANY_EMPTY_PACKETS
#define             GNUTLS_E_UNKNOWN_PK_ALGORITHM
#define             GNUTLS_E_INIT_LIBEXTRA
#define             GNUTLS_E_LIBRARY_VERSION_MISMATCH
#define             GNUTLS_E_NO_TEMPORARY_RSA_PARAMS
#define             GNUTLS_E_LZO_INIT_FAILED
#define             GNUTLS_E_NO_COMPRESSION_ALGORITHMS
#define             GNUTLS_E_NO_CIPHER_SUITES
#define             GNUTLS_E_OPENPGP_GETKEY_FAILED
#define             GNUTLS_E_PK_SIG_VERIFY_FAILED
#define             GNUTLS_E_ILLEGAL_SRP_USERNAME
#define             GNUTLS_E_SRP_PWD_PARSING_ERROR
#define             GNUTLS_E_NO_TEMPORARY_DH_PARAMS
#define             GNUTLS_E_ASN1_ELEMENT_NOT_FOUND
#define             GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND
#define             GNUTLS_E_ASN1_DER_ERROR
#define             GNUTLS_E_ASN1_VALUE_NOT_FOUND
#define             GNUTLS_E_ASN1_GENERIC_ERROR
#define             GNUTLS_E_ASN1_VALUE_NOT_VALID
#define             GNUTLS_E_ASN1_TAG_ERROR
#define             GNUTLS_E_ASN1_TAG_IMPLICIT
#define             GNUTLS_E_ASN1_TYPE_ANY_ERROR
#define             GNUTLS_E_ASN1_SYNTAX_ERROR
#define             GNUTLS_E_ASN1_DER_OVERFLOW
#define             GNUTLS_E_OPENPGP_UID_REVOKED
#define             GNUTLS_E_CERTIFICATE_ERROR
#define             GNUTLS_E_X509_CERTIFICATE_ERROR
#define             GNUTLS_E_CERTIFICATE_KEY_MISMATCH
#define             GNUTLS_E_UNSUPPORTED_CERTIFICATE_TYPE
#define             GNUTLS_E_X509_UNKNOWN_SAN
#define             GNUTLS_E_OPENPGP_FINGERPRINT_UNSUPPORTED
#define             GNUTLS_E_X509_UNSUPPORTED_ATTRIBUTE
#define             GNUTLS_E_UNKNOWN_HASH_ALGORITHM
#define             GNUTLS_E_UNKNOWN_PKCS_CONTENT_TYPE
#define             GNUTLS_E_UNKNOWN_PKCS_BAG_TYPE
#define             GNUTLS_E_INVALID_PASSWORD
#define             GNUTLS_E_MAC_VERIFY_FAILED
#define             GNUTLS_E_CONSTRAINT_ERROR
#define             GNUTLS_E_WARNING_IA_IPHF_RECEIVED
#define             GNUTLS_E_WARNING_IA_FPHF_RECEIVED
#define             GNUTLS_E_IA_VERIFY_FAILED
#define             GNUTLS_E_UNKNOWN_ALGORITHM
#define             GNUTLS_E_BASE64_ENCODING_ERROR
#define             GNUTLS_E_INCOMPATIBLE_GCRYPT_LIBRARY
#define             GNUTLS_E_INCOMPATIBLE_CRYPTO_LIBRARY
#define             GNUTLS_E_INCOMPATIBLE_LIBTASN1_LIBRARY
#define             GNUTLS_E_OPENPGP_KEYRING_ERROR
#define             GNUTLS_E_X509_UNSUPPORTED_OID
#define             GNUTLS_E_RANDOM_FAILED
#define             GNUTLS_E_BASE64_UNEXPECTED_HEADER_ERROR
#define             GNUTLS_E_OPENPGP_SUBKEY_ERROR
#define             GNUTLS_E_CRYPTO_ALREADY_REGISTERED
#define             GNUTLS_E_HANDSHAKE_TOO_LARGE
#define             GNUTLS_E_UNIMPLEMENTED_FEATURE
#define             GNUTLS_E_APPLICATION_ERROR_MAX
#define             GNUTLS_E_APPLICATION_ERROR_MIN

Description

Details

HAVE_SSIZE_T

# define HAVE_SSIZE_T


GNUTLS_VERSION

#define GNUTLS_VERSION "2.8.6"


GNUTLS_VERSION_MAJOR

#define GNUTLS_VERSION_MAJOR 2


GNUTLS_VERSION_MINOR

#define GNUTLS_VERSION_MINOR 8


GNUTLS_VERSION_PATCH

#define GNUTLS_VERSION_PATCH 6


GNUTLS_VERSION_NUMBER

#define GNUTLS_VERSION_NUMBER 0x020806


GNUTLS_CIPHER_RIJNDAEL_128_CBC

#define GNUTLS_CIPHER_RIJNDAEL_128_CBC GNUTLS_CIPHER_AES_128_CBC


GNUTLS_CIPHER_RIJNDAEL_256_CBC

#define GNUTLS_CIPHER_RIJNDAEL_256_CBC GNUTLS_CIPHER_AES_256_CBC


GNUTLS_CIPHER_RIJNDAEL_CBC

#define GNUTLS_CIPHER_RIJNDAEL_CBC GNUTLS_CIPHER_AES_128_CBC


GNUTLS_CIPHER_ARCFOUR

#define GNUTLS_CIPHER_ARCFOUR GNUTLS_CIPHER_ARCFOUR_128


enum gnutls_cipher_algorithm_t

  typedef enum gnutls_cipher_algorithm
  {
    GNUTLS_CIPHER_UNKNOWN = 0,
    GNUTLS_CIPHER_NULL = 1,
    GNUTLS_CIPHER_ARCFOUR_128,
    GNUTLS_CIPHER_3DES_CBC,
    GNUTLS_CIPHER_AES_128_CBC,
    GNUTLS_CIPHER_AES_256_CBC,
    GNUTLS_CIPHER_ARCFOUR_40,
    GNUTLS_CIPHER_CAMELLIA_128_CBC,
    GNUTLS_CIPHER_CAMELLIA_256_CBC,
    GNUTLS_CIPHER_RC2_40_CBC = 90,
    GNUTLS_CIPHER_DES_CBC,

    /* used only for PGP internals. Ignored in TLS/SSL 
     */
    GNUTLS_CIPHER_IDEA_PGP_CFB = 200,
    GNUTLS_CIPHER_3DES_PGP_CFB,
    GNUTLS_CIPHER_CAST5_PGP_CFB,
    GNUTLS_CIPHER_BLOWFISH_PGP_CFB,
    GNUTLS_CIPHER_SAFER_SK128_PGP_CFB,
    GNUTLS_CIPHER_AES128_PGP_CFB,
    GNUTLS_CIPHER_AES192_PGP_CFB,
    GNUTLS_CIPHER_AES256_PGP_CFB,
    GNUTLS_CIPHER_TWOFISH_PGP_CFB
  } gnutls_cipher_algorithm_t;


enum gnutls_kx_algorithm_t

  typedef enum
  {
    GNUTLS_KX_UNKNOWN = 0,
    GNUTLS_KX_RSA = 1,
    GNUTLS_KX_DHE_DSS,
    GNUTLS_KX_DHE_RSA,
    GNUTLS_KX_ANON_DH,
    GNUTLS_KX_SRP,
    GNUTLS_KX_RSA_EXPORT,
    GNUTLS_KX_SRP_RSA,
    GNUTLS_KX_SRP_DSS,
    GNUTLS_KX_PSK,
    GNUTLS_KX_DHE_PSK
  } gnutls_kx_algorithm_t;


enum gnutls_params_type_t

  typedef enum
  {
    GNUTLS_PARAMS_RSA_EXPORT = 1,
    GNUTLS_PARAMS_DH
  } gnutls_params_type_t;


enum gnutls_credentials_type_t

  typedef enum
  {
    GNUTLS_CRD_CERTIFICATE = 1,
    GNUTLS_CRD_ANON,
    GNUTLS_CRD_SRP,
    GNUTLS_CRD_PSK,
    GNUTLS_CRD_IA
  } gnutls_credentials_type_t;


GNUTLS_MAC_SHA

#define GNUTLS_MAC_SHA GNUTLS_MAC_SHA1


GNUTLS_DIG_SHA

#define GNUTLS_DIG_SHA GNUTLS_DIG_SHA1


enum gnutls_mac_algorithm_t

  typedef enum
  {
    GNUTLS_MAC_UNKNOWN = 0,
    GNUTLS_MAC_NULL = 1,
    GNUTLS_MAC_MD5,
    GNUTLS_MAC_SHA1,
    GNUTLS_MAC_RMD160,
    GNUTLS_MAC_MD2,
    GNUTLS_MAC_SHA256,
    GNUTLS_MAC_SHA384,
    GNUTLS_MAC_SHA512
    /* If you add anything here, make sure you align with
       gnutls_digest_algorithm_t, in particular SHA-224. */
  } gnutls_mac_algorithm_t;


enum gnutls_digest_algorithm_t

  typedef enum
  {
    GNUTLS_DIG_NULL = GNUTLS_MAC_NULL,
    GNUTLS_DIG_MD5 = GNUTLS_MAC_MD5,
    GNUTLS_DIG_SHA1 = GNUTLS_MAC_SHA1,
    GNUTLS_DIG_RMD160 = GNUTLS_MAC_RMD160,
    GNUTLS_DIG_MD2 = GNUTLS_MAC_MD2,
    GNUTLS_DIG_SHA256 = GNUTLS_MAC_SHA256,
    GNUTLS_DIG_SHA384 = GNUTLS_MAC_SHA384,
    GNUTLS_DIG_SHA512 = GNUTLS_MAC_SHA512,
    GNUTLS_DIG_SHA224
  } gnutls_digest_algorithm_t;


GNUTLS_MAX_ALGORITHM_NUM

#define GNUTLS_MAX_ALGORITHM_NUM 16


GNUTLS_COMP_ZLIB

#define GNUTLS_COMP_ZLIB GNUTLS_COMP_DEFLATE


enum gnutls_compression_method_t

  typedef enum
  {
    GNUTLS_COMP_UNKNOWN = 0,
    GNUTLS_COMP_NULL = 1,
    GNUTLS_COMP_DEFLATE,
    GNUTLS_COMP_LZO		/* only available if gnutls-extra has
				   been initialized
				 */
  } gnutls_compression_method_t;


enum gnutls_connection_end_t

  typedef enum
  {
    GNUTLS_SERVER = 1,
    GNUTLS_CLIENT
  } gnutls_connection_end_t;


enum gnutls_alert_level_t

  typedef enum
  {
    GNUTLS_AL_WARNING = 1,
    GNUTLS_AL_FATAL
  } gnutls_alert_level_t;


enum gnutls_alert_description_t

  typedef enum
  {
    GNUTLS_A_CLOSE_NOTIFY,
    GNUTLS_A_UNEXPECTED_MESSAGE = 10,
    GNUTLS_A_BAD_RECORD_MAC = 20,
    GNUTLS_A_DECRYPTION_FAILED,
    GNUTLS_A_RECORD_OVERFLOW,
    GNUTLS_A_DECOMPRESSION_FAILURE = 30,
    GNUTLS_A_HANDSHAKE_FAILURE = 40,
    GNUTLS_A_SSL3_NO_CERTIFICATE = 41,
    GNUTLS_A_BAD_CERTIFICATE = 42,
    GNUTLS_A_UNSUPPORTED_CERTIFICATE,
    GNUTLS_A_CERTIFICATE_REVOKED,
    GNUTLS_A_CERTIFICATE_EXPIRED,
    GNUTLS_A_CERTIFICATE_UNKNOWN,
    GNUTLS_A_ILLEGAL_PARAMETER,
    GNUTLS_A_UNKNOWN_CA,
    GNUTLS_A_ACCESS_DENIED,
    GNUTLS_A_DECODE_ERROR = 50,
    GNUTLS_A_DECRYPT_ERROR,
    GNUTLS_A_EXPORT_RESTRICTION = 60,
    GNUTLS_A_PROTOCOL_VERSION = 70,
    GNUTLS_A_INSUFFICIENT_SECURITY,
    GNUTLS_A_INTERNAL_ERROR = 80,
    GNUTLS_A_USER_CANCELED = 90,
    GNUTLS_A_NO_RENEGOTIATION = 100,
    GNUTLS_A_UNSUPPORTED_EXTENSION = 110,
    GNUTLS_A_CERTIFICATE_UNOBTAINABLE = 111,
    GNUTLS_A_UNRECOGNIZED_NAME = 112,
    GNUTLS_A_UNKNOWN_PSK_IDENTITY = 115,
    GNUTLS_A_INNER_APPLICATION_FAILURE = 208,
    GNUTLS_A_INNER_APPLICATION_VERIFICATION = 209
  } gnutls_alert_description_t;


enum gnutls_handshake_description_t

  typedef enum
  { GNUTLS_HANDSHAKE_HELLO_REQUEST = 0,
    GNUTLS_HANDSHAKE_CLIENT_HELLO = 1,
    GNUTLS_HANDSHAKE_SERVER_HELLO = 2,
    GNUTLS_HANDSHAKE_CERTIFICATE_PKT = 11,
    GNUTLS_HANDSHAKE_SERVER_KEY_EXCHANGE = 12,
    GNUTLS_HANDSHAKE_CERTIFICATE_REQUEST = 13,
    GNUTLS_HANDSHAKE_SERVER_HELLO_DONE = 14,
    GNUTLS_HANDSHAKE_CERTIFICATE_VERIFY = 15,
    GNUTLS_HANDSHAKE_CLIENT_KEY_EXCHANGE = 16,
    GNUTLS_HANDSHAKE_FINISHED = 20,
    GNUTLS_HANDSHAKE_SUPPLEMENTAL = 23
  } gnutls_handshake_description_t;


enum gnutls_certificate_status_t

  typedef enum
  {
    GNUTLS_CERT_INVALID = 2, /* will be set if the certificate
				 * was not verified.
				 */
    GNUTLS_CERT_REVOKED = 32, /* in X.509 this will be set only if CRLs are checked
				 */

    /* Those are extra information about the verification
     * process. Will be set only if the certificate was 
     * not verified.
     */
    GNUTLS_CERT_SIGNER_NOT_FOUND = 64,
    GNUTLS_CERT_SIGNER_NOT_CA = 128,
    GNUTLS_CERT_INSECURE_ALGORITHM = 256,

    /* Time verification.
     */
    GNUTLS_CERT_NOT_ACTIVATED = 512,
    GNUTLS_CERT_EXPIRED = 1024

  } gnutls_certificate_status_t;


enum gnutls_certificate_request_t

  typedef enum
  {
    GNUTLS_CERT_IGNORE,
    GNUTLS_CERT_REQUEST = 1,
    GNUTLS_CERT_REQUIRE
  } gnutls_certificate_request_t;


enum gnutls_openpgp_crt_status_t

  typedef enum
  { GNUTLS_OPENPGP_CERT,
    GNUTLS_OPENPGP_CERT_FINGERPRINT
  } gnutls_openpgp_crt_status_t;


enum gnutls_close_request_t

  typedef enum
  {
    GNUTLS_SHUT_RDWR = 0,
    GNUTLS_SHUT_WR = 1
  } gnutls_close_request_t;


GNUTLS_TLS1

#define GNUTLS_TLS1 GNUTLS_TLS1_0


enum gnutls_protocol_t

  typedef enum
  {
    GNUTLS_SSL3 = 1,
    GNUTLS_TLS1_0,
    GNUTLS_TLS1_1,
    GNUTLS_TLS1_2,
    GNUTLS_VERSION_UNKNOWN = 0xff
  } gnutls_protocol_t;


enum gnutls_certificate_type_t

  typedef enum
  {
    GNUTLS_CRT_UNKNOWN = 0,
    GNUTLS_CRT_X509 = 1,
    GNUTLS_CRT_OPENPGP
  } gnutls_certificate_type_t;


enum gnutls_x509_crt_fmt_t

  typedef enum
  {
    GNUTLS_X509_FMT_DER,
    GNUTLS_X509_FMT_PEM
  } gnutls_x509_crt_fmt_t;


enum gnutls_certificate_print_formats_t

  typedef enum gnutls_certificate_print_formats
    {
      GNUTLS_CRT_PRINT_FULL,
      GNUTLS_CRT_PRINT_ONELINE,
      GNUTLS_CRT_PRINT_UNSIGNED_FULL
    } gnutls_certificate_print_formats_t;


enum gnutls_pk_algorithm_t

  typedef enum
  {
    GNUTLS_PK_UNKNOWN = 0,
    GNUTLS_PK_RSA = 1,
    GNUTLS_PK_DSA
  } gnutls_pk_algorithm_t;


gnutls_pk_algorithm_get_name ()

const char *        gnutls_pk_algorithm_get_name        (gnutls_pk_algorithm_t algorithm);

algorithm :

Returns :


GNUTLS_SIGN_RSA_SHA

#define GNUTLS_SIGN_RSA_SHA GNUTLS_SIGN_RSA_SHA1


GNUTLS_SIGN_DSA_SHA

#define GNUTLS_SIGN_DSA_SHA GNUTLS_SIGN_DSA_SHA1


enum gnutls_sign_algorithm_t

  typedef enum
  {
    GNUTLS_SIGN_UNKNOWN = 0,
    GNUTLS_SIGN_RSA_SHA1 = 1,
    GNUTLS_SIGN_DSA_SHA1,
    GNUTLS_SIGN_RSA_MD5,
    GNUTLS_SIGN_RSA_MD2,
    GNUTLS_SIGN_RSA_RMD160,
    GNUTLS_SIGN_RSA_SHA256,
    GNUTLS_SIGN_RSA_SHA384,
    GNUTLS_SIGN_RSA_SHA512,
    GNUTLS_SIGN_RSA_SHA224
  } gnutls_sign_algorithm_t;


gnutls_sign_algorithm_get_name ()

const char *        gnutls_sign_algorithm_get_name      (gnutls_sign_algorithm_t sign);

sign :

Returns :


gnutls_transport_ptr_t

  typedef void *gnutls_transport_ptr_t;


struct gnutls_session_int

struct gnutls_session_int;


gnutls_session_t

  typedef struct gnutls_session_int *gnutls_session_t;


struct gnutls_dh_params_int

struct gnutls_dh_params_int;


gnutls_dh_params_t

  typedef struct gnutls_dh_params_int *gnutls_dh_params_t;


struct gnutls_x509_privkey_int

struct gnutls_x509_privkey_int;


gnutls_rsa_params_t

  typedef struct gnutls_x509_privkey_int *gnutls_rsa_params_t;


struct gnutls_priority_st

struct gnutls_priority_st;


gnutls_priority_t

  typedef struct gnutls_priority_st *gnutls_priority_t;


gnutls_init ()

int                 gnutls_init                         (gnutls_session_t *session,
                                                         gnutls_connection_end_t con_end);

session :

con_end :

Returns :


gnutls_deinit ()

void                gnutls_deinit                       (gnutls_session_t session);

session :


gnutls_bye ()

int                 gnutls_bye                          (gnutls_session_t session,
                                                         gnutls_close_request_t how);

session :

how :

Returns :


gnutls_handshake ()

int                 gnutls_handshake                    (gnutls_session_t session);

session :

Returns :


gnutls_rehandshake ()

int                 gnutls_rehandshake                  (gnutls_session_t session);

session :

Returns :


gnutls_alert_get ()

gnutls_alert_description_t  gnutls_alert_get            (gnutls_session_t session);

session :

Returns :


gnutls_alert_send ()

int                 gnutls_alert_send                   (gnutls_session_t session,
                                                         gnutls_alert_level_t level,
                                                         gnutls_alert_description_t desc);

session :

level :

desc :

Returns :


gnutls_alert_send_appropriate ()

int                 gnutls_alert_send_appropriate       (gnutls_session_t session,
                                                         int err);

session :

err :

Returns :


gnutls_alert_get_name ()

const char *        gnutls_alert_get_name               (gnutls_alert_description_t alert);

alert :

Returns :


gnutls_cipher_get ()

gnutls_cipher_algorithm_t  gnutls_cipher_get            (gnutls_session_t session);

session :

Returns :


gnutls_kx_get ()

gnutls_kx_algorithm_t  gnutls_kx_get                    (gnutls_session_t session);

session :

Returns :


gnutls_mac_get ()

gnutls_mac_algorithm_t  gnutls_mac_get                  (gnutls_session_t session);

session :

Returns :


gnutls_compression_get ()

gnutls_compression_method_t  gnutls_compression_get     (gnutls_session_t session);

session :

Returns :


gnutls_certificate_type_get ()

gnutls_certificate_type_t  gnutls_certificate_type_get  (gnutls_session_t session);

session :

Returns :


gnutls_cipher_get_key_size ()

size_t              gnutls_cipher_get_key_size          (gnutls_cipher_algorithm_t algorithm);

algorithm :

Returns :


gnutls_mac_get_key_size ()

size_t              gnutls_mac_get_key_size             (gnutls_mac_algorithm_t algorithm);

algorithm :

Returns :


gnutls_cipher_get_name ()

const char *        gnutls_cipher_get_name              (gnutls_cipher_algorithm_t algorithm);

algorithm :

Returns :


gnutls_mac_get_name ()

const char *        gnutls_mac_get_name                 (gnutls_mac_algorithm_t algorithm);

algorithm :

Returns :


gnutls_compression_get_name ()

const char *        gnutls_compression_get_name         (gnutls_compression_method_t algorithm);

algorithm :

Returns :


gnutls_kx_get_name ()

const char *        gnutls_kx_get_name                  (gnutls_kx_algorithm_t algorithm);

algorithm :

Returns :


gnutls_certificate_type_get_name ()

const char *        gnutls_certificate_type_get_name    (gnutls_certificate_type_t type);

type :

Returns :


gnutls_pk_get_name ()

const char *        gnutls_pk_get_name                  (gnutls_pk_algorithm_t algorithm);

algorithm :

Returns :


gnutls_sign_get_name ()

const char *        gnutls_sign_get_name                (gnutls_sign_algorithm_t algorithm);

algorithm :

Returns :


gnutls_mac_get_id ()

gnutls_mac_algorithm_t  gnutls_mac_get_id               (const char *name);

name :

Returns :


gnutls_compression_get_id ()

gnutls_compression_method_t  gnutls_compression_get_id  (const char *name);

name :

Returns :


gnutls_cipher_get_id ()

gnutls_cipher_algorithm_t  gnutls_cipher_get_id         (const char *name);

name :

Returns :


gnutls_kx_get_id ()

gnutls_kx_algorithm_t  gnutls_kx_get_id                 (const char *name);

name :

Returns :


gnutls_protocol_get_id ()

gnutls_protocol_t   gnutls_protocol_get_id              (const char *name);

name :

Returns :


gnutls_certificate_type_get_id ()

gnutls_certificate_type_t  gnutls_certificate_type_get_id
                                                        (const char *name);

name :

Returns :


gnutls_pk_get_id ()

gnutls_pk_algorithm_t  gnutls_pk_get_id                 (const char *name);

name :

Returns :


gnutls_sign_get_id ()

gnutls_sign_algorithm_t  gnutls_sign_get_id             (const char *name);

name :

Returns :


gnutls_cipher_list ()

const gnutls_cipher_algorithm_t * gnutls_cipher_list    (void);

Returns :


gnutls_mac_list ()

const gnutls_mac_algorithm_t * gnutls_mac_list          (void);

Returns :


gnutls_compression_list ()

const gnutls_compression_method_t * gnutls_compression_list
                                                        (void);

Returns :


gnutls_protocol_list ()

const gnutls_protocol_t * gnutls_protocol_list          (void);

Returns :


gnutls_certificate_type_list ()

const gnutls_certificate_type_t * gnutls_certificate_type_list
                                                        (void);

Returns :


gnutls_kx_list ()

const gnutls_kx_algorithm_t * gnutls_kx_list            (void);

Returns :


gnutls_pk_list ()

const gnutls_pk_algorithm_t * gnutls_pk_list            (void);

Returns :


gnutls_sign_list ()

const gnutls_sign_algorithm_t * gnutls_sign_list        (void);

Returns :


gnutls_cipher_suite_info ()

const char *        gnutls_cipher_suite_info            (size_t idx,
                                                         char *cs_id,
                                                         gnutls_kx_algorithm_t *kx,
                                                         gnutls_cipher_algorithm_t *cipher,
                                                         gnutls_mac_algorithm_t *mac,
                                                         gnutls_protocol_t *version);

Get information about supported cipher suites. Use the function iteratively to get information about all supported cipher suites. Call with idx=0 to get information about first cipher suite, then idx=1 and so on until the function returns NULL.

idx :

index of cipher suite to get information about, starts on 0.

cs_id :

output buffer with room for 2 bytes, indicating cipher suite value

kx :

output variable indicating key exchange algorithm, or NULL.

cipher :

output variable indicating cipher, or NULL.

mac :

output variable indicating MAC algorithm, or NULL.

version :

output variable indicating TLS protocol version, or NULL.

Returns :

the name of idx cipher suite, and set the information about the cipher suite in the output variables. If idx is out of bounds, NULL is returned.

gnutls_error_is_fatal ()

int                 gnutls_error_is_fatal               (int error);

error :

Returns :


gnutls_error_to_alert ()

int                 gnutls_error_to_alert               (int err,
                                                         int *level);

err :

level :

Returns :


gnutls_perror ()

void                gnutls_perror                       (int error);

error :


gnutls_strerror ()

const char *        gnutls_strerror                     (int error);

error :

Returns :


gnutls_strerror_name ()

const char *        gnutls_strerror_name                (int error);

Return the GnuTLS error code define as a string. For example, gnutls_strerror_name (GNUTLS_E_DH_PRIME_UNACCEPTABLE) will return the string "GNUTLS_E_DH_PRIME_UNACCEPTABLE".

error :

is an error returned by a gnutls function.

Returns :

A string corresponding to the symbol name of the error code.

Since 2.6.0


gnutls_handshake_set_private_extensions ()

void                gnutls_handshake_set_private_extensions
                                                        (gnutls_session_t session,
                                                         int allow);

session :

allow :


gnutls_handshake_get_last_out ()

gnutls_handshake_description_t  gnutls_handshake_get_last_out
                                                        (gnutls_session_t session);

session :

Returns :


gnutls_handshake_get_last_in ()

gnutls_handshake_description_t  gnutls_handshake_get_last_in
                                                        (gnutls_session_t session);

session :

Returns :


gnutls_record_send ()

ssize_t             gnutls_record_send                  (gnutls_session_t session,
                                                         const void *data,
                                                         size_t sizeofdata);

session :

data :

sizeofdata :

Returns :


gnutls_record_recv ()

ssize_t             gnutls_record_recv                  (gnutls_session_t session,
                                                         void *data,
                                                         size_t sizeofdata);

session :

data :

sizeofdata :

Returns :


gnutls_read

#define gnutls_read gnutls_record_recv


gnutls_write

#define gnutls_write gnutls_record_send


gnutls_session_enable_compatibility_mode ()

void                gnutls_session_enable_compatibility_mode
                                                        (gnutls_session_t session);

session :


gnutls_record_disable_padding ()

void                gnutls_record_disable_padding       (gnutls_session_t session);

session :


gnutls_record_get_direction ()

int                 gnutls_record_get_direction         (gnutls_session_t session);

session :

Returns :


gnutls_record_get_max_size ()

size_t              gnutls_record_get_max_size          (gnutls_session_t session);

session :

Returns :


gnutls_record_set_max_size ()

ssize_t             gnutls_record_set_max_size          (gnutls_session_t session,
                                                         size_t size);

session :

size :

Returns :


gnutls_record_check_pending ()

size_t              gnutls_record_check_pending         (gnutls_session_t session);

session :

Returns :


gnutls_prf ()

int                 gnutls_prf                          (gnutls_session_t session,
                                                         size_t label_size,
                                                         const char *label,
                                                         int server_random_first,
                                                         size_t extra_size,
                                                         const char *extra,
                                                         size_t outsize,
                                                         char *out);

session :

label_size :

label :

server_random_first :

extra_size :

extra :

outsize :

out :

Returns :


gnutls_prf_raw ()

int                 gnutls_prf_raw                      (gnutls_session_t session,
                                                         size_t label_size,
                                                         const char *label,
                                                         size_t seed_size,
                                                         const char *seed,
                                                         size_t outsize,
                                                         char *out);

session :

label_size :

label :

seed_size :

seed :

outsize :

out :

Returns :


gnutls_ext_recv_func ()

int                 (*gnutls_ext_recv_func)             (gnutls_session_t session,
                                                         unsigned char *data,
                                                         size_t len);

session :

data :

len :

Returns :


gnutls_ext_send_func ()

int                 (*gnutls_ext_send_func)             (gnutls_session_t session,
                                                         unsigned char *data,
                                                         size_t len);

session :

data :

len :

Returns :


enum gnutls_ext_parse_type_t

  typedef enum
    {
      GNUTLS_EXT_ANY,
      GNUTLS_EXT_APPLICATION,
      GNUTLS_EXT_TLS
    } gnutls_ext_parse_type_t;


gnutls_ext_register ()

int                 gnutls_ext_register                 (int type,
                                                         const char *name,
                                                         gnutls_ext_parse_type_t parse_type,
                                                         gnutls_ext_recv_func recv_func,
                                                         gnutls_ext_send_func send_func);

type :

name :

parse_type :

recv_func :

send_func :

Returns :


enum gnutls_server_name_type_t

  typedef enum
  {
    GNUTLS_NAME_DNS = 1
  } gnutls_server_name_type_t;


gnutls_server_name_set ()

int                 gnutls_server_name_set              (gnutls_session_t session,
                                                         gnutls_server_name_type_t type,
                                                         const void *name,
                                                         size_t name_length);

session :

type :

name :

name_length :

Returns :


gnutls_server_name_get ()

int                 gnutls_server_name_get              (gnutls_session_t session,
                                                         void *data,
                                                         size_t *data_length,
                                                         unsigned int *type,
                                                         unsigned int indx);

session :

data :

data_length :

type :

indx :

Returns :


gnutls_oprfi_enable_client ()

void                gnutls_oprfi_enable_client          (gnutls_session_t session,
                                                         size_t len,
                                                         unsigned char *data);

Request that the client should attempt to negotiate the Opaque PRF Input TLS extension, using the given data as the client's Opaque PRF input.

The data is copied into the session context after this call, so you may de-allocate it immediately after calling this function.

session :

is a gnutls_session_t structure.

len :

length of Opaque PRF data to use in client.

data :

Opaque PRF data to use in client.

gnutls_oprfi_callback_func ()

int                 (*gnutls_oprfi_callback_func)       (gnutls_session_t session,
                                                         void *userdata,
                                                         size_t oprfi_len,
                                                         unsigned char *in_oprfi,
                                                         unsigned char *out_oprfi);

session :

userdata :

oprfi_len :

in_oprfi :

out_oprfi :

Returns :


gnutls_oprfi_enable_server ()

void                gnutls_oprfi_enable_server          (gnutls_session_t session,
                                                         gnutls_oprfi_callback_func cb,
                                                         void *userdata);

Request that the server should attempt to accept the Opaque PRF Input TLS extension. If the client requests the extension, the provided callback cb will be invoked. The callback must have the following prototype:

int callback (gnutls_session_t session, void *userdata, size_t oprfi_len, const unsigned char *in_oprfi, unsigned char *out_oprfi);

The callback can inspect the client-provided data in the input parameters, and specify its own opaque prf input data in the output variable. The function must return 0 on success, otherwise the handshake will be aborted.

session :

is a gnutls_session_t structure.

cb :

function pointer to Opaque PRF extension server callback.

userdata :

hook passed to callback function for passing application state.

enum gnutls_supplemental_data_format_type_t

  typedef enum
    {
      GNUTLS_SUPPLEMENTAL_USER_MAPPING_DATA = 0
    } gnutls_supplemental_data_format_type_t;


gnutls_supplemental_get_name ()

const char *        gnutls_supplemental_get_name        (gnutls_supplemental_data_format_type_t type);

type :

Returns :


gnutls_cipher_set_priority ()

int                 gnutls_cipher_set_priority          (gnutls_session_t session,
                                                         const int *list);

session :

list :

Returns :


gnutls_mac_set_priority ()

int                 gnutls_mac_set_priority             (gnutls_session_t session,
                                                         const int *list);

session :

list :

Returns :


gnutls_compression_set_priority ()

int                 gnutls_compression_set_priority     (gnutls_session_t session,
                                                         const int *list);

session :

list :

Returns :


gnutls_kx_set_priority ()

int                 gnutls_kx_set_priority              (gnutls_session_t session,
                                                         const int *list);

session :

list :

Returns :


gnutls_protocol_set_priority ()

int                 gnutls_protocol_set_priority        (gnutls_session_t session,
                                                         const int *list);

session :

list :

Returns :


gnutls_certificate_type_set_priority ()

int                 gnutls_certificate_type_set_priority
                                                        (gnutls_session_t session,
                                                         const int *list);

session :

list :

Returns :


gnutls_priority_init ()

int                 gnutls_priority_init                (gnutls_priority_t *priority_cache,
                                                         const char *priorities,
                                                         const char **err_pos);

priority_cache :

priorities :

err_pos :

Returns :


gnutls_priority_deinit ()

void                gnutls_priority_deinit              (gnutls_priority_t priority_cache);

priority_cache :


gnutls_priority_set ()

int                 gnutls_priority_set                 (gnutls_session_t session,
                                                         gnutls_priority_t priority);

session :

priority :

Returns :


gnutls_priority_set_direct ()

int                 gnutls_priority_set_direct          (gnutls_session_t session,
                                                         const char *priorities,
                                                         const char **err_pos);

session :

priorities :

err_pos :

Returns :


gnutls_set_default_priority ()

int                 gnutls_set_default_priority         (gnutls_session_t session);

session :

Returns :


gnutls_set_default_export_priority ()

int                 gnutls_set_default_export_priority  (gnutls_session_t session);

session :

Returns :


gnutls_cipher_suite_get_name ()

const char *        gnutls_cipher_suite_get_name        (gnutls_kx_algorithm_t kx_algorithm,
                                                         gnutls_cipher_algorithm_t cipher_algorithm,
                                                         gnutls_mac_algorithm_t mac_algorithm);

kx_algorithm :

cipher_algorithm :

mac_algorithm :

Returns :


gnutls_protocol_get_version ()

gnutls_protocol_t   gnutls_protocol_get_version         (gnutls_session_t session);

session :

Returns :


gnutls_protocol_get_name ()

const char *        gnutls_protocol_get_name            (gnutls_protocol_t version);

version :

Returns :


gnutls_session_set_data ()

int                 gnutls_session_set_data             (gnutls_session_t session,
                                                         const void *session_data,
                                                         size_t session_data_size);

session :

session_data :

session_data_size :

Returns :


gnutls_session_get_data ()

int                 gnutls_session_get_data             (gnutls_session_t session,
                                                         void *session_data,
                                                         size_t *session_data_size);

session :

session_data :

session_data_size :

Returns :


gnutls_session_get_data2 ()

int                 gnutls_session_get_data2            (gnutls_session_t session,
                                                         gnutls_datum_t *data);

session :

data :

Returns :


GNUTLS_MAX_SESSION_ID

#define GNUTLS_MAX_SESSION_ID 32


gnutls_session_get_id ()

int                 gnutls_session_get_id               (gnutls_session_t session,
                                                         void *session_id,
                                                         size_t *session_id_size);

session :

session_id :

session_id_size :

Returns :


GNUTLS_MASTER_SIZE

#define GNUTLS_MASTER_SIZE 48


GNUTLS_RANDOM_SIZE

#define GNUTLS_RANDOM_SIZE 32


gnutls_session_get_server_random ()

const void *        gnutls_session_get_server_random    (gnutls_session_t session);

session :

Returns :


gnutls_session_get_client_random ()

const void *        gnutls_session_get_client_random    (gnutls_session_t session);

session :

Returns :


gnutls_session_get_master_secret ()

const void *        gnutls_session_get_master_secret    (gnutls_session_t session);

session :

Returns :


gnutls_finished_callback_func ()

void                (*gnutls_finished_callback_func)    (gnutls_session_t session,
                                                         const void *finished,
                                                         size_t len);

session :

finished :

len :


gnutls_session_set_finished_function ()

void                gnutls_session_set_finished_function
                                                        (gnutls_session_t session,
                                                         gnutls_finished_callback_func func);

Register a callback function for the session that will be called when a TLS Finished message has been generated. The function is typically used to copy away the TLS finished message for later use as a channel binding or similar purpose.

The callback should follow this prototype:

void callback (gnutls_session_t session, const void *finished, size_t len);

The finished parameter will contain the binary TLS finished message, and len will contains its length. For SSLv3 connections, the len parameter will be 36 and for TLS connections it will be 12.

It is recommended that the function returns quickly in order to not delay the handshake. Use the function to store a copy of the TLS finished message for later use.

session :

is a gnutls_session_t structure.

func :

a gnutls_finished_callback_func callback.

Since 2.6.0


gnutls_session_is_resumed ()

int                 gnutls_session_is_resumed           (gnutls_session_t session);

session :

Returns :


gnutls_db_store_func ()

int                 (*gnutls_db_store_func)             (void *Param1,
                                                         gnutls_datum_t key,
                                                         gnutls_datum_t data);

Param1 :

key :

data :

Returns :


gnutls_db_remove_func ()

int                 (*gnutls_db_remove_func)            (void *Param1,
                                                         gnutls_datum_t key);

Param1 :

key :

Returns :


gnutls_db_retr_func ()

gnutls_datum_t      (*gnutls_db_retr_func)              (void *Param1,
                                                         gnutls_datum_t key);

Param1 :

key :

Returns :


gnutls_db_set_cache_expiration ()

void                gnutls_db_set_cache_expiration      (gnutls_session_t session,
                                                         int seconds);

session :

seconds :


gnutls_db_remove_session ()

void                gnutls_db_remove_session            (gnutls_session_t session);

session :


gnutls_db_set_retrieve_function ()

void                gnutls_db_set_retrieve_function     (gnutls_session_t session,
                                                         gnutls_db_retr_func retr_func);

session :

retr_func :


gnutls_db_set_remove_function ()

void                gnutls_db_set_remove_function       (gnutls_session_t session,
                                                         gnutls_db_remove_func rem_func);

session :

rem_func :


gnutls_db_set_store_function ()

void                gnutls_db_set_store_function        (gnutls_session_t session,
                                                         gnutls_db_store_func store_func);

session :

store_func :


gnutls_db_set_ptr ()

void                gnutls_db_set_ptr                   (gnutls_session_t session,
                                                         void *ptr);

session :

ptr :


gnutls_db_get_ptr ()

void *              gnutls_db_get_ptr                   (gnutls_session_t session);

session :

Returns :


gnutls_db_check_entry ()

int                 gnutls_db_check_entry               (gnutls_session_t session,
                                                         gnutls_datum_t session_entry);

session :

session_entry :

Returns :


gnutls_handshake_post_client_hello_func ()

int                 (*gnutls_handshake_post_client_hello_func)
                                                        (gnutls_session_t Param1);

Param1 :

Returns :


gnutls_handshake_set_post_client_hello_function ()

void                gnutls_handshake_set_post_client_hello_function
                                                        (gnutls_session_t session,
                                                         gnutls_handshake_post_client_hello_func func);

session :

func :


gnutls_handshake_set_max_packet_length ()

void                gnutls_handshake_set_max_packet_length
                                                        (gnutls_session_t session,
                                                         size_t max);

session :

max :


gnutls_check_version ()

const char *        gnutls_check_version                (const char *req_version);

req_version :

Returns :


gnutls_credentials_clear ()

void                gnutls_credentials_clear            (gnutls_session_t session);

session :


gnutls_credentials_set ()

int                 gnutls_credentials_set              (gnutls_session_t session,
                                                         gnutls_credentials_type_t type,
                                                         void *cred);

session :

type :

cred :

Returns :


gnutls_cred_set

#define gnutls_cred_set gnutls_credentials_set


struct gnutls_certificate_credentials_st

struct gnutls_certificate_credentials_st;


gnutls_anon_free_server_credentials ()

void                gnutls_anon_free_server_credentials (gnutls_anon_server_credentials_t sc);

sc :


gnutls_anon_allocate_server_credentials ()

int                 gnutls_anon_allocate_server_credentials
                                                        (gnutls_anon_server_credentials_t *sc);

sc :

Returns :


gnutls_anon_set_server_dh_params ()

void                gnutls_anon_set_server_dh_params    (gnutls_anon_server_credentials_t res,
                                                         gnutls_dh_params_t dh_params);

res :

dh_params :


gnutls_anon_set_server_params_function ()

void                gnutls_anon_set_server_params_function
                                                        (gnutls_anon_server_credentials_t res,
                                                         gnutls_params_function *func);

res :

func :


gnutls_anon_free_client_credentials ()

void                gnutls_anon_free_client_credentials (gnutls_anon_client_credentials_t sc);

sc :


gnutls_anon_allocate_client_credentials ()

int                 gnutls_anon_allocate_client_credentials
                                                        (gnutls_anon_client_credentials_t *sc);

sc :

Returns :


gnutls_certificate_free_credentials ()

void                gnutls_certificate_free_credentials (gnutls_certificate_credentials_t sc);

sc :


gnutls_certificate_allocate_credentials ()

int                 gnutls_certificate_allocate_credentials
                                                        (gnutls_certificate_credentials_t *res);

res :

Returns :


gnutls_certificate_free_keys ()

void                gnutls_certificate_free_keys        (gnutls_certificate_credentials_t sc);

sc :


gnutls_certificate_free_cas ()

void                gnutls_certificate_free_cas         (gnutls_certificate_credentials_t sc);

sc :


gnutls_certificate_free_ca_names ()

void                gnutls_certificate_free_ca_names    (gnutls_certificate_credentials_t sc);

sc :


gnutls_certificate_free_crls ()

void                gnutls_certificate_free_crls        (gnutls_certificate_credentials_t sc);

sc :


gnutls_certificate_set_dh_params ()

void                gnutls_certificate_set_dh_params    (gnutls_certificate_credentials_t res,
                                                         gnutls_dh_params_t dh_params);

res :

dh_params :


gnutls_certificate_set_rsa_export_params ()

void                gnutls_certificate_set_rsa_export_params
                                                        (gnutls_certificate_credentials_t res,
                                                         gnutls_rsa_params_t rsa_params);

res :

rsa_params :


gnutls_certificate_set_verify_flags ()

void                gnutls_certificate_set_verify_flags (gnutls_certificate_credentials_t res,
                                                         unsigned int flags);

res :

flags :


gnutls_certificate_set_verify_limits ()

void                gnutls_certificate_set_verify_limits
                                                        (gnutls_certificate_credentials_t res,
                                                         unsigned int max_bits,
                                                         unsigned int max_depth);

res :

max_bits :

max_depth :


gnutls_certificate_set_x509_trust_file ()

int                 gnutls_certificate_set_x509_trust_file
                                                        (gnutls_certificate_credentials_t res,
                                                         const char *cafile,
                                                         gnutls_x509_crt_fmt_t type);

res :

cafile :

type :

Returns :


gnutls_certificate_set_x509_trust_mem ()

int                 gnutls_certificate_set_x509_trust_mem
                                                        (gnutls_certificate_credentials_t res,
                                                         const gnutls_datum_t *ca,
                                                         gnutls_x509_crt_fmt_t type);

res :

ca :

type :

Returns :


gnutls_certificate_set_x509_crl_file ()

int                 gnutls_certificate_set_x509_crl_file
                                                        (gnutls_certificate_credentials_t res,
                                                         const char *crlfile,
                                                         gnutls_x509_crt_fmt_t type);

res :

crlfile :

type :

Returns :


gnutls_certificate_set_x509_crl_mem ()

int                 gnutls_certificate_set_x509_crl_mem (gnutls_certificate_credentials_t res,
                                                         const gnutls_datum_t *CRL,
                                                         gnutls_x509_crt_fmt_t type);

res :

CRL :

type :

Returns :


gnutls_certificate_set_x509_key_file ()

int                 gnutls_certificate_set_x509_key_file
                                                        (gnutls_certificate_credentials_t res,
                                                         const char *certfile,
                                                         const char *keyfile,
                                                         gnutls_x509_crt_fmt_t type);

res :

certfile :

keyfile :

type :

Returns :


gnutls_certificate_set_x509_key_mem ()

int                 gnutls_certificate_set_x509_key_mem (gnutls_certificate_credentials_t res,
                                                         const gnutls_datum_t *cert,
                                                         const gnutls_datum_t *key,
                                                         gnutls_x509_crt_fmt_t type);

res :

cert :

key :

type :

Returns :


gnutls_certificate_send_x509_rdn_sequence ()

void                gnutls_certificate_send_x509_rdn_sequence
                                                        (gnutls_session_t session,
                                                         int status);

session :

status :


gnutls_certificate_set_x509_simple_pkcs12_file ()

int                 gnutls_certificate_set_x509_simple_pkcs12_file
                                                        (gnutls_certificate_credentials_t res,
                                                         const char *pkcs12file,
                                                         gnutls_x509_crt_fmt_t type,
                                                         const char *password);

This function sets a certificate/private key pair and/or a CRL in the gnutls_certificate_credentials_t structure. This function may be called more than once (in case multiple keys/certificates exist for the server).

MAC:ed PKCS12 files are supported. Encrypted PKCS12 bags are supported. Encrypted PKCS#8 private keys are supported. However, only password based security, and the same password for all operations, are supported.

The private keys may be RSA PKCS#1 or DSA private keys encoded in the OpenSSL way.

PKCS12 file may contain many keys and/or certificates, and there is no way to identify which key/certificate pair you want. You should make sure the PKCS12 file only contain one key/certificate pair and/or one CRL.

It is believed that the limitations of this function is acceptable for most usage, and that any more flexibility would introduce complexity that would make it harder to use this functionality at all.

res :

is a gnutls_certificate_credentials_t structure.

pkcs12file :

filename of file containing PKCS12 blob.

type :

is PEM or DER of the pkcs12file.

password :

optional password used to decrypt PKCS12 file, bags and keys.

Returns :

GNUTLS_E_SUCCESS on success, or an error code.

gnutls_certificate_set_x509_simple_pkcs12_mem ()

int                 gnutls_certificate_set_x509_simple_pkcs12_mem
                                                        (gnutls_certificate_credentials_t res,
                                                         const gnutls_datum *p12blob,
                                                         gnutls_x509_crt_fmt_t type,
                                                         const char *password);

This function sets a certificate/private key pair and/or a CRL in the gnutls_certificate_credentials_t structure. This function may be called more than once (in case multiple keys/certificates exist for the server).

MAC:ed PKCS12 files are supported. Encrypted PKCS12 bags are supported. Encrypted PKCS#8 private keys are supported. However, only password based security, and the same password for all operations, are supported.

The private keys may be RSA PKCS#1 or DSA private keys encoded in the OpenSSL way.

PKCS12 file may contain many keys and/or certificates, and there is no way to identify which key/certificate pair you want. You should make sure the PKCS12 file only contain one key/certificate pair and/or one CRL.

It is believed that the limitations of this function is acceptable for most usage, and that any more flexibility would introduce complexity that would make it harder to use this functionality at all.

res :

is a gnutls_certificate_credentials_t structure.

p12blob :

the PKCS12 blob.

type :

is PEM or DER of the pkcs12file.

password :

optional password used to decrypt PKCS12 file, bags and keys.

Returns :

GNUTLS_E_SUCCESS on success, or an error code.

Since 2.8.0


gnutls_x509_privkey_t

  typedef struct gnutls_x509_privkey_int *gnutls_x509_privkey_t;


struct gnutls_x509_crl_int

struct gnutls_x509_crl_int;


gnutls_x509_crl_t

  typedef struct gnutls_x509_crl_int *gnutls_x509_crl_t;


struct gnutls_x509_crt_int

struct gnutls_x509_crt_int;


gnutls_x509_crt_t

  typedef struct gnutls_x509_crt_int *gnutls_x509_crt_t;


struct gnutls_openpgp_keyring_int

struct gnutls_openpgp_keyring_int;


gnutls_openpgp_keyring_t

  typedef struct gnutls_openpgp_keyring_int *gnutls_openpgp_keyring_t;


gnutls_certificate_set_x509_key ()

int                 gnutls_certificate_set_x509_key     (gnutls_certificate_credentials_t res,
                                                         gnutls_x509_crt_t *cert_list,
                                                         int cert_list_size,
                                                         gnutls_x509_privkey_t key);

res :

cert_list :

cert_list_size :

key :

Returns :


gnutls_certificate_set_x509_trust ()

int                 gnutls_certificate_set_x509_trust   (gnutls_certificate_credentials_t res,
                                                         gnutls_x509_crt_t *ca_list,
                                                         int ca_list_size);

res :

ca_list :

ca_list_size :

Returns :


gnutls_certificate_set_x509_crl ()

int                 gnutls_certificate_set_x509_crl     (gnutls_certificate_credentials_t res,
                                                         gnutls_x509_crl_t *crl_list,
                                                         int crl_list_size);

res :

crl_list :

crl_list_size :

Returns :


gnutls_certificate_get_x509_cas ()

void                gnutls_certificate_get_x509_cas     (gnutls_certificate_credentials_t sc,
                                                         gnutls_x509_crt_t **x509_ca_list,
                                                         unsigned int *ncas);

sc :

x509_ca_list :

ncas :


gnutls_certificate_get_x509_crls ()

void                gnutls_certificate_get_x509_crls    (gnutls_certificate_credentials_t sc,
                                                         gnutls_x509_crl_t **x509_crl_list,
                                                         unsigned int *ncrls);

sc :

x509_crl_list :

ncrls :


gnutls_certificate_get_openpgp_keyring ()

void                gnutls_certificate_get_openpgp_keyring
                                                        (gnutls_certificate_credentials_t sc,
                                                         gnutls_openpgp_keyring_t *keyring);

sc :

keyring :


gnutls_global_init ()

int                 gnutls_global_init                  (void);

Returns :


gnutls_global_deinit ()

void                gnutls_global_deinit                (void);


gnutls_alloc_function ()

void *              (*gnutls_alloc_function)            (size_t Param1);

Param1 :

Returns :


gnutls_calloc_function ()

void *              (*gnutls_calloc_function)           (size_t Param1,
                                                         size_t Param2);

Param1 :

Param2 :

Returns :


gnutls_is_secure_function ()

int                 (*gnutls_is_secure_function)        (const void *Param1);

Param1 :

Returns :


gnutls_free_function ()

void                (*gnutls_free_function)             (void *Param1);

Param1 :


gnutls_realloc_function ()

void *              (*gnutls_realloc_function)          (void *Param1,
                                                         size_t Param2);

Param1 :

Param2 :

Returns :


gnutls_global_set_mem_functions ()

void                gnutls_global_set_mem_functions     (gnutls_alloc_function alloc_func,
                                                         gnutls_alloc_function secure_alloc_func,
                                                         gnutls_is_secure_function is_secure_func,
                                                         gnutls_realloc_function realloc_func,
                                                         gnutls_free_function free_func);

alloc_func :

secure_alloc_func :

is_secure_func :

realloc_func :

free_func :


gnutls_malloc

  extern gnutls_alloc_function gnutls_malloc;


gnutls_secure_malloc

  extern gnutls_alloc_function gnutls_secure_malloc;


gnutls_realloc

  extern gnutls_realloc_function gnutls_realloc;


gnutls_calloc

  extern gnutls_calloc_function gnutls_calloc;


gnutls_free

  extern gnutls_free_function gnutls_free;


gnutls_strdup ()

char *              (*gnutls_strdup)                    (const char *Param1);

Param1 :

Returns :


gnutls_log_func ()

void                (*gnutls_log_func)                  (...,
                                                         const char *Param2);

... :

Param2 :


gnutls_global_set_log_function ()

void                gnutls_global_set_log_function      (gnutls_log_func log_func);

log_func :


gnutls_global_set_log_level ()

void                gnutls_global_set_log_level         (int level);

level :


gnutls_dh_params_init ()

int                 gnutls_dh_params_init               (gnutls_dh_params_t *dh_params);

dh_params :

Returns :


gnutls_dh_params_deinit ()

void                gnutls_dh_params_deinit             (gnutls_dh_params_t dh_params);

dh_params :


gnutls_dh_params_import_raw ()

int                 gnutls_dh_params_import_raw         (gnutls_dh_params_t dh_params,
                                                         const gnutls_datum_t *prime,
                                                         const gnutls_datum_t *generator);

dh_params :

prime :

generator :

Returns :


gnutls_dh_params_import_pkcs3 ()

int                 gnutls_dh_params_import_pkcs3       (gnutls_dh_params_t params,
                                                         const gnutls_datum_t *pkcs3_params,
                                                         gnutls_x509_crt_fmt_t format);

params :

pkcs3_params :

format :

Returns :


gnutls_dh_params_generate2 ()

int                 gnutls_dh_params_generate2          (gnutls_dh_params_t params,
                                                         unsigned int bits);

params :

bits :

Returns :


gnutls_dh_params_export_pkcs3 ()

int                 gnutls_dh_params_export_pkcs3       (gnutls_dh_params_t params,
                                                         gnutls_x509_crt_fmt_t format,
                                                         unsigned char *params_data,
                                                         size_t *params_data_size);

params :

format :

params_data :

params_data_size :

Returns :


gnutls_dh_params_export_raw ()

int                 gnutls_dh_params_export_raw         (gnutls_dh_params_t params,
                                                         gnutls_datum_t *prime,
                                                         gnutls_datum_t *generator,
                                                         unsigned int *bits);

params :

prime :

generator :

bits :

Returns :


gnutls_dh_params_cpy ()

int                 gnutls_dh_params_cpy                (gnutls_dh_params_t dst,
                                                         gnutls_dh_params_t src);

dst :

src :

Returns :


gnutls_rsa_params_init ()

int                 gnutls_rsa_params_init              (gnutls_rsa_params_t *rsa_params);

rsa_params :

Returns :


gnutls_rsa_params_deinit ()

void                gnutls_rsa_params_deinit            (gnutls_rsa_params_t rsa_params);

rsa_params :


gnutls_rsa_params_cpy ()

int                 gnutls_rsa_params_cpy               (gnutls_rsa_params_t dst,
                                                         gnutls_rsa_params_t src);

dst :

src :

Returns :


gnutls_rsa_params_import_raw ()

int                 gnutls_rsa_params_import_raw        (gnutls_rsa_params_t rsa_params,
                                                         const gnutls_datum_t *m,
                                                         const gnutls_datum_t *e,
                                                         const gnutls_datum_t *d,
                                                         const gnutls_datum_t *p,
                                                         const gnutls_datum_t *q,
                                                         const gnutls_datum_t *u);

rsa_params :

m :

e :

d :

p :

q :

u :

Returns :


gnutls_rsa_params_generate2 ()

int                 gnutls_rsa_params_generate2         (gnutls_rsa_params_t params,
                                                         unsigned int bits);

params :

bits :

Returns :


gnutls_rsa_params_export_raw ()

int                 gnutls_rsa_params_export_raw        (gnutls_rsa_params_t params,
                                                         gnutls_datum_t *m,
                                                         gnutls_datum_t *e,
                                                         gnutls_datum_t *d,
                                                         gnutls_datum_t *p,
                                                         gnutls_datum_t *q,
                                                         gnutls_datum_t *u,
                                                         unsigned int *bits);

params :

m :

e :

d :

p :

q :

u :

bits :

Returns :


gnutls_rsa_params_export_pkcs1 ()

int                 gnutls_rsa_params_export_pkcs1      (gnutls_rsa_params_t params,
                                                         gnutls_x509_crt_fmt_t format,
                                                         unsigned char *params_data,
                                                         size_t *params_data_size);

params :

format :

params_data :

params_data_size :

Returns :


gnutls_rsa_params_import_pkcs1 ()

int                 gnutls_rsa_params_import_pkcs1      (gnutls_rsa_params_t params,
                                                         const gnutls_datum_t *pkcs1_params,
                                                         gnutls_x509_crt_fmt_t format);

params :

pkcs1_params :

format :

Returns :


gnutls_pull_func ()

ssize_t             (*gnutls_pull_func)                 (gnutls_transport_ptr_t Param1,
                                                         void *Param2,
                                                         size_t Param3);

Param1 :

Param2 :

Param3 :

Returns :


gnutls_push_func ()

ssize_t             (*gnutls_push_func)                 (gnutls_transport_ptr_t Param1,
                                                         const void *Param2,
                                                         size_t Param3);

Param1 :

Param2 :

Param3 :

Returns :


gnutls_transport_set_ptr ()

void                gnutls_transport_set_ptr            (gnutls_session_t session,
                                                         gnutls_transport_ptr_t ptr);

session :

ptr :


gnutls_transport_set_ptr2 ()

void                gnutls_transport_set_ptr2           (gnutls_session_t session,
                                                         gnutls_transport_ptr_t recv_ptr,
                                                         gnutls_transport_ptr_t send_ptr);

session :

recv_ptr :

send_ptr :


gnutls_transport_get_ptr ()

gnutls_transport_ptr_t  gnutls_transport_get_ptr        (gnutls_session_t session);

session :

Returns :


gnutls_transport_get_ptr2 ()

void                gnutls_transport_get_ptr2           (gnutls_session_t session,
                                                         gnutls_transport_ptr_t *recv_ptr,
                                                         gnutls_transport_ptr_t *send_ptr);

session :

recv_ptr :

send_ptr :


gnutls_transport_set_lowat ()

void                gnutls_transport_set_lowat          (gnutls_session_t session,
                                                         int num);

session :

num :


gnutls_transport_set_push_function ()

void                gnutls_transport_set_push_function  (gnutls_session_t session,
                                                         gnutls_push_func push_func);

session :

push_func :


gnutls_transport_set_pull_function ()

void                gnutls_transport_set_pull_function  (gnutls_session_t session,
                                                         gnutls_pull_func pull_func);

session :

pull_func :


gnutls_transport_set_errno ()

void                gnutls_transport_set_errno          (gnutls_session_t session,
                                                         int err);

Store err in the session-specific errno variable. Useful values for err is EAGAIN and EINTR, other values are treated will be treated as real errors in the push/pull function.

This function is useful in replacement push/pull functions set by gnutls_transport_set_push_function and gnutls_transport_set_pullpush_function under Windows, where the replacement push/pull may not have access to the same errno variable that is used by GnuTLS (e.g., the application is linked to msvcr71.dll and gnutls is linked to msvcrt.dll).

If you don't have the session variable easily accessible from the push/pull function, and don't worry about thread conflicts, you can also use gnutls_transport_set_global_errno().

session :

is a gnutls_session_t structure.

err :

error value to store in session-specific errno variable.

gnutls_transport_set_global_errno ()

void                gnutls_transport_set_global_errno   (int err);

Store err in the global errno variable. Useful values for err is EAGAIN and EINTR, other values are treated will be treated as real errors in the push/pull function.

This function is useful in replacement push/pull functions set by gnutls_transport_set_push_function and gnutls_transport_set_pullpush_function under Windows, where the replacement push/pull may not have access to the same errno variable that is used by GnuTLS (e.g., the application is linked to msvcr71.dll and gnutls is linked to msvcrt.dll).

Whether this function is thread safe or not depends on whether the global variable errno is thread safe, some system libraries make it a thread-local variable. When feasible, using the guaranteed thread-safe gnutls_transport_set_errno() may be better.

err :

error value to store in global errno variable.

gnutls_session_set_ptr ()

void                gnutls_session_set_ptr              (gnutls_session_t session,
                                                         void *ptr);

session :

ptr :


gnutls_session_get_ptr ()

void *              gnutls_session_get_ptr              (gnutls_session_t session);

session :

Returns :


gnutls_openpgp_send_cert ()

void                gnutls_openpgp_send_cert            (gnutls_session_t session,
                                                         gnutls_openpgp_crt_status_t status);

session :

status :


gnutls_fingerprint ()

int                 gnutls_fingerprint                  (gnutls_digest_algorithm_t algo,
                                                         const gnutls_datum_t *data,
                                                         void *result,
                                                         size_t *result_size);

algo :

data :

result :

result_size :

Returns :


gnutls_srp_free_client_credentials ()

void                gnutls_srp_free_client_credentials  (gnutls_srp_client_credentials_t sc);

sc :


gnutls_srp_allocate_client_credentials ()

int                 gnutls_srp_allocate_client_credentials
                                                        (gnutls_srp_client_credentials_t *sc);

sc :

Returns :


gnutls_srp_set_client_credentials ()

int                 gnutls_srp_set_client_credentials   (gnutls_srp_client_credentials_t res,
                                                         const char *username,
                                                         const char *password);

res :

username :

password :

Returns :


gnutls_srp_free_server_credentials ()

void                gnutls_srp_free_server_credentials  (gnutls_srp_server_credentials_t sc);

sc :


gnutls_srp_allocate_server_credentials ()

int                 gnutls_srp_allocate_server_credentials
                                                        (gnutls_srp_server_credentials_t *sc);

sc :

Returns :


gnutls_srp_set_server_credentials_file ()

int                 gnutls_srp_set_server_credentials_file
                                                        (gnutls_srp_server_credentials_t res,
                                                         const char *password_file,
                                                         const char *password_conf_file);

res :

password_file :

password_conf_file :

Returns :


gnutls_srp_server_get_username ()

const char *        gnutls_srp_server_get_username      (gnutls_session_t session);

session :

Returns :


gnutls_srp_set_prime_bits ()

void                gnutls_srp_set_prime_bits           (gnutls_session_t session,
                                                         unsigned int bits);

session :

bits :


gnutls_srp_verifier ()

int                 gnutls_srp_verifier                 (const char *username,
                                                         const char *password,
                                                         const gnutls_datum_t *salt,
                                                         const gnutls_datum_t *generator,
                                                         const gnutls_datum_t *prime,
                                                         gnutls_datum_t *res);

username :

password :

salt :

generator :

prime :

res :

Returns :


gnutls_srp_2048_group_prime

  extern const gnutls_datum_t gnutls_srp_2048_group_prime;


gnutls_srp_2048_group_generator

  extern const gnutls_datum_t gnutls_srp_2048_group_generator;


gnutls_srp_1536_group_prime

  extern const gnutls_datum_t gnutls_srp_1536_group_prime;


gnutls_srp_1536_group_generator

  extern const gnutls_datum_t gnutls_srp_1536_group_generator;


gnutls_srp_1024_group_prime

  extern const gnutls_datum_t gnutls_srp_1024_group_prime;


gnutls_srp_1024_group_generator

  extern const gnutls_datum_t gnutls_srp_1024_group_generator;


gnutls_srp_set_server_credentials_function ()

void                gnutls_srp_set_server_credentials_function
                                                        (gnutls_srp_server_credentials_t cred,
                                                         gnutls_srp_server_credentials_function *func);

cred :

func :


gnutls_srp_set_client_credentials_function ()

void                gnutls_srp_set_client_credentials_function
                                                        (gnutls_srp_client_credentials_t cred,
                                                         gnutls_srp_client_credentials_function *func);

cred :

func :


gnutls_srp_base64_encode ()

int                 gnutls_srp_base64_encode            (const gnutls_datum_t *data,
                                                         char *result,
                                                         size_t *result_size);

data :

result :

result_size :

Returns :


gnutls_srp_base64_encode_alloc ()

int                 gnutls_srp_base64_encode_alloc      (const gnutls_datum_t *data,
                                                         gnutls_datum_t *result);

data :

result :

Returns :


gnutls_srp_base64_decode ()

int                 gnutls_srp_base64_decode            (const gnutls_datum_t *b64_data,
                                                         char *result,
                                                         size_t *result_size);

b64_data :

result :

result_size :

Returns :


gnutls_srp_base64_decode_alloc ()

int                 gnutls_srp_base64_decode_alloc      (const gnutls_datum_t *b64_data,
                                                         gnutls_datum_t *result);

b64_data :

result :

Returns :


enum gnutls_psk_key_flags

  typedef enum gnutls_psk_key_flags
    {
      GNUTLS_PSK_KEY_RAW = 0,
      GNUTLS_PSK_KEY_HEX
    } gnutls_psk_key_flags;


gnutls_psk_free_client_credentials ()

void                gnutls_psk_free_client_credentials  (gnutls_psk_client_credentials_t sc);

sc :


gnutls_psk_allocate_client_credentials ()

int                 gnutls_psk_allocate_client_credentials
                                                        (gnutls_psk_client_credentials_t *sc);

sc :

Returns :


gnutls_psk_set_client_credentials ()

int                 gnutls_psk_set_client_credentials   (gnutls_psk_client_credentials_t res,
                                                         const char *username,
                                                         const gnutls_datum_t *key,
                                                         gnutls_psk_key_flags format);

res :

username :

key :

format :

Returns :


gnutls_psk_free_server_credentials ()

void                gnutls_psk_free_server_credentials  (gnutls_psk_server_credentials_t sc);

sc :


gnutls_psk_allocate_server_credentials ()

int                 gnutls_psk_allocate_server_credentials
                                                        (gnutls_psk_server_credentials_t *sc);

sc :

Returns :


gnutls_psk_set_server_credentials_file ()

int                 gnutls_psk_set_server_credentials_file
                                                        (gnutls_psk_server_credentials_t res,
                                                         const char *password_file);

res :

password_file :

Returns :


gnutls_psk_set_server_credentials_hint ()

int                 gnutls_psk_set_server_credentials_hint
                                                        (gnutls_psk_server_credentials_t res,
                                                         const char *hint);

res :

hint :

Returns :


gnutls_psk_server_get_username ()

const char *        gnutls_psk_server_get_username      (gnutls_session_t session);

session :

Returns :


gnutls_psk_client_get_hint ()

const char *        gnutls_psk_client_get_hint          (gnutls_session_t session);

session :

Returns :


gnutls_psk_set_server_credentials_function ()

void                gnutls_psk_set_server_credentials_function
                                                        (gnutls_psk_server_credentials_t cred,
                                                         gnutls_psk_server_credentials_function *func);

cred :

func :


gnutls_psk_set_client_credentials_function ()

void                gnutls_psk_set_client_credentials_function
                                                        (gnutls_psk_client_credentials_t cred,
                                                         gnutls_psk_client_credentials_function *func);

cred :

func :


gnutls_hex_encode ()

int                 gnutls_hex_encode                   (const gnutls_datum_t *data,
                                                         char *result,
                                                         size_t *result_size);

data :

result :

result_size :

Returns :


gnutls_hex_decode ()

int                 gnutls_hex_decode                   (const gnutls_datum_t *hex_data,
                                                         char *result,
                                                         size_t *result_size);

hex_data :

result :

result_size :

Returns :


gnutls_psk_set_server_dh_params ()

void                gnutls_psk_set_server_dh_params     (gnutls_psk_server_credentials_t res,
                                                         gnutls_dh_params_t dh_params);

res :

dh_params :


gnutls_psk_set_server_params_function ()

void                gnutls_psk_set_server_params_function
                                                        (gnutls_psk_server_credentials_t res,
                                                         gnutls_params_function *func);

res :

func :


gnutls_psk_netconf_derive_key ()

int                 gnutls_psk_netconf_derive_key       (const char *password,
                                                         const char *psk_identity,
                                                         const char *psk_identity_hint,
                                                         gnutls_datum_t *output_key);

password :

psk_identity :

psk_identity_hint :

output_key :

Returns :


enum gnutls_x509_subject_alt_name_t

  typedef enum gnutls_x509_subject_alt_name_t
  {
    GNUTLS_SAN_DNSNAME = 1,
    GNUTLS_SAN_RFC822NAME,
    GNUTLS_SAN_URI,
    GNUTLS_SAN_IPADDRESS,
    GNUTLS_SAN_OTHERNAME,
    GNUTLS_SAN_DN,
    /* The following are "virtual" subject alternative name types, in
       that they are represented by an otherName value and an OID.
       Used by gnutls_x509_crt_get_subject_alt_othername_oid().  */
    GNUTLS_SAN_OTHERNAME_XMPP = 1000
  } gnutls_x509_subject_alt_name_t;


struct gnutls_openpgp_crt_int

struct gnutls_openpgp_crt_int;


gnutls_openpgp_crt_t

  typedef struct gnutls_openpgp_crt_int *gnutls_openpgp_crt_t;


struct gnutls_openpgp_privkey_int

struct gnutls_openpgp_privkey_int;


gnutls_openpgp_privkey_t

  typedef struct gnutls_openpgp_privkey_int *gnutls_openpgp_privkey_t;


gnutls_auth_get_type ()

gnutls_credentials_type_t  gnutls_auth_get_type         (gnutls_session_t session);

session :

Returns :


gnutls_auth_server_get_type ()

gnutls_credentials_type_t  gnutls_auth_server_get_type  (gnutls_session_t session);

session :

Returns :


gnutls_auth_client_get_type ()

gnutls_credentials_type_t  gnutls_auth_client_get_type  (gnutls_session_t session);

session :

Returns :


gnutls_dh_set_prime_bits ()

void                gnutls_dh_set_prime_bits            (gnutls_session_t session,
                                                         unsigned int bits);

session :

bits :


gnutls_dh_get_secret_bits ()

int                 gnutls_dh_get_secret_bits           (gnutls_session_t session);

session :

Returns :


gnutls_dh_get_peers_public_bits ()

int                 gnutls_dh_get_peers_public_bits     (gnutls_session_t session);

session :

Returns :


gnutls_dh_get_prime_bits ()

int                 gnutls_dh_get_prime_bits            (gnutls_session_t session);

session :

Returns :


gnutls_dh_get_group ()

int                 gnutls_dh_get_group                 (gnutls_session_t session,
                                                         gnutls_datum_t *raw_gen,
                                                         gnutls_datum_t *raw_prime);

session :

raw_gen :

raw_prime :

Returns :


gnutls_dh_get_pubkey ()

int                 gnutls_dh_get_pubkey                (gnutls_session_t session,
                                                         gnutls_datum_t *raw_key);

session :

raw_key :

Returns :


gnutls_rsa_export_get_pubkey ()

int                 gnutls_rsa_export_get_pubkey        (gnutls_session_t session,
                                                         gnutls_datum_t *exponent,
                                                         gnutls_datum_t *modulus);

session :

exponent :

modulus :

Returns :


gnutls_rsa_export_get_modulus_bits ()

int                 gnutls_rsa_export_get_modulus_bits  (gnutls_session_t session);

session :

Returns :


gnutls_sign_func ()

int                 (*gnutls_sign_func)                 (gnutls_session_t session,
                                                         void *userdata,
                                                         gnutls_certificate_type_t cert_type,
                                                         const gnutls_datum_t *cert,
                                                         const gnutls_datum_t *hash,
                                                         gnutls_datum_t *signature);

session :

userdata :

cert_type :

cert :

hash :

signature :

Returns :


gnutls_sign_callback_set ()

void                gnutls_sign_callback_set            (gnutls_session_t session,
                                                         gnutls_sign_func sign_func,
                                                         void *userdata);

Set the callback function. The function must have this prototype:

typedef int (*gnutls_sign_func) (gnutls_session_t session, void *userdata, gnutls_certificate_type_t cert_type, const gnutls_datum_t * cert, const gnutls_datum_t * hash, gnutls_datum_t * signature);

The userdata parameter is passed to the sign_func verbatim, and can be used to store application-specific data needed in the callback function. See also gnutls_sign_callback_get().

session :

is a gnutls session

sign_func :

function pointer to application's sign callback.

userdata :

void pointer that will be passed to sign callback.

gnutls_sign_callback_get ()

gnutls_sign_func    gnutls_sign_callback_get            (gnutls_session_t session,
                                                         void **userdata);

Retrieve the callback function, and its userdata pointer.

session :

is a gnutls session

userdata :

if non-NULL, will be set to abstract callback pointer.

Returns :

The function pointer set by gnutls_sign_callback_set(), or if not set, NULL.

gnutls_certificate_client_set_retrieve_function ()

void                gnutls_certificate_client_set_retrieve_function
                                                        (gnutls_certificate_credentials_t cred,
                                                         gnutls_certificate_client_retrieve_function *func);

cred :

func :


gnutls_certificate_server_set_retrieve_function ()

void                gnutls_certificate_server_set_retrieve_function
                                                        (gnutls_certificate_credentials_t cred,
                                                         gnutls_certificate_server_retrieve_function *func);

cred :

func :


gnutls_certificate_server_set_request ()

void                gnutls_certificate_server_set_request
                                                        (gnutls_session_t session,
                                                         gnutls_certificate_request_t req);

session :

req :


gnutls_certificate_get_peers ()

const gnutls_datum_t * gnutls_certificate_get_peers     (gnutls_session_t session,
                                                         unsigned int *list_size);

session :

list_size :

Returns :


gnutls_certificate_get_ours ()

const gnutls_datum_t * gnutls_certificate_get_ours      (gnutls_session_t session);

session :

Returns :


gnutls_certificate_activation_time_peers ()

time_t              gnutls_certificate_activation_time_peers
                                                        (gnutls_session_t session);

session :

Returns :


gnutls_certificate_expiration_time_peers ()

time_t              gnutls_certificate_expiration_time_peers
                                                        (gnutls_session_t session);

session :

Returns :


gnutls_certificate_client_get_request_status ()

int                 gnutls_certificate_client_get_request_status
                                                        (gnutls_session_t session);

session :

Returns :


gnutls_certificate_verify_peers2 ()

int                 gnutls_certificate_verify_peers2    (gnutls_session_t session,
                                                         unsigned int *status);

session :

status :

Returns :


gnutls_certificate_verify_peers ()

int                 gnutls_certificate_verify_peers     (gnutls_session_t session);

session :

Returns :


gnutls_pem_base64_encode ()

int                 gnutls_pem_base64_encode            (const char *msg,
                                                         const gnutls_datum_t *data,
                                                         char *result,
                                                         size_t *result_size);

msg :

data :

result :

result_size :

Returns :


gnutls_pem_base64_decode ()

int                 gnutls_pem_base64_decode            (const char *header,
                                                         const gnutls_datum_t *b64_data,
                                                         unsigned char *result,
                                                         size_t *result_size);

header :

b64_data :

result :

result_size :

Returns :


gnutls_pem_base64_encode_alloc ()

int                 gnutls_pem_base64_encode_alloc      (const char *msg,
                                                         const gnutls_datum_t *data,
                                                         gnutls_datum_t *result);

msg :

data :

result :

Returns :


gnutls_pem_base64_decode_alloc ()

int                 gnutls_pem_base64_decode_alloc      (const char *header,
                                                         const gnutls_datum_t *b64_data,
                                                         gnutls_datum_t *result);

header :

b64_data :

result :

Returns :


GNUTLS_KEY_DIGITAL_SIGNATURE

#define GNUTLS_KEY_DIGITAL_SIGNATURE 128


GNUTLS_KEY_NON_REPUDIATION

#define GNUTLS_KEY_NON_REPUDIATION 64


GNUTLS_KEY_KEY_ENCIPHERMENT

#define GNUTLS_KEY_KEY_ENCIPHERMENT 32


GNUTLS_KEY_DATA_ENCIPHERMENT

#define GNUTLS_KEY_DATA_ENCIPHERMENT 16


GNUTLS_KEY_KEY_AGREEMENT

#define GNUTLS_KEY_KEY_AGREEMENT 8


GNUTLS_KEY_KEY_CERT_SIGN

#define GNUTLS_KEY_KEY_CERT_SIGN 4


GNUTLS_KEY_CRL_SIGN

#define GNUTLS_KEY_CRL_SIGN		2


GNUTLS_KEY_ENCIPHER_ONLY

#define GNUTLS_KEY_ENCIPHER_ONLY 1


GNUTLS_KEY_DECIPHER_ONLY

#define GNUTLS_KEY_DECIPHER_ONLY 32768


gnutls_certificate_set_params_function ()

void                gnutls_certificate_set_params_function
                                                        (gnutls_certificate_credentials_t res,
                                                         gnutls_params_function *func);

res :

func :


gnutls_anon_set_params_function ()

void                gnutls_anon_set_params_function     (gnutls_anon_server_credentials_t res,
                                                         gnutls_params_function *func);

res :

func :


gnutls_psk_set_params_function ()

void                gnutls_psk_set_params_function      (gnutls_psk_server_credentials_t res,
                                                         gnutls_params_function *func);

res :

func :


gnutls_hex2bin ()

int                 gnutls_hex2bin                      (const char *hex_data,
                                                         size_t hex_size,
                                                         char *bin_data,
                                                         size_t *bin_size);

hex_data :

hex_size :

bin_data :

bin_size :

Returns :


GNUTLS_E_SUCCESS

#define GNUTLS_E_SUCCESS 0


GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHM

#define GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHM -3


GNUTLS_E_UNKNOWN_CIPHER_TYPE

#define GNUTLS_E_UNKNOWN_CIPHER_TYPE -6


GNUTLS_E_LARGE_PACKET

#define GNUTLS_E_LARGE_PACKET -7


GNUTLS_E_UNSUPPORTED_VERSION_PACKET

#define GNUTLS_E_UNSUPPORTED_VERSION_PACKET -8 /* GNUTLS_A_PROTOCOL_VERSION */


GNUTLS_E_UNEXPECTED_PACKET_LENGTH

#define GNUTLS_E_UNEXPECTED_PACKET_LENGTH -9 /* GNUTLS_A_RECORD_OVERFLOW */


GNUTLS_E_INVALID_SESSION

#define GNUTLS_E_INVALID_SESSION -10


GNUTLS_E_FATAL_ALERT_RECEIVED

#define GNUTLS_E_FATAL_ALERT_RECEIVED -12


GNUTLS_E_UNEXPECTED_PACKET

#define GNUTLS_E_UNEXPECTED_PACKET -15 /* GNUTLS_A_UNEXPECTED_MESSAGE */


GNUTLS_E_WARNING_ALERT_RECEIVED

#define GNUTLS_E_WARNING_ALERT_RECEIVED -16


GNUTLS_E_ERROR_IN_FINISHED_PACKET

#define GNUTLS_E_ERROR_IN_FINISHED_PACKET -18


GNUTLS_E_UNEXPECTED_HANDSHAKE_PACKET

#define GNUTLS_E_UNEXPECTED_HANDSHAKE_PACKET -19


GNUTLS_E_UNKNOWN_CIPHER_SUITE

#define GNUTLS_E_UNKNOWN_CIPHER_SUITE -21 /* GNUTLS_A_HANDSHAKE_FAILURE */


GNUTLS_E_UNWANTED_ALGORITHM

#define GNUTLS_E_UNWANTED_ALGORITHM -22


GNUTLS_E_MPI_SCAN_FAILED

#define GNUTLS_E_MPI_SCAN_FAILED -23


GNUTLS_E_DECRYPTION_FAILED

#define GNUTLS_E_DECRYPTION_FAILED -24 /* GNUTLS_A_DECRYPTION_FAILED, GNUTLS_A_BAD_RECORD_MAC */


GNUTLS_E_MEMORY_ERROR

#define GNUTLS_E_MEMORY_ERROR -25


GNUTLS_E_DECOMPRESSION_FAILED

#define GNUTLS_E_DECOMPRESSION_FAILED -26 /* GNUTLS_A_DECOMPRESSION_FAILURE */


GNUTLS_E_COMPRESSION_FAILED

#define GNUTLS_E_COMPRESSION_FAILED -27


GNUTLS_E_AGAIN

#define GNUTLS_E_AGAIN -28


GNUTLS_E_EXPIRED

#define GNUTLS_E_EXPIRED -29


GNUTLS_E_DB_ERROR

#define GNUTLS_E_DB_ERROR -30


GNUTLS_E_SRP_PWD_ERROR

#define GNUTLS_E_SRP_PWD_ERROR -31


GNUTLS_E_INSUFFICIENT_CREDENTIALS

#define GNUTLS_E_INSUFFICIENT_CREDENTIALS -32


GNUTLS_E_INSUFICIENT_CREDENTIALS

#define GNUTLS_E_INSUFICIENT_CREDENTIALS GNUTLS_E_INSUFFICIENT_CREDENTIALS /* for backwards compatibility only */


GNUTLS_E_INSUFFICIENT_CRED

#define GNUTLS_E_INSUFFICIENT_CRED GNUTLS_E_INSUFFICIENT_CREDENTIALS


GNUTLS_E_INSUFICIENT_CRED

#define GNUTLS_E_INSUFICIENT_CRED GNUTLS_E_INSUFFICIENT_CREDENTIALS /* for backwards compatibility only */


GNUTLS_E_HASH_FAILED

#define GNUTLS_E_HASH_FAILED -33


GNUTLS_E_BASE64_DECODING_ERROR

#define GNUTLS_E_BASE64_DECODING_ERROR -34


GNUTLS_E_MPI_PRINT_FAILED

#define GNUTLS_E_MPI_PRINT_FAILED -35


GNUTLS_E_REHANDSHAKE

#define GNUTLS_E_REHANDSHAKE -37 /* GNUTLS_A_NO_RENEGOTIATION */


GNUTLS_E_GOT_APPLICATION_DATA

#define GNUTLS_E_GOT_APPLICATION_DATA -38


GNUTLS_E_RECORD_LIMIT_REACHED

#define GNUTLS_E_RECORD_LIMIT_REACHED -39


GNUTLS_E_ENCRYPTION_FAILED

#define GNUTLS_E_ENCRYPTION_FAILED -40


GNUTLS_E_PK_ENCRYPTION_FAILED

#define GNUTLS_E_PK_ENCRYPTION_FAILED -44


GNUTLS_E_PK_DECRYPTION_FAILED

#define GNUTLS_E_PK_DECRYPTION_FAILED -45


GNUTLS_E_PK_SIGN_FAILED

#define GNUTLS_E_PK_SIGN_FAILED -46


GNUTLS_E_X509_UNSUPPORTED_CRITICAL_EXTENSION

#define GNUTLS_E_X509_UNSUPPORTED_CRITICAL_EXTENSION -47


GNUTLS_E_KEY_USAGE_VIOLATION

#define GNUTLS_E_KEY_USAGE_VIOLATION -48


GNUTLS_E_NO_CERTIFICATE_FOUND

#define GNUTLS_E_NO_CERTIFICATE_FOUND -49 /* GNUTLS_A_BAD_CERTIFICATE */


GNUTLS_E_INVALID_REQUEST

#define GNUTLS_E_INVALID_REQUEST -50


GNUTLS_E_SHORT_MEMORY_BUFFER

#define GNUTLS_E_SHORT_MEMORY_BUFFER -51


GNUTLS_E_INTERRUPTED

#define GNUTLS_E_INTERRUPTED -52


GNUTLS_E_PUSH_ERROR

#define GNUTLS_E_PUSH_ERROR -53


GNUTLS_E_PULL_ERROR

#define GNUTLS_E_PULL_ERROR -54


GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER

#define GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER -55 /* GNUTLS_A_ILLEGAL_PARAMETER */


GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE

#define GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE -56


GNUTLS_E_PKCS1_WRONG_PAD

#define GNUTLS_E_PKCS1_WRONG_PAD -57


GNUTLS_E_RECEIVED_ILLEGAL_EXTENSION

#define GNUTLS_E_RECEIVED_ILLEGAL_EXTENSION -58


GNUTLS_E_INTERNAL_ERROR

#define GNUTLS_E_INTERNAL_ERROR -59


GNUTLS_E_DH_PRIME_UNACCEPTABLE

#define GNUTLS_E_DH_PRIME_UNACCEPTABLE -63


GNUTLS_E_FILE_ERROR

#define GNUTLS_E_FILE_ERROR -64


GNUTLS_E_TOO_MANY_EMPTY_PACKETS

#define GNUTLS_E_TOO_MANY_EMPTY_PACKETS -78


GNUTLS_E_UNKNOWN_PK_ALGORITHM

#define GNUTLS_E_UNKNOWN_PK_ALGORITHM -80


GNUTLS_E_INIT_LIBEXTRA

#define GNUTLS_E_INIT_LIBEXTRA -82


GNUTLS_E_LIBRARY_VERSION_MISMATCH

#define GNUTLS_E_LIBRARY_VERSION_MISMATCH -83


GNUTLS_E_NO_TEMPORARY_RSA_PARAMS

#define GNUTLS_E_NO_TEMPORARY_RSA_PARAMS -84


GNUTLS_E_LZO_INIT_FAILED

#define GNUTLS_E_LZO_INIT_FAILED -85


GNUTLS_E_NO_COMPRESSION_ALGORITHMS

#define GNUTLS_E_NO_COMPRESSION_ALGORITHMS -86


GNUTLS_E_NO_CIPHER_SUITES

#define GNUTLS_E_NO_CIPHER_SUITES -87


GNUTLS_E_OPENPGP_GETKEY_FAILED

#define GNUTLS_E_OPENPGP_GETKEY_FAILED -88


GNUTLS_E_PK_SIG_VERIFY_FAILED

#define GNUTLS_E_PK_SIG_VERIFY_FAILED -89


GNUTLS_E_ILLEGAL_SRP_USERNAME

#define GNUTLS_E_ILLEGAL_SRP_USERNAME -90


GNUTLS_E_SRP_PWD_PARSING_ERROR

#define GNUTLS_E_SRP_PWD_PARSING_ERROR -91


GNUTLS_E_NO_TEMPORARY_DH_PARAMS

#define GNUTLS_E_NO_TEMPORARY_DH_PARAMS -93


GNUTLS_E_ASN1_ELEMENT_NOT_FOUND

#define GNUTLS_E_ASN1_ELEMENT_NOT_FOUND -67


GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND

#define GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND -68


GNUTLS_E_ASN1_DER_ERROR

#define GNUTLS_E_ASN1_DER_ERROR -69


GNUTLS_E_ASN1_VALUE_NOT_FOUND

#define GNUTLS_E_ASN1_VALUE_NOT_FOUND -70


GNUTLS_E_ASN1_GENERIC_ERROR

#define GNUTLS_E_ASN1_GENERIC_ERROR -71


GNUTLS_E_ASN1_VALUE_NOT_VALID

#define GNUTLS_E_ASN1_VALUE_NOT_VALID -72


GNUTLS_E_ASN1_TAG_ERROR

#define GNUTLS_E_ASN1_TAG_ERROR -73


GNUTLS_E_ASN1_TAG_IMPLICIT

#define GNUTLS_E_ASN1_TAG_IMPLICIT -74


GNUTLS_E_ASN1_TYPE_ANY_ERROR

#define GNUTLS_E_ASN1_TYPE_ANY_ERROR -75


GNUTLS_E_ASN1_SYNTAX_ERROR

#define GNUTLS_E_ASN1_SYNTAX_ERROR -76


GNUTLS_E_ASN1_DER_OVERFLOW

#define GNUTLS_E_ASN1_DER_OVERFLOW -77


GNUTLS_E_OPENPGP_UID_REVOKED

#define GNUTLS_E_OPENPGP_UID_REVOKED -79


GNUTLS_E_CERTIFICATE_ERROR

#define GNUTLS_E_CERTIFICATE_ERROR -43


GNUTLS_E_X509_CERTIFICATE_ERROR

#define GNUTLS_E_X509_CERTIFICATE_ERROR GNUTLS_E_CERTIFICATE_ERROR


GNUTLS_E_CERTIFICATE_KEY_MISMATCH

#define GNUTLS_E_CERTIFICATE_KEY_MISMATCH -60


GNUTLS_E_UNSUPPORTED_CERTIFICATE_TYPE

#define GNUTLS_E_UNSUPPORTED_CERTIFICATE_TYPE -61 /* GNUTLS_A_UNSUPPORTED_CERTIFICATE */


GNUTLS_E_X509_UNKNOWN_SAN

#define GNUTLS_E_X509_UNKNOWN_SAN -62


GNUTLS_E_OPENPGP_FINGERPRINT_UNSUPPORTED

#define GNUTLS_E_OPENPGP_FINGERPRINT_UNSUPPORTED -94


GNUTLS_E_X509_UNSUPPORTED_ATTRIBUTE

#define GNUTLS_E_X509_UNSUPPORTED_ATTRIBUTE -95


GNUTLS_E_UNKNOWN_HASH_ALGORITHM

#define GNUTLS_E_UNKNOWN_HASH_ALGORITHM -96


GNUTLS_E_UNKNOWN_PKCS_CONTENT_TYPE

#define GNUTLS_E_UNKNOWN_PKCS_CONTENT_TYPE -97


GNUTLS_E_UNKNOWN_PKCS_BAG_TYPE

#define GNUTLS_E_UNKNOWN_PKCS_BAG_TYPE -98


GNUTLS_E_INVALID_PASSWORD

#define GNUTLS_E_INVALID_PASSWORD -99


GNUTLS_E_MAC_VERIFY_FAILED

#define GNUTLS_E_MAC_VERIFY_FAILED -100 /* for PKCS #12 MAC */


GNUTLS_E_CONSTRAINT_ERROR

#define GNUTLS_E_CONSTRAINT_ERROR -101


GNUTLS_E_WARNING_IA_IPHF_RECEIVED

#define GNUTLS_E_WARNING_IA_IPHF_RECEIVED -102


GNUTLS_E_WARNING_IA_FPHF_RECEIVED

#define GNUTLS_E_WARNING_IA_FPHF_RECEIVED -103


GNUTLS_E_IA_VERIFY_FAILED

#define GNUTLS_E_IA_VERIFY_FAILED -104


GNUTLS_E_UNKNOWN_ALGORITHM

#define GNUTLS_E_UNKNOWN_ALGORITHM -105


GNUTLS_E_BASE64_ENCODING_ERROR

#define GNUTLS_E_BASE64_ENCODING_ERROR -201


GNUTLS_E_INCOMPATIBLE_GCRYPT_LIBRARY

#define GNUTLS_E_INCOMPATIBLE_GCRYPT_LIBRARY -202 /* obsolete */


GNUTLS_E_INCOMPATIBLE_CRYPTO_LIBRARY

#define GNUTLS_E_INCOMPATIBLE_CRYPTO_LIBRARY -202


GNUTLS_E_INCOMPATIBLE_LIBTASN1_LIBRARY

#define GNUTLS_E_INCOMPATIBLE_LIBTASN1_LIBRARY -203


GNUTLS_E_OPENPGP_KEYRING_ERROR

#define GNUTLS_E_OPENPGP_KEYRING_ERROR -204


GNUTLS_E_X509_UNSUPPORTED_OID

#define GNUTLS_E_X509_UNSUPPORTED_OID -205


GNUTLS_E_RANDOM_FAILED

#define GNUTLS_E_RANDOM_FAILED -206


GNUTLS_E_BASE64_UNEXPECTED_HEADER_ERROR

#define GNUTLS_E_BASE64_UNEXPECTED_HEADER_ERROR -207


GNUTLS_E_OPENPGP_SUBKEY_ERROR

#define GNUTLS_E_OPENPGP_SUBKEY_ERROR -208


GNUTLS_E_CRYPTO_ALREADY_REGISTERED

#define GNUTLS_E_CRYPTO_ALREADY_REGISTERED -209


GNUTLS_E_HANDSHAKE_TOO_LARGE

#define GNUTLS_E_HANDSHAKE_TOO_LARGE -210


GNUTLS_E_UNIMPLEMENTED_FEATURE

#define GNUTLS_E_UNIMPLEMENTED_FEATURE -1250


GNUTLS_E_APPLICATION_ERROR_MAX

#define GNUTLS_E_APPLICATION_ERROR_MAX -65000


GNUTLS_E_APPLICATION_ERROR_MIN

#define GNUTLS_E_APPLICATION_ERROR_MIN -65500