Imported Upstream version 2.7
[ossec-hids.git] / src / os_auth / auth.h
1 /* @(#) $Id: ./src/os_auth/auth.h, 2011/09/08 dcid Exp $
2  */
3
4 /* Copyright (C) 2009 Trend Micro Inc.
5  * All rights reserved.
6  *
7  * This program is a free software; you can redistribute it
8  * and/or modify it under the terms of the GNU General Public
9  * License (version 2) as published by the FSF - Free Software
10  * Foundation
11  *
12  * In addition, as a special exception, the copyright holders give
13  * permission to link the code of portions of this program with the
14  * OpenSSL library under certain conditions as described in each
15  * individual source file, and distribute linked combinations
16  * including the two.
17  *
18  * You must obey the GNU General Public License in all respects
19  * for all of the code used other than OpenSSL.  If you modify
20  * file(s) with this exception, you may extend this exception to your
21  * version of the file(s), but you are not obligated to do so.  If you
22  * do not wish to do so, delete this exception statement from your
23  * version.  If you delete this exception statement from all source
24  * files in the program, then also delete it here.
25  *
26  */
27
28
29 #ifndef _AUTHD_H
30 #define _AUTHD_H
31
32 #ifndef ARGV0
33    #define ARGV0 "ossec-authd"
34 #endif
35
36 #include <unistd.h>
37 #include <fcntl.h>
38 #include <sys/types.h>
39 #include <sys/wait.h>
40
41 #ifdef USE_OPENSSL
42
43 void *os_ssl_keys(int isclient, char *dir);
44
45 #include <openssl/ssl.h>
46 #include <openssl/err.h>
47 #include <openssl/bio.h>
48 #include "os_net/os_net.h"
49 #include "addagent/manage_agents.h"
50
51 BIO *bio_err;
52 #define KEYFILE  "/etc/sslmanager.key"
53 #define CERTFILE  "/etc/sslmanager.cert"
54
55 #endif
56
57 #endif