[gnutls-help] How do I use the GnuTLS Transport Layer Security Secure Communications Library on Linux and Windows desktops?

Stephane Bortzmeyer bortzmeyer at nic.fr
Sat Oct 16 10:20:29 CEST 2021


On Sat, Oct 16, 2021 at 07:47:10AM +0000,
 Turritopsis Dohrnii Teo En Ming <teo.en.ming at protonmail.com> wrote 
 a message of 191 lines which said:

> Subject: How do I use the GnuTLS Transport Layer Security Secure
> Communications Library on Linux and Windows desktops?

I assume you already installed it ("Linux", as you know, is not an
operating system, just a kernel, so the installation of the package
will depend on your specific operating system; on Debian, 'apt install
libgnutls28-dev' will do the job).

To now use the library, the documentation is here:
https://gnutls.org/manual/html_node/How-to-use-GnuTLS-in-applications.html#How-to-use-GnuTLS-in-applications

I attach a very simple C program to connect to a TLS server, to help
you start. I compiled it on Debian with 'cc -I/usr/include/p11-kit-1
-Wall -Wextra -o test test.c -lgnutls'.

[I cannot help for MS Windows, I don't know it enough.]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 4392 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnutls-help/attachments/20211016/da424dc5/attachment.c>


More information about the Gnutls-help mailing list