Questions tagged [gnutls]

GnuTLS is a secure communications library implementing the SSL, TLS and DTLS protocols and technologies around them. It provides a simple C language application programming interface (API) to access the secure communications protocols as well as APIs to parse and write X.509, PKCS #12, OpenPGP and other required structures.

GnuTLS is a secure communications library implementing the SSL, TLS and DTLS protocols and technologies around them. It provides a simple C language application programming interface (API) to access the secure communications protocols as well as APIs to parse and write X.509, PKCS #12, OpenPGP and other required structures. It is aimed to be portable and efficient with focus on security and interoperability.

151 questions
0
votes
1 answer

How do I compile PHP with libcurl-gnutls?

I have both the OpenSSL and GnuTLS versions of libcurl installed: root@php-shared:/# dpkg -l | grep libcurl ii libcurl3:amd64 7.38.0-4+deb8u2 amd64 easy-to-use client-side URL transfer library (OpenSSL…
0
votes
1 answer

undefined reference to `tcp_connect`

Tried to compile gnutls examples. x509 client showed error on compilation. gcc ex-client-x509.c -o ex-client-x509 -lgnutls Error : anupam_on@HP530Notebook:~/Dev/gnutls-3.3.9/doc/examples$ gcc ex-client-x509.c -o ex-client-x509…
Zim
  • 43
  • 2
  • 10
0
votes
1 answer

SNI in GNUTLS, when to ask?

So, I'm attempting to implement SNI in my GNUTLS server. My code: if(sniCallback != NULL) { size_t ds = 256; char data[ds]; unsigned int type = (unsigned int)GNUTLS_NAME_DNS; int snir = gnutls_server_name_get(sessiond, &data[0],…
JavaProphet
  • 931
  • 14
  • 29
0
votes
1 answer

C Enum reference undefined, yet sitting in a included header file?

So, I'm playing with GNUTLS, and it has this enum: typedef enum { GNUTLS_PK_UNKNOWN = 0, GNUTLS_PK_RSA = 1, GNUTLS_PK_DSA = 2, GNUTLS_PK_DH = 3, GNUTLS_PK_EC = 4 } gnutls_pk_algorithm_t; sitting in it's main header…
JavaProphet
  • 931
  • 14
  • 29
0
votes
1 answer

How to verify peer certificates in TLS listener

I am writing a TLS listener and accepting new connections. The new connections must be verified against a list of SHA1s before continuing. The issue is that tls.Listen() returns a listener of the interface net.Listener. This means Accept() will…
xrl
  • 2,155
  • 5
  • 26
  • 40
0
votes
1 answer

Read X509-Certificate to process it

I need to read a X509 certificate in C++. I couldn't find a way to do that with the GnuTLS library. The certificate has to be read in PEM or DER format, so that I can process it twith functions of the GnuTLS library. Is there a pendant to the bio…
Maximilian
  • 1,325
  • 2
  • 14
  • 35
0
votes
0 answers

Not possible to statically link libgnutls.a

I try to link the gnutls library statical (libgnutls.a). I already did something like this with OpenSSL, which worked out perfectly wit the command line: g++ test.cpp -statical -lcrypto -ldl -o test. But if I try right the same with the gnuTLS…
Maximilian
  • 1,325
  • 2
  • 14
  • 35
0
votes
1 answer

How to connect to a specific ip address and port with GnuTLS

I have a TCP client and server and I want to implement a security layer using GnuTLS. I have read in the GnuTLS documentation and they don't speak about connect to a specific ip address nor port. They do set an ip address in an certtool template…
Jean
  • 1,707
  • 3
  • 24
  • 43
0
votes
1 answer

GnuTLS API with Windows

I'm trying to use the GnuTLS API on a window machine, sadly it will not work. I downloaded the latest precompiled version for Windows gnutls-3.3.9-w32.zip. Each time I call a GnuTLS function, my program wont work probably. For testing there are only…
guest123
  • 91
  • 3
  • 9
0
votes
1 answer

Undefined symbol "nettle_hmac_sha224_digest, nettle_hmac_sha1_update" gnutls compilation

I tried to compile gnutls and it looks like it's missing symbols in nettle. CC pkix_asn1_tab.lo CCLD libgnutls.la Undefined first referenced symbol in file nettle_gcm_aes_decrypt …
user2719735
  • 97
  • 2
  • 10
0
votes
2 answers

Error when compiling nettle-2.7.1

When I try to compile nettle-2.7.1, I get the following: root@tcx2270-19:~/nettle-2.7.1# make make: Warning: Can't find aes-decrypt-internal.o.d': No such file or directory make: Fatal error in reader: Makefile, line 594: Read of include…
user2719735
  • 97
  • 2
  • 10
0
votes
1 answer

Error: No previous prototype for ‘__sputc’

I am working on installing avconv for a project I am working on. I have been using this link on installing avconv on OSX and this one on building Gnutls for OSX to guide me through this. Gnutls seems to now be successfully installed but when I…
sharland
  • 15
  • 1
  • 7
0
votes
0 answers

gnutls saying "No such file or directory" on handshake

I'm trying to connect to a mumble server and TLS is required. I don't know very much about TLS or how it works, but I've been following along with the docs and I seem to understand what's going on a lot of the time. However, I'm a bit stumped by an…
miscsubbin
  • 511
  • 1
  • 5
  • 16
0
votes
1 answer

GnuTLS: error in compiling sample code?

I am try to compile the simple client/server code in GnuTLS, but a few errors of undefined reference. $ gcc -o client client.o tcp.o `pkg-config gnutls --libs` client.o: In function `main': client.c:(.text+0x159): undefined reference to…
user180574
  • 5,681
  • 13
  • 53
  • 94
0
votes
1 answer

warning of unbound-anchor while configuring nettle library

enter code hereI am trying to install nettle library. So, first I installed GMP library. Then I am trying to configure nettle libray and I am getting the warning below. DNSSEC root key file in /etc/unbound/root.key was not found This file is nedded…
SHRI
  • 2,406
  • 6
  • 32
  • 48
1 2 3
10
11