]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/openssl.h
Backport from BEE
[bacula/bacula] / bacula / src / lib / openssl.h
1 /*
2    Bacula® - The Network Backup Solution
3
4    Copyright (C) 2005-2014 Free Software Foundation Europe e.V.
5
6    The main author of Bacula is Kern Sibbald, with contributions from many
7    others, a complete list can be found in the file AUTHORS.
8
9    You may use this file and others of this release according to the
10    license defined in the LICENSE file, which includes the Affero General
11    Public License, v3.0 ("AGPLv3") and some additional permissions and
12    terms pursuant to its AGPLv3 Section 7.
13
14    Bacula® is a registered trademark of Kern Sibbald.
15 */
16 /*
17  * openssl.h OpenSSL support functions
18  *
19  * Author: Landon Fuller <landonf@opendarwin.org>
20  *
21  * Version $Id$
22  *
23  * This file was contributed to the Bacula project by Landon Fuller.
24  *
25  * Landon Fuller has been granted a perpetual, worldwide, non-exclusive,
26  * no-charge, royalty-free, irrevocable copyright * license to reproduce,
27  * prepare derivative works of, publicly display, publicly perform,
28  * sublicense, and distribute the original work contributed by Landon Fuller
29  * to the Bacula project in source or object form.
30  *
31  * If you wish to license these contributions under an alternate open source
32  * license please contact Landon Fuller <landonf@opendarwin.org>.
33  */
34
35 #ifndef __OPENSSL_H_
36 #define __OPENSSL_H_
37
38 #ifdef HAVE_OPENSSL
39 void             openssl_post_errors     (int code, const char *errstring);
40 void             openssl_post_errors     (JCR *jcr, int code, const char *errstring);
41 int              openssl_init_threads    (void);
42 void             openssl_cleanup_threads (void);
43 int              openssl_seed_prng       (void);
44 int              openssl_save_prng       (void);
45 #endif /* HAVE_OPENSSL */
46
47 #endif /* __OPENSSL_H_ */