* Returns: a string that contains the name of the specified
* curve or %NULL.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
const char *
gnutls_ecc_curve_get_name (gnutls_ecc_curve_t curve)
*
* Returns: a the size or (0).
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int gnutls_ecc_curve_get_size (gnutls_ecc_curve_t curve)
{
*
* Returns: Zero or a negative error code on error.
*
- * Since: 3.0.0
+ * Since: 3.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: 3.0.0
+ * Since: 3.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: 3.0.0
+ * Since: 3.0
**/
void
gnutls_cipher_set_iv (gnutls_cipher_hd_t handle, void *iv, size_t ivlen)
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, or an
* error code.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_key_generate (gnutls_datum_t * key, unsigned int key_size)
*
* Returns: string corresponding to #gnutls_alert_description_t value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
const char *
gnutls_alert_get_strname (gnutls_alert_description_t alert)
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_certificate_get_issuer (gnutls_certificate_credentials_t sc,
* number of certificates should be set to zero. The value (-1)
* indicates error and the handshake will be terminated.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
void gnutls_certificate_set_retrieve_function
(gnutls_certificate_credentials_t cred,
* number of certificates should be set to zero. The value (-1)
* indicates error and the handshake will be terminated.
*
- * Since: 3.0.0
+ * Since: 3.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
+ * Since: 3.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
+ * Since: 3.0
**/
void gnutls_dtls_set_mtu (gnutls_session_t session, unsigned int mtu)
{
*
* Returns: the maximum allowed transfer unit.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
unsigned int gnutls_dtls_get_data_mtu (gnutls_session_t session)
{
*
* Returns: the set maximum transfer unit.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
unsigned int gnutls_dtls_get_mtu (gnutls_session_t session)
{
*
* Returns: the remaining time in milliseconds.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
unsigned int gnutls_dtls_get_timeout (gnutls_session_t session)
{
*
* Returns: the number of bytes sent, or a negative error code.
*
- * Since: 3.0.0
+ * Since: 3.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
+ * Since: 3.0
**/
int gnutls_dtls_cookie_verify(gnutls_datum_t* key,
void* client_data, size_t client_data_size,
* the cookie authentication with the client, with the newly
* established session.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
void gnutls_dtls_prestate_set(gnutls_session_t session, gnutls_dtls_prestate_st* prestate)
{
*
* Returns: The number of discarded packets.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
unsigned int gnutls_record_get_discarded (gnutls_session_t session)
{
* @gnutls_audit_log_func is of the form,
* void (*gnutls_audit_log_func)( gnutls_session_t, int level, const char*);
*
- * Since: 3.0.0
+ * Since: 3.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
+ * Since: 3.0
**/
int gnutls_pcert_import_x509 (gnutls_pcert_st* pcert,
gnutls_x509_crt_t crt, unsigned int flags)
*
* Returns: the number of certificates read or a negative error value.
*
- * Since: 3.0.0
+ * Since: 3.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
+ * Since: 3.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
+ * Since: 3.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
+ * Since: 3.0
**/
int gnutls_pcert_import_openpgp_raw (gnutls_pcert_st *pcert,
const gnutls_datum_t* cert,
*
* This function will deinitialize a pcert structure.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
void
gnutls_pcert_deinit (gnutls_pcert_st *pcert)
* structure.
*
* Returns: the number of curves, or an error code.
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_priority_ecc_curve_list (gnutls_priority_t pcache, const unsigned int** list)
* structure.
*
* Returns: the number of methods, or an error code.
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_priority_compression_list (gnutls_priority_t pcache, const unsigned int** list)
* structure.
*
* Returns: the number of protocols, or an error code.
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_priority_protocol_list (gnutls_priority_t pcache, const unsigned int** list)
* structure.
*
* Returns: the number of algorithms, or an error code.
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_priority_sign_list (gnutls_priority_t pcache, const unsigned int** list)
* structure.
*
* Returns: the number of certificate types, or an error code.
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_priority_certificate_type_list (gnutls_priority_t pcache, const unsigned int** list)
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_privkey_import_ext (gnutls_privkey_t pkey,
* Returns: In case of failure a negative error code will be
* returned, and 0 on success.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_pubkey_get_openpgp_key_id (gnutls_pubkey_t key, unsigned int flags,
*
* Returns: %GNUTLS_E_SUCCESS on success, otherwise a negative error code.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_pubkey_get_pk_ecc_raw (gnutls_pubkey_t key, gnutls_ecc_curve_t *curve,
*
* Returns: %GNUTLS_E_SUCCESS on success, otherwise a negative error code.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int gnutls_pubkey_get_pk_ecc_x962 (gnutls_pubkey_t key, gnutls_datum_t* parameters,
gnutls_datum_t * ecpoint)
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_pubkey_import_ecc_raw (gnutls_pubkey_t key,
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_pubkey_import_ecc_x962 (gnutls_pubkey_t key,
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value (%GNUTLS_E_PK_SIG_VERIFY_FAILED in verification failure).
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_pubkey_verify_data2 (gnutls_pubkey_t pubkey,
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_pubkey_encrypt_data (gnutls_pubkey_t key, unsigned int flags,
* error code is returned in case of an error. The number of bytes
* received might be less than @data_size.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
ssize_t
gnutls_record_recv_seq (gnutls_session_t session, void *data, size_t data_size,
* Returns: the currently used curve, a #gnutls_ecc_curve_t
* type.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
gnutls_ecc_curve_t gnutls_ecc_curve_get(gnutls_session_t session)
{
*
* Returns: %GNUTLS_E_SUCCESS (0) on success, or a negative error code.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_certificate_set_key (gnutls_certificate_credentials_t res,
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int gnutls_pkcs11_reinit (void)
{
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_pkcs11_privkey_generate (const char* url,
* @gnutls_pull_timeout_func is of the form,
* ssize_t (*gnutls_pull_timeout_func)(gnutls_transport_ptr_t, unsigned int ms);
*
- * Since: 3.0.0
+ * Since: 3.0
**/
void
gnutls_transport_set_pull_timeout_function (gnutls_session_t session,
* is returned. On success, %GNUTLS_E_SUCCESS (0) is returned,
* or a negative error value on other errors.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_verify_stored_pubkey(const char* db_name,
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_store_pubkey(const char* db_name,
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_store_commitment(const char* db_name,
*
* Returns: A null terminated string or NULL otherwise.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
const char*
gnutls_x509_dn_oid_name (const char *oid, unsigned int flags)
*
* Returns: Returns 0 on success, or an error code.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_x509_crl_get_authority_key_gn_serial (gnutls_x509_crl_t crl,
*
* Returns: the number of certificates read or a negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_x509_crl_list_import2 (gnutls_x509_crl_t ** crls,
*
* Returns: the number of certificates read or a negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_x509_crl_list_import (gnutls_x509_crl_t * crls,
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.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
+ * Since: 3.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
+ * Since: 3.0
**/
int
gnutls_x509_trust_list_init(gnutls_x509_trust_list_t * list,
*
* This function will deinitialize a trust list.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
void
gnutls_x509_trust_list_deinit(gnutls_x509_trust_list_t list,
*
* Returns: The number of added elements is returned.
*
- * Since: 3.0.0
+ * Since: 3.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
+ * Since: 3.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
+ * Since: 3.0
**/
int
gnutls_x509_trust_list_add_crls(gnutls_x509_trust_list_t list,
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int gnutls_x509_trust_list_get_issuer(gnutls_x509_trust_list_t list,
gnutls_x509_crt_t cert,
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_x509_trust_list_verify_crt(gnutls_x509_trust_list_t list,
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_x509_trust_list_verify_named_crt(gnutls_x509_trust_list_t list,
*
* Returns: Returns 0 on success, or an error code.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_x509_crt_get_authority_key_gn_serial (gnutls_x509_crt_t cert, unsigned int seq, void *alt,
*
* Returns: the number of certificates read or a negative error value.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_x509_crt_list_import2 (gnutls_x509_crt_t ** certs,
* not match (e.g., when using %GNUTLS_IA_OCSP_URI), otherwise a
* negative error code.
*
- * Since: 3.0.0
+ * Since: 3.0
**/
int
gnutls_x509_crt_get_authority_info_access (gnutls_x509_crt_t crt,