[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnutls-dev] Re: Typo in OpenPGP example server code
From: |
Simon Josefsson |
Subject: |
[gnutls-dev] Re: Typo in OpenPGP example server code |
Date: |
Mon, 18 Sep 2006 10:58:05 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
"Adam Langley" <address@hidden> 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