From 6de27e4884dcc1781f5a0611ebb1d8bc524619d3 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Sat, 17 Nov 2018 08:37:04 +0100 Subject: [PATCH] GNS PROXY: Add SubjectAltName; Fix memdup bug --- src/gns/gnunet-gns-proxy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index e1997e215..9f664e4dd 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -2671,6 +2671,9 @@ generate_gns_certificate (const char *name) 0, name, strlen (name)); + gnutls_x509_crt_set_subject_alternative_name (request, + GNUTLS_SAN_DNSNAME, + name); GNUNET_break (GNUTLS_E_SUCCESS == gnutls_x509_crt_set_version (request, 3)); @@ -3092,7 +3095,7 @@ handle_gns_result (void *cls, = r->data_size - sizeof (struct GNUNET_GNSRECORD_BoxRecord); s5r->dane_data[s5r->num_danes] = GNUNET_memdup (&box[1], - s5r->dane_data_len); + s5r->dane_data_len[s5r->num_danes]); s5r->num_danes++; break; } -- 2.25.1