summaryrefslogtreecommitdiff
path: root/src/rexmpp.h
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2021-09-20 11:41:56 +0300
committerdefanor <defanor@uberspace.net>2021-09-20 11:41:56 +0300
commitb5694f7a20fc85d03016dc028d7e566dd707e50c (patch)
treea33d24b009d456c603b4f24c55422970f25aee59 /src/rexmpp.h
parent917211b67cc27f07b3743611ee9389ff966ffba5 (diff)
Restore client certificate (SASL EXTERNAL) authentication
As well as the ability to set a trusted server certificate.
Diffstat (limited to 'src/rexmpp.h')
-rw-r--r--src/rexmpp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rexmpp.h b/src/rexmpp.h
index bfcde96..a7b376a 100644
--- a/src/rexmpp.h
+++ b/src/rexmpp.h
@@ -213,6 +213,13 @@ enum rexmpp_err {
};
typedef enum rexmpp_err rexmpp_err_t;
+/** @brief TLS policy */
+enum tls_pol {
+ REXMPP_TLS_REQUIRE,
+ REXMPP_TLS_PREFER,
+ REXMPP_TLS_AVOID
+};
+
typedef void (*log_function_t) (rexmpp_t *s, int priority, const char *format, va_list args);
typedef int (*sasl_property_cb_t) (rexmpp_t *s, Gsasl_property prop);
typedef int (*xml_in_cb_t) (rexmpp_t *s, xmlNodePtr node);
@@ -259,7 +266,7 @@ struct rexmpp
int nick_notifications; /* XEP-0172 */
int retrieve_openpgp_keys; /* XEP-0373 */
int autojoin_bookmarked_mucs; /* XEP-0402 */
- int require_tls;
+ enum tls_pol tls_policy;
/* Resource limits. */
uint32_t stanza_queue_size;