From 3ee4193043e080b155a3c68a356d6e504e8cb421 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Thu, 21 Jul 2005 19:00:08 +0000 Subject: [PATCH] Replace the genericly-named tls.c with a tls_gnutls.c for switching support in and out. It's easier for the build system if we do this with #ifdef's but conditional compilation is easier while we're playing around. Also rename a function. --- src/tls.h | 2 +- src/{tls.c => tls_gnutls.c} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/{tls.c => tls_gnutls.c} (97%) diff --git a/src/tls.h b/src/tls.h index a28a999..1814ee5 100644 --- a/src/tls.h +++ b/src/tls.h @@ -27,7 +27,7 @@ void tls_shutdown(void); tls_t *tls_new(xmpp_ctx_t *ctx, sock_t sock); void tls_free(tls_t *tls); -int tls_setcredentials(tls_t *tls, const char *cafilename); +int tls_set_credentials(tls_t *tls, const char *cafilename); int tls_start(tls_t *tls); int tls_stop(tls_t *tls); diff --git a/src/tls.c b/src/tls_gnutls.c similarity index 97% rename from src/tls.c rename to src/tls_gnutls.c index a7433da..3e8ffd7 100644 --- a/src/tls.c +++ b/src/tls_gnutls.c @@ -72,7 +72,7 @@ void tls_free(tls_t *tls) xmpp_free(tls->ctx, tls); } -int tls_setcredentials(tls_t *tls, const char *cafilename) +int tls_set_credentials(tls_t *tls, const char *cafilename) { int err;