[libsoup/hsts: 27/36] Make soup_hsts_enforcer_set_policy() public
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/hsts: 27/36] Make soup_hsts_enforcer_set_policy() public
- Date: Tue, 25 Sep 2018 14:57:07 +0000 (UTC)
commit a0ce84016ebc12dfa7ad943444d55a25d6b3b8ad
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 f74c7ad5..82eab3a0 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 51ecbff0..f351c77e 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 7a73eced..9db23edc 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 07e9c2bc..c74816d6 100644
--- a/libsoup/soup-hsts-enforcer.c
+++ b/libsoup/soup-hsts-enforcer.c
@@ -17,7 +17,6 @@
#include <string.h>
#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 fbceab46..d1b2d6d9 100644
--- a/libsoup/soup-hsts-enforcer.h
+++ b/libsoup/soup-hsts-enforcer.h
@@ -66,6 +66,10 @@ SOUP_AVAILABLE_IN_2_64
gboolean soup_hsts_enforcer_has_valid_policy (SoupHSTSEnforcer *hsts_enforcer,
const char *domain);
SOUP_AVAILABLE_IN_2_64
+void soup_hsts_enforcer_set_policy (SoupHSTSEnforcer *hsts_enforcer,
+ SoupHSTSPolicy *policy);
+
+SOUP_AVAILABLE_IN_2_64
void soup_hsts_enforcer_set_session_policy (SoupHSTSEnforcer *hsts_enforcer,
const char *domain,
gboolean include_subdomains);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]