]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/bsock.c
Implement first cut of Copy Job
[bacula/bacula] / bacula / src / lib / bsock.c
index 560d6233c3522d5cc97c33ebaa93ce589dbb0d7f..992d099113703e916b905637d753089dac05aef5 100644 (file)
@@ -1,7 +1,7 @@
 /*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 2007-2007 Free Software Foundation Europe e.V.
+   Copyright (C) 2007-2008 Free Software Foundation Europe e.V.
 
    The main author of Bacula is Kern Sibbald, with contributions from
    many others, a complete list can be found in the file AUTHORS.
@@ -85,6 +85,12 @@ void BSOCK::free_bsock()
    destroy();
 }
 
+void BSOCK::free_tls()
+{
+   free_tls_connection(this->tls);
+   this->tls = NULL;
+}   
+
 /*
  * Try to connect to host for max_retry_time at retry_time intervals.
  *   Note, you must have called the constructor prior to calling