APIMANS += gnutls_hash_fast.3
APIMANS += gnutls_key_generate.3
APIMANS += gnutls_alert_get_name.3
+APIMANS += gnutls_alert_get_strname.3
APIMANS += gnutls_alert_send.3
APIMANS += gnutls_error_to_alert.3
APIMANS += gnutls_alert_send_appropriate.3
APIMANS += gnutls_malloc.3
APIMANS += gnutls_free.3
APIMANS += gnutls_pcert_import_x509.3
+APIMANS += gnutls_pcert_list_import_x509_raw.3
APIMANS += gnutls_pcert_import_x509_raw.3
APIMANS += gnutls_pcert_import_openpgp.3
APIMANS += gnutls_pcert_import_openpgp_raw.3
<index role="2.12.0" id="api-index-2-12-0">
<title>Index of new symbols in 2.12.0</title>
</index>
+ <index role="3.0.0" id="api-index-3-0-0">
+ <title>Index of new symbols in 3.0.0</title>
+ </index>
</book>
*
* Returns: a string that contains the name of the specified
* curve or %NULL.
+ *
+ * Since: 3.0.0
**/
const char *
gnutls_ecc_curve_get_name (gnutls_ecc_curve_t curve)
* Returns the size in bytes of the curve.
*
* Returns: a the size or (0).
+ *
+ * Since: 3.0.0
**/
int gnutls_ecc_curve_get_size (gnutls_ecc_curve_t curve)
{
/*
- * Copyright (C) 2000, 2004, 2005, 2008, 2010 Free Software Foundation,
+ * Copyright (C) 2000, 2004, 2005, 2008, 2010, 2011 Free Software Foundation,
* Inc.
*
* Author: Nikos Mavrogiannopoulos
*
* Returns: Zero or a negative error code on error.
*
- * Since: 2.99.0
+ * Since: 3.0.0
**/
int
gnutls_cipher_tag (gnutls_cipher_hd_t handle, void *tag, size_t tag_size)
*
* Returns: Zero or a negative error code on error.
*
- * Since: 2.99.0
+ * Since: 3.0.0
**/
int
gnutls_cipher_add_auth (gnutls_cipher_hd_t handle, const void *text, size_t text_size)
* This function will set the IV to be used for the next
* encryption block.
*
- * Since: 2.99.0
+ * Since: 3.0.0
**/
void
gnutls_cipher_set_iv (gnutls_cipher_hd_t handle, void *iv, size_t ivlen)
/*
- * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2010 Free
+ * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2010, 2011 Free
* Software Foundation, Inc.
*
* Author: Nikos Mavrogiannopoulos
* This function will return a string of the name of the alert.
*
* Returns: string corresponding to #gnutls_alert_description_t value.
+ *
+ * Since: 3.0.0
**/
const char *
gnutls_alert_get_strname (gnutls_alert_description_t alert)
* and return 0 on success. If no certificate was selected then the
* number of certificates should be set to zero. The value (-1)
* indicates error and the handshake will be terminated.
+ *
+ * Since: 3.0.0
**/
void gnutls_certificate_set_retrieve_function2
(gnutls_certificate_credentials_t cred,
* If the retransmission timeout is zero then the handshake will operate
* in a non-blocking way, i.e., return %GNUTLS_E_AGAIN.
*
+ * Since: 3.0.0
**/
void gnutls_dtls_set_timeouts (gnutls_session_t session, unsigned int retrans_timeout,
unsigned int total_timeout)
* This function will set the maximum transfer unit of the interface
* that DTLS packets are expected to leave from.
*
+ * Since: 3.0.0
**/
void gnutls_dtls_set_mtu (gnutls_session_t session, unsigned int mtu)
{
*
* Returns: the maximum allowed transfer unit.
*
+ * Since: 3.0.0
**/
unsigned int gnutls_dtls_get_data_mtu (gnutls_session_t session)
{
*
* Returns: the set maximum transfer unit.
*
+ * Since: 3.0.0
**/
unsigned int gnutls_dtls_get_mtu (gnutls_session_t session)
{
*
* Returns: the number of bytes sent, or a negative error code.
*
+ * Since: 3.0.0
**/
int gnutls_dtls_cookie_send(gnutls_datum_t* key, void* client_data, size_t client_data_size,
gnutls_dtls_prestate_st* prestate,
*
* Returns: %GNUTLS_E_SUCCESS (0) on success, or a negative error code.
*
+ * Since: 3.0.0
**/
int gnutls_dtls_cookie_verify(gnutls_datum_t* key,
void* client_data, size_t client_data_size,
*
* Returns: %GNUTLS_E_SUCCESS (0) on success, or a negative error code.
*
+ * Since: 3.0.0
**/
void gnutls_dtls_prestate_set(gnutls_session_t session, gnutls_dtls_prestate_st* prestate)
{
/*
- * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010
+ * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011
* Free Software Foundation, Inc.
*
* Author: Nikos Mavrogiannopoulos
*
* gnutls_audit_log_func is of the form,
* void (*gnutls_audit_log_func)( gnutls_session_t, int level, const char*);
+ *
+ * Since: 3.0.0
**/
void
gnutls_global_set_audit_log_function (gnutls_audit_log_func log_func)
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
+ *
+ * Since: 3.0.0
**/
int gnutls_pcert_import_x509 (gnutls_pcert_st* pcert,
gnutls_x509_crt_t crt, unsigned int flags)
* CERTIFICATE", or "CERTIFICATE".
*
* Returns: the number of certificates read or a negative error value.
+ *
+ * Since: 3.0.0
**/
int
gnutls_pcert_list_import_x509_raw (gnutls_pcert_st * pcerts,
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
+ *
+ * Since: 3.0.0
**/
int gnutls_pcert_import_x509_raw (gnutls_pcert_st *pcert,
const gnutls_datum_t* cert,
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
+ *
+ * Since: 3.0.0
**/
int gnutls_pcert_import_openpgp (gnutls_pcert_st* pcert,
gnutls_openpgp_crt_t crt, unsigned int flags)
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
+ *
+ * Since: 3.0.0
**/
int gnutls_pcert_import_openpgp_raw (gnutls_pcert_st *pcert,
const gnutls_datum_t* cert,
* @pcert: The structure to be deinitialized
*
* This function will deinitialize a pcert structure.
+ *
+ * Since: 3.0.0
**/
void
gnutls_pcert_deinit (gnutls_pcert_st *pcert)
*
* Returns: In case of failure a negative error code will be
* returned, and 0 on success.
+ *
+ * Since: 3.0.0
**/
int
gnutls_pubkey_get_openpgp_key_id (gnutls_pubkey_t key, unsigned int flags,
* gnutls_malloc() and will be stored in the appropriate datum.
*
* Returns: %GNUTLS_E_SUCCESS on success, otherwise a negative error code.
+ *
+ * Since: 3.0.0
**/
int
gnutls_pubkey_get_pk_ecc_raw (gnutls_pubkey_t key, gnutls_ecc_curve_t *curve,
* %GNUTLS_E_PK_SIG_VERIFY_FAILED is returned, and a positive code
* on success.
*
- * Since: 2.12.0
+ * Since: 3.0.0
**/
int
gnutls_pubkey_verify_data2 (gnutls_pubkey_t pubkey,
* Returns: the number of bytes received and zero on EOF. A negative
* error code is returned in case of an error. The number of bytes
* received might be less than @data_size.
+ *
+ * Since: 3.0.0
**/
ssize_t
gnutls_record_recv_seq (gnutls_session_t session, void *data, size_t data_size,
/*
- * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
* Free Software Foundation, Inc.
*
* Author: Nikos Mavrogiannopoulos
*
* Returns: the currently used curve, a #gnutls_ecc_curve_t
* type.
+ *
+ * Since: 3.0.0
**/
gnutls_ecc_curve_t gnutls_ecc_curve_get(gnutls_session_t session)
{
* gnutls_pull_timeout_func is of the form,
* ssize_t (*gnutls_pull_timeout_func)(gnutls_transport_ptr_t, void*data, size_t size, unsigned int ms);
*
+ * Since: 3.0.0
**/
void
gnutls_transport_set_pull_timeout_function (gnutls_session_t session,
/*
- * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2010 Free Software
+ * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011 Free Software
* Foundation, Inc.
*
* Author: Nikos Mavrogiannopoulos
* CRL".
*
* Returns: the number of certificates read or a negative error value.
+ *
+ * Since: 3.0.0
**/
int
gnutls_x509_crl_list_import2 (gnutls_x509_crl_t ** crls,
* If the Certificate is PEM encoded it should have a header of "X509 CRL".
*
* Returns: the number of certificates read or a negative error value.
+ *
+ * Since: 3.0.0
**/
int
gnutls_x509_crl_list_import (gnutls_x509_crl_t * crls,
/*
- * Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010 Free Software
+ * Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011 Free Software
* Foundation, Inc.
*
* Author: Nikos Mavrogiannopoulos
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
+ *
+ * Since: 3.0.0
**/
int
gnutls_x509_privkey_import_ecc_raw (gnutls_x509_privkey_t key,
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
+ *
+ * Since: 3.0.0
**/
int gnutls_x509_privkey_export_ecc_raw (gnutls_x509_privkey_t key,
gnutls_ecc_curve_t *curve,
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
+ *
+ * Since: 3.0.0
**/
int
gnutls_x509_trust_list_init (gnutls_x509_trust_list_t * list, unsigned int size)
* @all: if non-(0) it will deinitialize all the certificates and CRLs contained in the structure.
*
* This function will deinitialize a trust list.
+ *
+ * Since: 3.0.0
**/
void
gnutls_x509_trust_list_deinit (gnutls_x509_trust_list_t list, unsigned int all)
*
* Returns: The number of added elements is returned.
*
+ * Since: 3.0.0
**/
int
gnutls_x509_trust_list_add_cas (gnutls_x509_trust_list_t list,
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
+ * Since: 3.0.0
**/
int
gnutls_x509_trust_list_add_named_crt (gnutls_x509_trust_list_t list,
*
* Returns: The number of added elements is returned.
*
+ * Since: 3.0.0
**/
-
int
gnutls_x509_trust_list_add_crls (gnutls_x509_trust_list_t list,
const gnutls_x509_crl_t * crl_list, int crl_size, unsigned int flags,
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
+ *
+ * Since: 3.0.0
**/
int gnutls_x509_trust_list_get_issuer(gnutls_x509_trust_list_t list,
gnutls_x509_crt_t cert, gnutls_x509_crt_t* issuer, unsigned int flags)
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
+ *
+ * Since: 3.0.0
**/
int
gnutls_x509_trust_list_verify_crt (
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
+ *
+ * Since: 3.0.0
**/
int
gnutls_x509_trust_list_verify_named_crt (
/*
- * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
+ * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
* Software Foundation, Inc.
* Author: Nikos Mavrogiannopoulos, Simon Josefsson, Howard Chu
*
* CERTIFICATE", or "CERTIFICATE".
*
* Returns: the number of certificates read or a negative error value.
+ *
+ * Since: 3.0.0
**/
int
gnutls_x509_crt_list_import2 (gnutls_x509_crt_t ** certs,