]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/tls.h
This commit was manufactured by cvs2svn to create tag
[bacula/bacula] / bacula / src / lib / tls.h
1 /*
2  * tls.h TLS support functions
3  *
4  * Author: Landon Fuller <landonf@threerings.net>
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  * and Three Rings Design, Inc.
12  *
13  * Three Rings Design, Inc. has been granted a perpetual, worldwide,
14  * non-exclusive, no-charge, royalty-free, irrevocable copyright
15  * license to reproduce, prepare derivative works of, publicly
16  * display, publicly perform, sublicense, and distribute the original
17  * work contributed by Three Rings Design, Inc. and its employees to
18  * the Bacula project in source or object form.
19  *
20  * If you wish to license contributions from Three Rings Design, Inc,
21  * under an alternate open source license please contact
22  * Landon Fuller <landonf@threerings.net>.
23  */
24 /*  
25    This library is free software; you can redistribute it and/or
26    modify it under the terms of the GNU Lesser General Public
27    License as published by the Free Software Foundation; either
28    version 2.1 of the License, or (at your option) any later version.
29   
30    This library is distributed in the hope that it will be useful,
31    but WITHOUT ANY WARRANTY; without even the implied warranty of
32    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
33    Lesser General Public License for more details.
34   
35    You should have received a copy of the GNU Lesser General Public
36    License along with this library; if not, write to the Free
37    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
38    MA 02111-1307, USA.
39  */
40
41 #ifndef __TLS_H_
42 #define __TLS_H_
43
44 /*
45  * Opaque TLS Context Structure.
46  * New TLS Connections are manufactured from this context.
47  */
48 typedef struct TLS_Context TLS_CONTEXT;
49
50 /* Opaque TLS Connection Structure */
51 typedef struct TLS_Connection TLS_CONNECTION;
52
53 /* PEM Decryption Passphrase Callback */
54 typedef int (TLS_PEM_PASSWD_CB) (char *buf, int size, const void *userdata);
55
56 #endif /* __TLS_H_ */