diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-01-17 20:32:33 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-01-18 19:46:23 +0100 |
commit | 37e86de195d6c24bb349e0213dd528c5ceb89688 (patch) | |
tree | f695f5acf75a7d1b207be392f8f5ad5f182c4285 /doc/examples/ex-client-x509.c | |
parent | c3bc5634e570a58ad7e3cb6fdadcd3a67bf090ea (diff) | |
download | gnutls-37e86de195d6c24bb349e0213dd528c5ceb89688.tar.gz |
Added gnutls_certificate_set_x509_key_file in a comment.
Diffstat (limited to 'doc/examples/ex-client-x509.c')
-rw-r--r-- | doc/examples/ex-client-x509.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/examples/ex-client-x509.c b/doc/examples/ex-client-x509.c index c82df6523b..0ea151dd72 100644 --- a/doc/examples/ex-client-x509.c +++ b/doc/examples/ex-client-x509.c @@ -40,6 +40,13 @@ int main (void) */ gnutls_certificate_set_x509_trust_file (xcred, CAFILE, GNUTLS_X509_FMT_PEM); gnutls_certificate_set_verify_function (xcred, _verify_certificate_callback); + + /* If client holds a certificate it can be set using the following: + * + gnutls_certificate_set_x509_key_file (xcred, + "cert.pem", "key.pem", + GNUTLS_X509_FMT_PEM); + */ /* Initialize TLS session */ |