[gnutls-dev] Re: Typo in OpenPGP example server code
Simon Josefsson
jas at extundo.com
Mon Sep 18 10:58:05 CEST 2006
"Adam Langley" <agl at imperialviolet.org> writes:
> 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
Thanks, I have installed this in CVS. Btw, if you wish to send more
patches (always welcome), you'll have to assign the copyright to the
FSF. I can send you the form privately, if you are interested.
/Simon
More information about the Gnutls-dev
mailing list