diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-07-28 03:51:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:15:06 -0500 |
commit | 3043969708edbdab58ee57e2fbffa293b6406813 (patch) | |
tree | e73627344b3691540e148560e0bcf42ec81d645c /source/lib/tls | |
parent | c865aea260dd22b8b5d63e60fd917a52ed719993 (diff) | |
download | samba-3043969708edbdab58ee57e2fbffa293b6406813.tar.gz |
r17286: Simply fail the tls_initialise if we don't have TLS compiled in.
Adjust the web_server code to cope with this.
Andrew Bartlett
Diffstat (limited to 'source/lib/tls')
-rw-r--r-- | source/lib/tls/tls.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/lib/tls/tls.c b/source/lib/tls/tls.c index 9a37dd0bc31..c3a6047e065 100644 --- a/source/lib/tls/tls.c +++ b/source/lib/tls/tls.c @@ -634,8 +634,8 @@ BOOL tls_support(struct tls_params *params) #else -/* for systems without tls we just map the tls socket calls to the - normal socket calls */ +/* for systems without tls we just fail the operations, and the caller + * will retain the original socket */ struct tls_params *tls_initialise(TALLOC_CTX *mem_ctx) { @@ -650,9 +650,6 @@ struct socket_context *tls_init_server(struct tls_params *params, struct fd_event *fde, const char *plain_chars) { - if (plain_chars) { - return socket; - } return NULL; } |