[gnutls-dev] Typo in OpenPGP example server code
Adam Langley
agl at imperialviolet.org
Mon Sep 18 08:13:24 CEST 2006
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 agl at imperialviolet.org
http://www.imperialviolet.org 650-283-9641
More information about the Gnutls-dev
mailing list