From: Nikos Mavrogiannopoulos Date: Sat, 21 Feb 2015 06:13:37 +0000 (+0100) Subject: removed gnutls_x509_crt_get_verify_algorithm() X-Git-Tag: gnutls_3_4_0~302 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d913ab5fedb1631603881ea9aa2a42c8f53262b;p=thirdparty%2Fgnutls.git removed gnutls_x509_crt_get_verify_algorithm() --- diff --git a/lib/includes/gnutls/compat.h b/lib/includes/gnutls/compat.h index 6119f14ac6..13c9bb8918 100644 --- a/lib/includes/gnutls/compat.h +++ b/lib/includes/gnutls/compat.h @@ -183,14 +183,6 @@ int gnutls_x509_privkey_sign_data(gnutls_x509_privkey_t key, size_t * signature_size) _GNUTLS_GCC_ATTR_DEPRECATED; - /* gnutls_pubkey_get_verify_algorithm() */ -int gnutls_x509_crt_get_verify_algorithm(gnutls_x509_crt_t crt, - const gnutls_datum_t * - signature, - gnutls_digest_algorithm_t - * hash) - _GNUTLS_GCC_ATTR_DEPRECATED; - /* gnutls_pubkey_get_preferred_hash_algorithm() */ int gnutls_x509_crt_get_preferred_hash_algorithm(gnutls_x509_crt_t crt, diff --git a/lib/libgnutls.map b/lib/libgnutls.map index 9d76e20771..127e267060 100644 --- a/lib/libgnutls.map +++ b/lib/libgnutls.map @@ -498,7 +498,6 @@ GNUTLS_3_4 gnutls_x509_crq_set_key_purpose_oid; gnutls_x509_crq_set_key_usage; gnutls_x509_crq_set_subject_alt_name; - gnutls_x509_crt_get_verify_algorithm; gnutls_x509_crt_set_crq_extensions; gnutls_session_ticket_key_generate; gnutls_session_ticket_enable_client; diff --git a/lib/x509/x509.c b/lib/x509/x509.c index 24532dd8ff..e178c39b5b 100644 --- a/lib/x509/x509.c +++ b/lib/x509/x509.c @@ -2786,54 +2786,6 @@ gnutls_x509_crt_check_revocation(gnutls_x509_crt_t cert, crl_list_length, NULL); } -/** - * gnutls_x509_crt_get_verify_algorithm: - * @crt: Holds the certificate - * @signature: contains the signature - * @hash: The result of the call with the hash algorithm used for signature - * - * This function will read the certifcate and the signed data to - * determine the hash algorithm used to generate the signature. - * - * Deprecated: Use gnutls_pubkey_get_verify_algorithm() instead. - * - * Returns: the 0 if the hash algorithm is found. A negative error code is - * returned on error. - * - * Since: 2.8.0 - **/ -int -gnutls_x509_crt_get_verify_algorithm(gnutls_x509_crt_t crt, - const gnutls_datum_t * signature, - gnutls_digest_algorithm_t * hash) -{ - gnutls_pk_params_st issuer_params; - int ret; - - if (crt == NULL) { - gnutls_assert(); - return GNUTLS_E_INVALID_REQUEST; - } - - ret = _gnutls_x509_crt_get_mpis(crt, &issuer_params); - if (ret < 0) { - gnutls_assert(); - return ret; - } - - ret = _gnutls_x509_verify_algorithm(hash, - signature, - gnutls_x509_crt_get_pk_algorithm - (crt, NULL), &issuer_params); - - /* release allocated mpis */ - gnutls_pk_params_release(&issuer_params); - - return ret; -} - - - /** * gnutls_x509_crt_get_preferred_hash_algorithm: * @crt: Holds the certificate