summaryrefslogtreecommitdiff
path: root/sysutils/gnome-vfs2/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/gnome-vfs2/patches/patch-ak')
-rw-r--r--sysutils/gnome-vfs2/patches/patch-ak33
1 files changed, 33 insertions, 0 deletions
diff --git a/sysutils/gnome-vfs2/patches/patch-ak b/sysutils/gnome-vfs2/patches/patch-ak
new file mode 100644
index 00000000000..75c0c9499ec
--- /dev/null
+++ b/sysutils/gnome-vfs2/patches/patch-ak
@@ -0,0 +1,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);
++}