summaryrefslogtreecommitdiff
path: root/examples/basic.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic.c')
-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"; */