summaryrefslogtreecommitdiff
path: root/sysutils/gnome-vfs2/patches/patch-ak
blob: 75c0c9499ecd425f0544ee6a8357709dba8dc1c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-ak,v 1.8 2006/07/07 00:24:43 minskim Exp $

http://bugzilla.gnome.org/show_bug.cgi?id=337993

--- imported/neon/ne_gnutls.c.orig	2006-06-26 16:17:37.000000000 -0700
+++ imported/neon/ne_gnutls.c
@@ -0,0 +1,26 @@
+#include "config.h"
+
+#include <gnutls/gnutls.h>
+
+#include "ne_ssl.h"
+
+#include "ne_private.h"
+#include "ne_privssl.h"
+
+struct ne_ssl_dname_s {
+    int subject; /* non-zero if this is the subject DN object */
+    gnutls_x509_crt cert;
+};
+
+struct ne_ssl_certificate_s {
+    ne_ssl_dname subj_dn, issuer_dn;
+    gnutls_x509_crt subject;
+    ne_ssl_certificate *issuer;
+    char *identity;
+};
+
+void ne_ssl_context_trustcert(ne_ssl_context *ctx, const ne_ssl_certificate *cert)
+{
+    gnutls_x509_crt certs = cert->subject;
+    gnutls_certificate_set_x509_trust(ctx->cred, &certs, 1);
+}