[libsoup/hsts: 12/17] Make soup_hsts_enforcer_set_policy() public
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/hsts: 12/17] Make soup_hsts_enforcer_set_policy() public
- Date: Wed, 22 May 2019 15:00:09 +0000 (UTC)
commit 986a7ab1e37e74b4b4241bec81f08ea137f92c84
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/libsoup-2.4-sections.txt | 1 +
docs/reference/meson.build | 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 ++++
6 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/docs/reference/libsoup-2.4-sections.txt b/docs/reference/libsoup-2.4-sections.txt
index 64e9796d..8836f2de 100644
--- a/docs/reference/libsoup-2.4-sections.txt
+++ b/docs/reference/libsoup-2.4-sections.txt
@@ -1355,6 +1355,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 cf36fb2b..99b991a9 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/soup-hsts-enforcer-db.c b/libsoup/soup-hsts-enforcer-db.c
index 861e7c8a..6a14bbd8 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 6990451d..f2fd4525 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 e6b3c2d6..d03ab220 100644
--- a/libsoup/soup-hsts-enforcer.h
+++ b/libsoup/soup-hsts-enforcer.h
@@ -69,6 +69,10 @@ SOUP_AVAILABLE_IN_2_68
void soup_hsts_enforcer_set_session_policy (SoupHSTSEnforcer *hsts_enforcer,
const char *domain,
gboolean include_subdomains);
+SOUP_AVAILABLE_IN_2_68
+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]