summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-08-05 11:38:42 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-08-05 11:38:42 +0000
commit12c5c20a6e6e6f4a4ac741a9d44d57b57d2ea020 (patch)
tree35b1db3d6e8edac08c098bc94987b30326977201
parent6431974e0b8731ac2c4564446bfd265da6b696f6 (diff)
downloadgnutls-12c5c20a6e6e6f4a4ac741a9d44d57b57d2ea020.tar.gz
gnutls_x509_set_cn() was removed
-rw-r--r--doc/tex/ex1.tex2
-rw-r--r--doc/tex/ex2.tex5
-rw-r--r--doc/tex/ex3.tex6
3 files changed, 0 insertions, 13 deletions
diff --git a/doc/tex/ex1.tex b/doc/tex/ex1.tex
index 375fa499a7..06514ba407 100644
--- a/doc/tex/ex1.tex
+++ b/doc/tex/ex1.tex
@@ -66,8 +66,6 @@ int main()
gnutls_set_cred(state, GNUTLS_X509PKI, xcred);
- gnutls_x509_set_cn(state, "www.host.com");
-
if (t > 0) { /* if this is not the first time we connect */
gnutls_set_current_session(state, session, session_size);
diff --git a/doc/tex/ex2.tex b/doc/tex/ex2.tex
index 2558ff8931..8e72ab7304 100644
--- a/doc/tex/ex2.tex
+++ b/doc/tex/ex2.tex
@@ -82,11 +82,6 @@ int main()
*/
gnutls_set_cred(state, GNUTLS_X509PKI, xcred);
- /* This should be the CN in the server's
- * certificate.
- */
- gnutls_x509_set_cn(state, "www.host.com");
-
/* Perform the TLS handshake
*/
diff --git a/doc/tex/ex3.tex b/doc/tex/ex3.tex
index 75c3ef9471..d6b451ddad 100644
--- a/doc/tex/ex3.tex
+++ b/doc/tex/ex3.tex
@@ -33,12 +33,6 @@ int print_info(GNUTLS_STATE state)
case GNUTLS_CERT_TRUSTED:
printf("- Peer's X509 Certificate was verified\n");
break;
- case GNUTLS_CERT_WRONG_CN:
- /* the server's name
- * is set by using the gnutls_set_x509_cn() function.
- */
- printf("- Peer's X509 Certificate was verified but it does not match the server's name\n");
- break;
case GNUTLS_CERT_INVALID:
default:
printf("- Peer's X509 Certificate was invalid\n");