]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
*** empty log message ***
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 28 Jul 2001 10:39:12 +0000 (10:39 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 28 Jul 2001 10:39:12 +0000 (10:39 +0000)
doc/API-template.html

index b5053273d27008eb0908b6725bbf2c7584a71358..270ea1dc1341d7065b2abc6455eb96b46b13eedf 100644 (file)
@@ -54,7 +54,7 @@ anything other fancy features.
 
 int main()
 {
-       const char* PORT = "5556";
+       const char* PORT = "443";
        const char* SERVER = "127.0.0.1";
        int err, ret;
        int sd, ii;
@@ -120,6 +120,11 @@ 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
          */