From 7a63d327772dc64978e9159d49885a9ae7dd9b4e Mon Sep 17 00:00:00 2001 From: defanor Date: Sat, 23 Sep 2023 11:35:39 +0300 Subject: Move GnuTLS operations from Jingle module into TLS module --- examples/basic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') 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"; */ -- cgit v1.2.3