Move key-related warnings to common server code
[openafs.git] / src / auth / authcon.h
1 /*
2  * Copyright (c) 2020 Sine Nomine Associates. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in the
13  *    documentation and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR `AS IS'' AND ANY EXPRESS OR IMPLIED
16  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
17  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
18  * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
19  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
24  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  */
26
27 #ifndef OPENAFS_AUTH_AUTHCON_H
28 #define OPENAFS_AUTH_AUTHCON_H
29
30 /*
31  * authcon.h - Header for authcon.c-related items that are not public
32  * interfaces exported to outside the OpenAFS tree.
33  */
34
35 #include <afs/cellconfig.h>
36
37 struct afsconf_bsso_info {
38     struct afsconf_dir *dir;
39     void (*logger)(const char *format, ...);
40 };
41
42 void afsconf_BuildServerSecurityObjects_int(struct afsconf_bsso_info *info,
43                                             struct rx_securityClass ***classes,
44                                             afs_int32 *numClasses);
45
46 #endif /* OPENAFS_AUTH_AUTHCON_H */