]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix TLS #ifdefing when TLS turned off.
authorKern Sibbald <kern@sibbald.com>
Fri, 25 May 2007 21:41:49 +0000 (21:41 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 25 May 2007 21:41:49 +0000 (21:41 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4906 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/lib/protos.h
bacula/src/lib/tls.c
bacula/technotes-2.1

index 930151e28b7042565c57348cae2ee1588a451b7f..16b87f0e042867ae9107ae3fbe7641ad6ca07597 100644 (file)
@@ -290,13 +290,13 @@ bool             tls_postconnect_verify_host  (TLS_CONNECTION *tls,
 bool             tls_postconnect_verify_cn    (TLS_CONNECTION *tls,
                                                alist *verify_list);
 TLS_CONNECTION   *new_tls_connection     (TLS_CONTEXT *ctx, int fd);
-void             free_tls_connection     (TLS_CONNECTION *tls);
-bool             tls_bsock_connect       (BSOCK *bsock);
 bool             tls_bsock_accept        (BSOCK *bsock);
-void             tls_bsock_shutdown      (BSOCK *bsock);
 int              tls_bsock_writen        (BSOCK *bsock, char *ptr, int32_t nbytes);
 int              tls_bsock_readn         (BSOCK *bsock, char *ptr, int32_t nbytes);
 #endif /* HAVE_TLS */
+bool             tls_bsock_connect       (BSOCK *bsock);
+void             tls_bsock_shutdown      (BSOCK *bsock);
+void             free_tls_connection     (TLS_CONNECTION *tls);
 bool             get_tls_require         (TLS_CONTEXT *ctx);
 bool             get_tls_enable          (TLS_CONTEXT *ctx);
 
index 85aeb1dbcd4ae5c34f48ab7f279fa4ff85345aef..d4919c83c137755cde128ff5c7c9e3d686a96556 100644 (file)
@@ -705,15 +705,8 @@ void free_tls_context(TLS_CONTEXT *ctx) { }
 
 void tls_bsock_shutdown(BSOCK *bsock) { }
 
-void free_tls_connection(TLS_CONNECTION *tls)
-{
-   if (tls) {
-      if (tls->openssl) {
-         SSL_free(tls->openssl);
-      }
-      free(tls);
-   }
-}
+void free_tls_connection(TLS_CONNECTION *tls) { }
+
 bool get_tls_require(TLS_CONTEXT *ctx) 
 {
    return false;
index f140f418a4f57d176abd8088430018aaedf2eb48..8c7817b70d07e828ec4cfe2d72e26435fcc7343e 100644 (file)
@@ -2,6 +2,7 @@
 
 General:
 25May07
+kes  Fix TLS #ifdefing when TLS turned off.
 kes  Ensure that when labelling a tape with Slot=0 that InChanger
      is not set.
 kes  Use DISTINCT to make MySQL and PostgreSQL uar_list_temp query