summaryrefslogtreecommitdiffstats
path: root/deskutils/fusenshi/files
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/fusenshi/files')
-rw-r--r--deskutils/fusenshi/files/patch-src_net_fusenshisslclientsocket.cpp20
-rw-r--r--deskutils/fusenshi/files/patch-src_net_fusenshisslserversocket.cpp22
2 files changed, 42 insertions, 0 deletions
diff --git a/deskutils/fusenshi/files/patch-src_net_fusenshisslclientsocket.cpp b/deskutils/fusenshi/files/patch-src_net_fusenshisslclientsocket.cpp
new file mode 100644
index 0000000..bbfa806
--- /dev/null
+++ b/deskutils/fusenshi/files/patch-src_net_fusenshisslclientsocket.cpp
@@ -0,0 +1,20 @@
+--- src/net/fusenshisslclientsocket.cpp.orig 2007-04-02 10:44:52 UTC
++++ src/net/fusenshisslclientsocket.cpp
+@@ -52,9 +52,6 @@ bool FusenshiSSLClientSocket::connect(un
+ {
+ // 通信を暗号化しますが、ホストの証明は行いません。
+ int ret;
+- const int cert_priority[] = {
+- GNUTLS_CRT_X509, 0
+- };
+
+ if (NULL != m_session) close();
+
+@@ -64,7 +61,6 @@ bool FusenshiSSLClientSocket::connect(un
+
+ gnutls_init(&m_session, GNUTLS_CLIENT);
+ gnutls_set_default_priority(m_session);
+- gnutls_certificate_type_set_priority(m_session, cert_priority);
+
+ gnutls_credentials_set(m_session, GNUTLS_CRD_CERTIFICATE, cert);
+
diff --git a/deskutils/fusenshi/files/patch-src_net_fusenshisslserversocket.cpp b/deskutils/fusenshi/files/patch-src_net_fusenshisslserversocket.cpp
new file mode 100644
index 0000000..0445869
--- /dev/null
+++ b/deskutils/fusenshi/files/patch-src_net_fusenshisslserversocket.cpp
@@ -0,0 +1,22 @@
+--- src/net/fusenshisslserversocket.cpp.orig 2007-04-02 10:44:52 UTC
++++ src/net/fusenshisslserversocket.cpp
+@@ -56,9 +56,6 @@ public:
+ bool sslAccept(int sock)
+ {
+ int ret;
+- const int cert_priority[] = {
+- GNUTLS_CRT_X509, 0
+- };
+
+ m_socket = sock;
+
+@@ -69,8 +66,7 @@ public:
+ if (!cert) return false;
+
+ gnutls_init(&m_session, GNUTLS_SERVER);
+- gnutls_set_default_export_priority(m_session);
+- gnutls_certificate_type_set_priority(m_session, cert_priority);
++ gnutls_set_default_priority(m_session);
+
+ gnutls_credentials_set(m_session, GNUTLS_CRD_CERTIFICATE, cert);
+ gnutls_certificate_server_set_request(m_session, GNUTLS_CERT_REQUIRE);
OpenPOWER on IntegriCloud