[libsoup/hsts: 33/38] Make soup_hsts_enforcer_set_policy() public
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/hsts: 33/38] Make soup_hsts_enforcer_set_policy() public
- Date: Wed, 13 Feb 2019 10:08:45 +0000 (UTC)
commit ed3377bd38372225ca9d9e5e927f75d56e4712ac
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 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/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]