[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gnutls] Re: gnutls with pgp
From: |
Simon Josefsson |
Subject: |
[Help-gnutls] Re: gnutls with pgp |
Date: |
Tue, 06 Feb 2007 07:44:36 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) |
address@hidden writes:
> Ok,
> but if I try to compiler the example on manual "Echo Server with anonymous
> authentication" with command gcc, it return something like:
> "server.c:(.text+0x2e): undefined reference to `gnutls_set_default_priority'"
> this function is in the package <gnutls/gnutls.h>.
> In this example I write #include <gnutls/gnutls.h> . There is something to
> configure before gnutls work correctly?
Did you forget to link the program with the gnutls library? You'll
need to compile it using something like this:
cc -o foo foo.c -I/path/to/gnutls/include -L/path/to/gnutls/lib -lgnutls
Alternatively, if you built GnuTLS yourself, invoke 'make' in the
doc/examples/ directory. The examples are built when you build
GnuTLS.
/Simon
> Simone.
>
> Scrive Simon Josefsson <address@hidden>:
>
>> address@hidden writes:
>>
>> > Hi all,
>> > I should implement autenthication inside of web application with gnutls.
>> > I should use OpenPGP inside TLS connection (I do not use certificate
>> X.509).
>> > It is possible in GnuTLS, but can someone indicate me any reference guide
>> (with
>> > example server-client)?
>>
>> Hi! Yes, that should be possible. There are example code for a
>> server in the GnuTLS manual:
>>
>>
> http://www.gnu.org/software/gnutls/manual/html_node/Echo-Server-with-OpenPGP-authentication.html
>>
>> There are no explicit examples for OpenPGP clients, but modifying the
>> standard X.509 example:
>>
>>
> http://www.gnu.org/software/gnutls/manual/html_node/Simple-client-example-with-X_002e509-certificate-support.html
>>
>> using the hints from:
>>
>>
> http://www.gnu.org/software/gnutls/manual/html_node/Certificate-authentication.html
>>
>> should not be impossible.
>>
>> Note that this part of GnuTLS is not widely used, so it isn't unlikely
>> that you run into problems. Let us know how it works for you!
>>
>> /Simon
>>
>>
>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
- [Help-gnutls] Re: gnutls4win, Simon Josefsson, 2007/02/01
- [Help-gnutls] Re: gnutls4win, Simon Josefsson, 2007/02/02
- [Help-gnutls] gnutls with pgp, dellanna, 2007/02/02
- [Help-gnutls] Re: gnutls with pgp, Simon Josefsson, 2007/02/02
- [Help-gnutls] Re: gnutls with pgp, dellanna, 2007/02/02
- [Help-gnutls] Re: gnutls with pgp,
Simon Josefsson <=
- [Help-gnutls] Re: gnutls with pgp, dellanna, 2007/02/07
- [Help-gnutls] Re: gnutls with pgp, Simon Josefsson, 2007/02/07
- [Help-gnutls] Re: gnutls with pgp, dellanna, 2007/02/07
- [Help-gnutls] Re: gnutls with pgp, Simon Josefsson, 2007/02/07
- [Help-gnutls] Re: gnutls with pgp, dellanna, 2007/02/07
- [Help-gnutls] Re: gnutls with pgp, Simon Josefsson, 2007/02/07
- [Help-gnutls] Re: gnutls with pgp, dellanna, 2007/02/07
- [Help-gnutls] Re: gnutls with pgp, Simon Josefsson, 2007/02/07
- [Help-gnutls] manual GnuTLS, dellanna, 2007/02/08
- [Help-gnutls] Re: manual GnuTLS, Simon Josefsson, 2007/02/08