QDNix
Quick’n’dirty *NIX
geminid.h
1
#ifndef QDNIX_GEMINID_H
2
# define QDNIX_GEMINID_H 1
3
4
# include <stdint.h>
5
# include <openssl/ssl.h>
6
7
# ifndef GEMINID_VERSION
8
# define GEMINID_VERSION "1.0"
9
# endif
/* !GEMINID_VERSION */
10
11
# define MAX_CLIENTS 15
12
# define MAX_BUFFER 1024
13
14
SSL_CTX *create_tls_context(
const
char
*cert_file,
const
char
*key_file);
15
void
tls_init(
void
);
16
17
int
server(
const
char
*srv_dir, uint16_t port,
18
const
char
*cert_file,
const
char
*key_file);
19
void
gemini_protocol_handler(SSL *client,
const
char
*srv_dir);
20
21
#endif
/* !QDNIX_GEMINID_H */
sbin
geminid
geminid.h
Generated by
1.9.1