[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnutls-dev] Typo in OpenPGP example server code
From: |
Adam Langley |
Subject: |
[gnutls-dev] Typo in OpenPGP example server code |
Date: |
Sun, 17 Sep 2006 23:22:21 -0700 |
The OpenPGP example in the manual[1] seem to have a typo:
@@ -46,9 +45,6 @@
return 0;
}
-/* These are global */
-gnutls_certificate_credentials_t x509_cred;
-
gnutls_session_t
initialize_tls_session (void)
{
@@ -61,7 +57,7 @@
*/
gnutls_set_default_priority (session);
- gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, x509_cred);
+ gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, cred);
/* request client certificate if any.
*/
[1]
http://www.gnu.org/software/gnutls/manual/gnutls.html.gz#Echo-Server-with-OpenPGP-authentication
Cheers
--
Adam Langley address@hidden
http://www.imperialviolet.org 650-283-9641