summaryrefslogtreecommitdiff
path: root/doc/examples/ex-client-x509.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/ex-client-x509.c')
-rw-r--r--doc/examples/ex-client-x509.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/ex-client-x509.c b/doc/examples/ex-client-x509.c
index 01762e82ea..8ee429a1b2 100644
--- a/doc/examples/ex-client-x509.c
+++ b/doc/examples/ex-client-x509.c
@@ -33,10 +33,11 @@ int main(void)
gnutls_certificate_credentials_t xcred;
if (gnutls_check_version("3.1.4") == NULL) {
- fprintf(stderr, "GnuTLS 3.1.4 is required for this example\n");
+ fprintf(stderr, "GnuTLS 3.1.4 or later is required for this example\n");
exit(1);
}
+ /* for backwards compatibility with gnutls < 3.3.0 */
gnutls_global_init();
/* X509 stuff */