summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2023-09-23 11:35:39 +0300
committerdefanor <defanor@uberspace.net>2023-09-24 13:14:42 +0300
commit7a63d327772dc64978e9159d49885a9ae7dd9b4e (patch)
treee3201f3fd56236a223ffc0f8be70f1b9950d6ad0 /examples
parent4ea2ee3870d95b6d95c8e9c7c08277bc9d34d5e0 (diff)
Move GnuTLS operations from Jingle module into TLS module
Diffstat (limited to 'examples')
-rw-r--r--examples/basic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/basic.c b/examples/basic.c
index a529c22..60a240a 100644
--- a/examples/basic.c
+++ b/examples/basic.c
@@ -140,7 +140,8 @@ int main (int argc, char **argv) {
/* Could set a client certificate for SASL EXTERNAL authentication
and Jingle's DTLS here. */
- rexmpp_tls_set_x509_key_file(&s, "client.crt", "client.key");
+ s.x509_key_file = "client.key";
+ s.x509_cert_file = "client.crt";
/* Could also set various other things manually. */
/* s.socks_host = "127.0.0.1"; */