From: Nikos Mavrogiannopoulos Date: Sat, 28 Jul 2001 10:39:12 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: gnutls_0_1_9~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ccd1ffe7ffed9e6fe251e89da618c7903bda71b;p=thirdparty%2Fgnutls.git *** empty log message *** --- diff --git a/doc/API-template.html b/doc/API-template.html index b5053273d2..270ea1dc13 100644 --- a/doc/API-template.html +++ b/doc/API-template.html @@ -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 */