]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Removed gnutls_certificate_verify_peers.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 7 Feb 2011 19:04:00 +0000 (20:04 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 7 Feb 2011 19:04:00 +0000 (20:04 +0100)
NEWS
lib/gnutls_cert.c
lib/includes/gnutls/compat.h

diff --git a/NEWS b/NEWS
index 18589a0b36a7b36b1f8a7fe58dbde2a467b0a6cf..4c6b45a73ab7df7e911816c3da19e8ef1a8ad644 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -27,6 +27,7 @@ it can verify a certificate chain against a list of certificates.
 ** API and ABI modifications:
 gnutls_cipher_add_auth: ADDED
 gnutls_cipher_tag: ADDED
+gnutls_certificate_verify_peers: REMOVED
 gnutls_session_set_finished_function: REMOVED
 gnutls_ext_register: REMOVED
 gnutls_certificate_get_x509_crls: REMOVED
index da80735174cd42f8a5ed38e24d24fbea0d54d437..47f029c49eed96b987e62a2dd83c087a26c4e4c5 100644 (file)
@@ -616,39 +616,6 @@ gnutls_certificate_verify_peers2 (gnutls_session_t session,
     }
 }
 
-/**
- * gnutls_certificate_verify_peers:
- * @session: is a gnutls session
- *
- * This function will try to verify the peer's certificate and return
- * its status (trusted, invalid etc.).  However you must also check
- * the peer's name in order to check if the verified certificate
- * belongs to the actual peer.
- *
- * This function uses gnutls_x509_crt_list_verify().
- *
- * Returns: one or more of the #gnutls_certificate_status_t
- * enumerated elements bitwise or'd, or a negative value on error.
- *
- * Deprecated: Use gnutls_certificate_verify_peers2() instead.
- **/
-int
-gnutls_certificate_verify_peers (gnutls_session_t session)
-{
-  unsigned int status;
-  int ret;
-
-  ret = gnutls_certificate_verify_peers2 (session, &status);
-
-  if (ret < 0)
-    {
-      gnutls_assert ();
-      return ret;
-    }
-
-  return status;
-}
-
 /**
  * gnutls_certificate_expiration_time_peers:
  * @session: is a gnutls session
index 8ea52e09875d19451dadaf2793276250acafcc0d..46673cb2d8a8508312a423391469e19316f10094 100644 (file)
@@ -273,8 +273,4 @@ gnutls_sign_callback_get (gnutls_session_t session, void **userdata)
                              unsigned int flags)
                              _GNUTLS_GCC_ATTR_DEPRECATED;
 
-  /* this is obsolete (?). */
-  int gnutls_certificate_verify_peers (gnutls_session_t session)
-  _GNUTLS_GCC_ATTR_DEPRECATED;
-
 #endif /* _GNUTLS_COMPAT_H */