[libsoup/hsts: 20/25] Make soup_hsts_enforcer_set_policy() public
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/hsts: 20/25] Make soup_hsts_enforcer_set_policy() public
- Date: Wed, 31 Oct 2018 16:38:09 +0000 (UTC)
commit 770710efdf982b6f570629bb40c06a50d6bdbad3
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed Sep 19 16:45:40 2018 +0300
Make soup_hsts_enforcer_set_policy() public
I can't see a reason for it to be private, and it's needed for unit
testing.
docs/reference/Makefile.am | 3 +--
docs/reference/libsoup-2.4-sections.txt | 1 +
docs/reference/meson.build | 1 -
libsoup/Makefile.am | 1 -
libsoup/soup-hsts-enforcer-db.c | 1 -
libsoup/soup-hsts-enforcer-private.h | 15 ---------------
libsoup/soup-hsts-enforcer.c | 1 -
libsoup/soup-hsts-enforcer.h | 4 ++++
8 files changed, 6 insertions(+), 21 deletions(-)
---
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index df33a4f0..1baf1135 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -46,8 +46,7 @@ IGNORE_HFILES= soup.h soup-autocleanups.h soup-enum-types.h \
soup-misc-private.h soup-proxy-uri-resolver.h \
soup-proxy-resolver-wrapper.h soup-proxy-uri-resolver.h \
soup-cache-private.h soup-cache-client-input-stream.h \
- soup-socket-private.h soup-value-utils.h soup-xmlrpc-old.h \
- soup-hsts-enforcer-private.h
+ soup-socket-private.h soup-value-utils.h soup-xmlrpc-old.h
# Images to copy into HTML directory.
HTML_IMAGES =
diff --git a/docs/reference/libsoup-2.4-sections.txt b/docs/reference/libsoup-2.4-sections.txt
index 6b99afa1..5e0aa0e1 100644
--- a/docs/reference/libsoup-2.4-sections.txt
+++ b/docs/reference/libsoup-2.4-sections.txt
@@ -1354,6 +1354,7 @@ SoupHSTSEnforcerClass
soup_hsts_enforcer_new
soup_hsts_enforcer_is_persistent
soup_hsts_enforcer_has_valid_policy
+soup_hsts_enforcer_set_policy
soup_hsts_enforcer_set_session_policy
<SUBSECTION>
SoupHSTSPolicy
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index a652c422..12105016 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -40,7 +40,6 @@ ignore_headers = [
'soup-socket-private.h',
'soup-value-utils.h',
'soup-xmlrpc-old.h'
- 'soup-hsts-enforcer-private.h'
]
mkdb_args = [
diff --git a/libsoup/Makefile.am b/libsoup/Makefile.am
index 4a77ab9f..122a5f41 100644
--- a/libsoup/Makefile.am
+++ b/libsoup/Makefile.am
@@ -165,7 +165,6 @@ libsoup_2_4_la_SOURCES = \
soup-headers.c \
soup-hsts-enforcer.c \
soup-hsts-enforcer-db.c \
- soup-hsts-enforcer-private.h \
soup-hsts-policy.c \
soup-init.c \
soup-io-stream.h \
diff --git a/libsoup/soup-hsts-enforcer-db.c b/libsoup/soup-hsts-enforcer-db.c
index 3e5add95..cfe3df40 100644
--- a/libsoup/soup-hsts-enforcer-db.c
+++ b/libsoup/soup-hsts-enforcer-db.c
@@ -16,7 +16,6 @@
#include <sqlite3.h>
#include "soup-hsts-enforcer-db.h"
-#include "soup-hsts-enforcer-private.h"
#include "soup.h"
/**
diff --git a/libsoup/soup-hsts-enforcer.c b/libsoup/soup-hsts-enforcer.c
index 37060cb8..8a4dd6e8 100644
--- a/libsoup/soup-hsts-enforcer.c
+++ b/libsoup/soup-hsts-enforcer.c
@@ -13,7 +13,6 @@
#endif
#include "soup-hsts-enforcer.h"
-#include "soup-hsts-enforcer-private.h"
#include "soup.h"
/**
diff --git a/libsoup/soup-hsts-enforcer.h b/libsoup/soup-hsts-enforcer.h
index 0eecb733..9e108fc7 100644
--- a/libsoup/soup-hsts-enforcer.h
+++ b/libsoup/soup-hsts-enforcer.h
@@ -69,6 +69,10 @@ SOUP_AVAILABLE_IN_2_66
void soup_hsts_enforcer_set_session_policy (SoupHSTSEnforcer *hsts_enforcer,
const char *domain,
gboolean include_subdomains);
+SOUP_AVAILABLE_IN_2_66
+void soup_hsts_enforcer_set_policy (SoupHSTSEnforcer *hsts_enforcer,
+ SoupHSTSPolicy *policy);
+
G_END_DECLS
#endif /* __SOUP_HSTS_ENFORCER_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]