Skip to content

Commit 1f9dcc3

Browse files
Added skip_ssl_verify setting to OX push driver
1 parent 3cb91e1 commit 1f9dcc3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/plugins/push-notification/push-notification-driver-ox.c

+7
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ struct push_notification_driver_ox_config {
4949

5050
char *cached_ox_metadata;
5151
time_t cached_ox_metadata_timestamp;
52+
53+
bool skip_ssl_verify;
5254
};
5355

5456
/* This is data specific to an OX driver transaction. */
@@ -75,6 +77,8 @@ push_notification_driver_ox_init_global(
7577
http_set.event_parent = user->event;
7678
mail_user_init_ssl_client_settings(user, &ssl_set);
7779
http_set.ssl = &ssl_set;
80+
if (config->skip_ssl_verify)
81+
http_set.ssl->verify_remote_cert = FALSE;
7882

7983
ox_global->http_client = http_client_init(&http_set);
8084
}
@@ -110,6 +114,9 @@ push_notification_driver_ox_init(struct push_notification_driver_config *config,
110114
dconfig->use_unsafe_username =
111115
hash_table_lookup(config->config,
112116
(const char *)"user_from_metadata") != NULL;
117+
dconfig->skip_ssl_verify =
118+
hash_table_lookup(config->config,
119+
(const char*)"skip_ssl_verify") != NULL;
113120

114121
e_debug(dconfig->event, "Using URL %s", tmp);
115122

0 commit comments

Comments
 (0)