]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/openssl.h
Final changes
[bacula/bacula] / bacula / src / lib / openssl.h
1 /*
2  * openssl.h OpenSSL support functions
3  *
4  * Author: Landon Fuller <landonf@opendarwin.org>
5  *
6  * Version $Id$
7  *
8  * Copyright (C) 2005 Kern Sibbald
9  *
10  * This file was contributed to the Bacula project by Landon Fuller.
11  *
12  * Landon Fuller has been granted a perpetual, worldwide, non-exclusive,
13  * no-charge, royalty-free, irrevocable copyright * license to reproduce,
14  * prepare derivative works of, publicly display, publicly perform,
15  * sublicense, and distribute the original work contributed by Landon Fuller
16  * to the Bacula project in source or object form.
17  *
18  * If you wish to license these contributions under an alternate open source
19  * license please contact Landon Fuller <landonf@opendarwin.org>.
20  */
21 /*
22    Copyright (C) 2005 Kern Sibbald
23
24    This program is free software; you can redistribute it and/or
25    modify it under the terms of the GNU General Public License
26    version 2 as amended with additional clauses defined in the
27    file LICENSE in the main source directory.
28
29    This program is distributed in the hope that it will be useful,
30    but WITHOUT ANY WARRANTY; without even the implied warranty of
31    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
32    the file LICENSE for additional details.
33
34  */
35
36 #ifndef __OPENSSL_H_
37 #define __OPENSSL_H_
38
39 #ifdef HAVE_OPENSSL
40 void             openssl_post_errors     (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_ */