summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-08-18 09:00:44 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-08-18 09:02:01 +0200
commit699dc93bff116ea49464e6941365ba0628bd9575 (patch)
tree63d94a78d4b305bc4fff4fab167ca6d57ac29856
parent0b1dd6ea48f1acbb89955a48c46a25bab8e78d7e (diff)
downloadgnutls-699dc93bff116ea49464e6941365ba0628bd9575.tar.gz
doc fix
-rw-r--r--doc/cha-cert-auth.texi2
-rw-r--r--lib/gnutls_cert.c5
2 files changed, 2 insertions, 5 deletions
diff --git a/doc/cha-cert-auth.texi b/doc/cha-cert-auth.texi
index 8aad126c5d..144de2c681 100644
--- a/doc/cha-cert-auth.texi
+++ b/doc/cha-cert-auth.texi
@@ -299,7 +299,7 @@ Although the verification of a certificate path indicates that the
certificate is signed by trusted authority, does not reveal anything
about the peer's identity. It is required to verify if the
certificate's owner is the one you expect. For more information
-consult @xcite{RFC2818} and section @ref{ex:verify} for an example.
+consult @ref{gnutls_x509_crt_check_hostname}, section @ref{ex:verify} for an example, and @xcite{RFC2818}.
@node Verifying a certificate using trust on first use authentication
@subsection Verifying a certificate using trust on first use authentication
diff --git a/lib/gnutls_cert.c b/lib/gnutls_cert.c
index 61585af847..605b7d8a2a 100644
--- a/lib/gnutls_cert.c
+++ b/lib/gnutls_cert.c
@@ -646,10 +646,7 @@ _gnutls_openpgp_crt_verify_peers (gnutls_session_t session,
* gnutls_certificate_set_verify_limits().
*
* Note that 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() with the CAs in
- * the credentials as trusted CAs.
+ * the verified certificate belongs to the actual peer, see gnutls_x509_crt_check_hostname().
*
* Returns: a negative error code on error and %GNUTLS_E_SUCCESS (0) on success.
**/