# HG changeset patch # User Jerry James # Date 1412794700 21600 # Node ID d59bfb050ca81e88144e93a0176a5ba3f89de241 # Parent a216b3c2b09e93494d82507ff5dd36e4d2474d16 Fix TLS-related build failures. See xemacs-patches message with ID . diff -r a216b3c2b09e -r d59bfb050ca8 src/ChangeLog --- a/src/ChangeLog Tue Oct 07 21:16:10 2014 -0600 +++ b/src/ChangeLog Wed Oct 08 12:58:20 2014 -0600 @@ -1,3 +1,11 @@ +2014-10-08 Jerry James + + * tls.c (init_tls): Remove blatant Fedoraism from the OpenSSL version. + * tls.h (tls_open): + (make_tls_input_stream): + (make_tls_output_stream): + (tls_get_fd): Fix build failures in the !WITH_TLS case. + 2014-10-07 Jerry James * Makefile.in.in: Add tls.o to the link. diff -r a216b3c2b09e -r d59bfb050ca8 src/tls.c --- a/src/tls.c Tue Oct 07 21:16:10 2014 -0600 +++ b/src/tls.c Wed Oct 08 12:58:20 2014 -0600 @@ -1116,7 +1116,7 @@ SSL_MODE_AUTO_RETRY | SSL_MODE_RELEASE_BUFFERS); /* Let the system select the ciphers */ - if (SSL_CTX_set_cipher_list (ssl_ctx, "PROFILE=SYSTEM") != 1) + if (SSL_CTX_set_cipher_list (ssl_ctx, "DEFAULT") != 1) signal_error (Qtls_error, "SSL_CTX_set_cipher_list failed", openssl_error_string ()); diff -r a216b3c2b09e -r d59bfb050ca8 src/tls.h --- a/src/tls.h Tue Oct 07 21:16:10 2014 -0600 +++ b/src/tls.h Wed Oct 08 12:58:20 2014 -0600 @@ -80,14 +80,17 @@ #else /* WITH_TLS */ typedef int tls_state_t; #define TLS_SETUP_SOCK 1 -#define tls_open(x,y) \ - signal_error (Qtls_error, "TLS support unavailable", Qnil), NULL +#define tls_open(x,y) ({ \ + signal_error (Qtls_error, "TLS support unavailable", Qnil); \ + NULL; }) #define tls_negotiate(x,y,z) NULL -#define make_tls_input_stream(x) \ - signal_error (Qtls_error, "TLS support unavailable", Qnil), NULL -#define make_tls_output_stream(x) \ - signal_error (Qtls_error, "TLS support unavailable", Qnil), NULL -#define tls_get_fd(x, y) -1 +#define make_tls_input_stream(x) ({ \ + signal_error (Qtls_error, "TLS support unavailable", Qnil); \ + NULL; }) +#define make_tls_output_stream(x) ({ \ + signal_error (Qtls_error, "TLS support unavailable", Qnil); \ + NULL; }) +#define tls_get_fd(x) -1 #define tls_read(w,x,y,z) -1 #define tls_write(w,x,y,z) -1 #define tls_close(x) -1