forked from pool/libsoup
This commit is contained in:
parent
9a36deb7cf
commit
553d83b5a1
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,7 @@
|
|||||||
|
=== modified file 'configure.in'
|
||||||
Index: configure.in
|
--- configure.in 2008-04-08 21:37:12 +0000
|
||||||
===================================================================
|
+++ configure.in 2008-04-21 17:32:27 +0000
|
||||||
--- configure.in (revision 924)
|
@@ -145,6 +145,11 @@
|
||||||
+++ configure.in (working copy)
|
|
||||||
@@ -140,6 +140,11 @@
|
|
||||||
if test "$have_ssl" = "yes"; then
|
if test "$have_ssl" = "yes"; then
|
||||||
AC_DEFINE(HAVE_SSL, 1, [Defined if you have SSL support])
|
AC_DEFINE(HAVE_SSL, 1, [Defined if you have SSL support])
|
||||||
SSL_REQUIREMENT="gnutls"
|
SSL_REQUIREMENT="gnutls"
|
||||||
@ -15,40 +13,11 @@ Index: configure.in
|
|||||||
else
|
else
|
||||||
if test "$enable_ssl" = "auto"; then
|
if test "$enable_ssl" = "auto"; then
|
||||||
AC_MSG_WARN(Disabling SSL support);
|
AC_MSG_WARN(Disabling SSL support);
|
||||||
Index: libsoup/soup-ssl.h
|
|
||||||
===================================================================
|
=== modified file 'libsoup/soup-gnutls.c'
|
||||||
--- libsoup/soup-ssl.h (revision 924)
|
--- libsoup/soup-gnutls.c 2008-04-20 23:11:54 +0000
|
||||||
+++ libsoup/soup-ssl.h (working copy)
|
+++ libsoup/soup-gnutls.c 2008-04-21 17:32:27 +0000
|
||||||
@@ -44,4 +44,24 @@
|
@@ -41,6 +41,12 @@
|
||||||
SOUP_SSL_ERROR_CERTIFICATE,
|
|
||||||
} SoupSocketError;
|
|
||||||
|
|
||||||
+#ifdef HAVE_GNUTLS_CERTIFICATE_CLIENT_SET_SIGN_FUNCTION
|
|
||||||
+#include <gnutls/gnutls.h>
|
|
||||||
+
|
|
||||||
+typedef int (*SoupGnuTLSCertificateRequestFunc) (const gnutls_datum_t *req_ca_rdn,
|
|
||||||
+ int nreqs,
|
|
||||||
+ gnutls_datum_t **cert_ret,
|
|
||||||
+ int *cert_ret_len,
|
|
||||||
+ gpointer user_data);
|
|
||||||
+
|
|
||||||
+typedef int (*SoupGnuTLSSignDataFunc) (gnutls_datum_t *cert_der,
|
|
||||||
+ const gnutls_datum_t *hash_data,
|
|
||||||
+ gnutls_datum_t *sign_data,
|
|
||||||
+ gpointer user_data);
|
|
||||||
+
|
|
||||||
+void soup_gnutls_set_callbacks (SoupSSLCredentials *creds,
|
|
||||||
+ SoupGnuTLSCertificateRequestFunc cert_func,
|
|
||||||
+ SoupGnuTLSSignDataFunc sign_func,
|
|
||||||
+ gpointer user_data);
|
|
||||||
+#endif /* HAVE_GNUTLS... */
|
|
||||||
+
|
|
||||||
#endif /* SOUP_SSL_H */
|
|
||||||
Index: libsoup/soup-gnutls.c
|
|
||||||
===================================================================
|
|
||||||
--- libsoup/soup-gnutls.c (revision 924)
|
|
||||||
+++ libsoup/soup-gnutls.c (working copy)
|
|
||||||
@@ -33,6 +33,12 @@
|
|
||||||
struct SoupSSLCredentials {
|
struct SoupSSLCredentials {
|
||||||
gnutls_certificate_credentials creds;
|
gnutls_certificate_credentials creds;
|
||||||
gboolean have_ca_file;
|
gboolean have_ca_file;
|
||||||
@ -61,16 +30,16 @@ Index: libsoup/soup-gnutls.c
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@@ -411,6 +417,7 @@
|
@@ -419,6 +425,7 @@
|
||||||
gnutls_dh_set_prime_bits (session, DH_BITS);
|
gnutls_dh_set_prime_bits (session, DH_BITS);
|
||||||
|
|
||||||
gnutls_transport_set_ptr (session, GINT_TO_POINTER (sockfd));
|
gnutls_transport_set_ptr (session, GINT_TO_POINTER (sockfd));
|
||||||
+ gnutls_session_set_ptr (session, creds);
|
+ gnutls_session_set_ptr (session, creds);
|
||||||
|
|
||||||
chan = g_new0 (SoupGNUTLSChannel, 1);
|
chan = g_slice_new0 (SoupGNUTLSChannel);
|
||||||
chan->fd = sockfd;
|
chan->fd = sockfd;
|
||||||
@@ -451,6 +458,111 @@
|
@@ -462,6 +469,111 @@
|
||||||
soup_gnutls_inited = TRUE;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
+#ifdef HAVE_GNUTLS_CERTIFICATE_CLIENT_SET_SIGN_FUNCTION
|
+#ifdef HAVE_GNUTLS_CERTIFICATE_CLIENT_SET_SIGN_FUNCTION
|
||||||
@ -181,22 +150,32 @@ Index: libsoup/soup-gnutls.c
|
|||||||
/**
|
/**
|
||||||
* soup_ssl_get_client_credentials:
|
* soup_ssl_get_client_credentials:
|
||||||
* @ca_file: path to a file containing X509-encoded Certificate
|
* @ca_file: path to a file containing X509-encoded Certificate
|
||||||
Index: libsoup/soup-session.c
|
|
||||||
===================================================================
|
=== modified file 'libsoup/soup-marshal.list'
|
||||||
--- libsoup/soup-session.c (revision 924)
|
--- libsoup/soup-marshal.list 2008-01-15 17:40:47 +0000
|
||||||
+++ libsoup/soup-session.c (working copy)
|
+++ libsoup/soup-marshal.list 2008-04-21 17:34:46 +0000
|
||||||
@@ -89,6 +89,8 @@
|
@@ -5,3 +5,5 @@
|
||||||
enum {
|
NONE:OBJECT,OBJECT
|
||||||
|
NONE:OBJECT,POINTER
|
||||||
|
NONE:OBJECT,OBJECT,BOOLEAN
|
||||||
|
+INT:POINTER,INT,POINTER,POINTER
|
||||||
|
+INT:POINTER,POINTER,POINTER
|
||||||
|
|
||||||
|
=== modified file 'libsoup/soup-session.c'
|
||||||
|
--- libsoup/soup-session.c 2008-04-08 22:13:03 +0000
|
||||||
|
+++ libsoup/soup-session.c 2008-04-21 17:34:09 +0000
|
||||||
|
@@ -124,6 +124,8 @@
|
||||||
|
REQUEST_STARTED,
|
||||||
|
REQUEST_UNQUEUED,
|
||||||
AUTHENTICATE,
|
AUTHENTICATE,
|
||||||
REAUTHENTICATE,
|
|
||||||
+ CERTIFICATE_REQUESTED,
|
+ CERTIFICATE_REQUESTED,
|
||||||
+ SIGN_DATA,
|
+ SIGN_DATA,
|
||||||
LAST_SIGNAL
|
LAST_SIGNAL
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -292,6 +294,35 @@
|
@@ -391,6 +393,35 @@
|
||||||
G_TYPE_POINTER,
|
SOUP_TYPE_AUTH,
|
||||||
G_TYPE_POINTER);
|
G_TYPE_BOOLEAN);
|
||||||
|
|
||||||
+ /* This signal is not part of SoupSession's public API, and
|
+ /* This signal is not part of SoupSession's public API, and
|
||||||
+ * *will* disappear without warning in the future.
|
+ * *will* disappear without warning in the future.
|
||||||
@ -230,9 +209,9 @@ Index: libsoup/soup-session.c
|
|||||||
/* properties */
|
/* properties */
|
||||||
g_object_class_install_property (
|
g_object_class_install_property (
|
||||||
object_class, PROP_PROXY_URI,
|
object_class, PROP_PROXY_URI,
|
||||||
@@ -550,6 +581,46 @@
|
@@ -701,6 +732,46 @@
|
||||||
return strcmp (one->host, two->host) == 0;
|
|
||||||
}
|
/* Hosts */
|
||||||
|
|
||||||
+#ifdef HAVE_GNUTLS_CERTIFICATE_CLIENT_SET_SIGN_FUNCTION
|
+#ifdef HAVE_GNUTLS_CERTIFICATE_CLIENT_SET_SIGN_FUNCTION
|
||||||
+static int
|
+static int
|
||||||
@ -275,9 +254,9 @@ Index: libsoup/soup-session.c
|
|||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
static SoupSessionHost *
|
static SoupSessionHost *
|
||||||
soup_session_host_new (SoupSession *session, const SoupUri *source_uri)
|
soup_session_host_new (SoupSession *session, SoupURI *source_uri)
|
||||||
{
|
{
|
||||||
@@ -563,6 +634,12 @@
|
@@ -714,6 +785,12 @@
|
||||||
!priv->ssl_creds) {
|
!priv->ssl_creds) {
|
||||||
priv->ssl_creds =
|
priv->ssl_creds =
|
||||||
soup_ssl_get_client_credentials (priv->ssl_ca_file);
|
soup_ssl_get_client_credentials (priv->ssl_ca_file);
|
||||||
@ -290,13 +269,33 @@ Index: libsoup/soup-session.c
|
|||||||
}
|
}
|
||||||
|
|
||||||
return host;
|
return host;
|
||||||
Index: libsoup/soup-marshal.list
|
|
||||||
===================================================================
|
=== modified file 'libsoup/soup-ssl.h'
|
||||||
--- libsoup/soup-marshal.list (revision 924)
|
--- libsoup/soup-ssl.h 2008-04-20 23:11:54 +0000
|
||||||
+++ libsoup/soup-marshal.list (working copy)
|
+++ libsoup/soup-ssl.h 2008-04-21 17:32:27 +0000
|
||||||
@@ -2,3 +2,5 @@
|
@@ -28,4 +28,24 @@
|
||||||
NONE:INT
|
const char *remote_host,
|
||||||
NONE:OBJECT
|
SoupSSLCredentials *creds);
|
||||||
NONE:OBJECT,STRING,STRING,POINTER,POINTER
|
|
||||||
+INT:POINTER,INT,POINTER,POINTER
|
+#ifdef HAVE_GNUTLS_CERTIFICATE_CLIENT_SET_SIGN_FUNCTION
|
||||||
+INT:POINTER,POINTER,POINTER
|
+#include <gnutls/gnutls.h>
|
||||||
|
+
|
||||||
|
+typedef int (*SoupGnuTLSCertificateRequestFunc) (const gnutls_datum_t *req_ca_rdn,
|
||||||
|
+ int nreqs,
|
||||||
|
+ gnutls_datum_t **cert_ret,
|
||||||
|
+ int *cert_ret_len,
|
||||||
|
+ gpointer user_data);
|
||||||
|
+
|
||||||
|
+typedef int (*SoupGnuTLSSignDataFunc) (gnutls_datum_t *cert_der,
|
||||||
|
+ const gnutls_datum_t *hash_data,
|
||||||
|
+ gnutls_datum_t *sign_data,
|
||||||
|
+ gpointer user_data);
|
||||||
|
+
|
||||||
|
+void soup_gnutls_set_callbacks (SoupSSLCredentials *creds,
|
||||||
|
+ SoupGnuTLSCertificateRequestFunc cert_func,
|
||||||
|
+ SoupGnuTLSSignDataFunc sign_func,
|
||||||
|
+ gpointer user_data);
|
||||||
|
+#endif /* HAVE_GNUTLS... */
|
||||||
|
+
|
||||||
|
#endif /* SOUP_SSL_H */
|
||||||
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 21 20:03:51 CEST 2008 - maw@suse.de
|
||||||
|
|
||||||
|
- Drop libsoup-2.2.100-r924.patch, because it is now upstream
|
||||||
|
- Respin libsoup-334021.patch, and rename it to
|
||||||
|
libsoup-334021-client-ssl-certs.patch.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de
|
Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de
|
||||||
|
|
||||||
|
15
libsoup.spec
15
libsoup.spec
@ -20,12 +20,10 @@ Group: Development/Libraries/GNOME
|
|||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Summary: Simple Object Access Protocol (SOAP)
|
Summary: Simple Object Access Protocol (SOAP)
|
||||||
Version: 2.4.1
|
Version: 2.4.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/libsoup/2.2/%{name}-%{version}.tar.bz2
|
Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/libsoup/2.2/%{name}-%{version}.tar.bz2
|
||||||
# PATCH-NEEDS-REBASE libsoup-2.2.100-r924.patch
|
# PATCH-FEATURE-UPSTREAM libsoup-334021-client-ssl-certs.patch bgo334021 -- client SSL certificate support
|
||||||
Patch1: libsoup-2.2.100-r924.patch
|
Patch0: libsoup-334021-client-ssl-certs.patch
|
||||||
# PATCH-NEEDS-REBASE libsoup-334021.patch
|
|
||||||
Patch2: libsoup-334021.patch
|
|
||||||
Url: http://www.gnome.org
|
Url: http://www.gnome.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires: %{name}-2_4-1 = %{version}
|
Requires: %{name}-2_4-1 = %{version}
|
||||||
@ -139,8 +137,7 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
#%patch1 -p1
|
%patch0 -p0
|
||||||
#%patch2 -p0
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||||
@ -179,6 +176,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/gtk-doc/html/libsoup-2.4
|
%{_datadir}/gtk-doc/html/libsoup-2.4
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 21 2008 maw@suse.de
|
||||||
|
- Drop libsoup-2.2.100-r924.patch, because it is now upstream
|
||||||
|
- Respin libsoup-334021.patch, and rename it to
|
||||||
|
libsoup-334021-client-ssl-certs.patch.
|
||||||
* Thu Apr 10 2008 ro@suse.de
|
* Thu Apr 10 2008 ro@suse.de
|
||||||
- added baselibs.conf file to build xxbit packages
|
- added baselibs.conf file to build xxbit packages
|
||||||
for multilib support
|
for multilib support
|
||||||
|
Loading…
x
Reference in New Issue
Block a user