Subversion Repositories Tewi

Rev

Rev 18 | Rev 21 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 19
Line 1... Line 1...
1
/* $Id: tw_config.h 18 2024-09-14 00:42:40Z nishi $ */
1
/* $Id: tw_config.h 19 2024-09-14 00:51:41Z nishi $ */
2
 
2
 
3
#ifndef __TW_CONFIG_H__
3
#ifndef __TW_CONFIG_H__
4
#define __TW_CONFIG_H__
4
#define __TW_CONFIG_H__
5
 
5
 
6
#include <stdint.h>
6
#include <stdint.h>
Line 12... Line 12...
12
struct tw_config_entry {
12
struct tw_config_entry {
13
	char* name;
13
	char* name;
14
	int port;
14
	int port;
15
	char* sslkey;
15
	char* sslkey;
16
	char* sslcert;
16
	char* sslcert;
-
 
17
	char* root;
17
};
18
};
18
 
19
 
19
struct tw_config {
20
struct tw_config {
20
	uint64_t ports[MAX_PORTS + 1]; /* If port & (1 << 32) is non-zero, it is SSL */
21
	uint64_t ports[MAX_PORTS + 1]; /* If port & (1 << 32) is non-zero, it is SSL */
21
	char hostname[1025];
22
	char hostname[1025];