forked from mozilla/mwos-letsencrypt-2015
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ngx_http_acme_module.h
49 lines (40 loc) · 1.09 KB
/
ngx_http_acme_module.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* ngx_http_acme_module.h
*
* Created on: Feb 26, 2016
* Author: klaus
*/
#ifndef NGX_HTTP_ACME_MODULE_H_
#define NGX_HTTP_ACME_MODULE_H_
/*
* Makros which could also form config directives later
*/
#define ACME_DIR "acme"
#define ACME_LIVE_DIR "live"
#define ACME_CERT_TRUSTED "chain.pem"
#define ACME_CERT_KEY "privkey.pem"
#define ACME_CERT "fullchain.pem"
#define ACME_ACCOUNT_RSA_BITS 2048
#define ACME_ACCOUNT_RSA_EXP "65537"
#define ACME_SERVER_DOMAIN "acme-staging.api.letsencrypt.org"
#define ACME_SERVER "https://" ACME_SERVER_DOMAIN
typedef enum {
GET,
POST
} ngx_http_acme_http_method_t;
/* linked-dictionary structure */
typedef struct ngx_http_acme_sdict {
char *key;
size_t key_len;
char *value;
size_t value_len;
struct ngx_http_acme_sdict *next;
} ngx_http_acme_sdict_t;
/* linked-list structure */
typedef struct ngx_http_acme_slist {
char *value;
size_t value_len;
struct ngx_http_acme_slist *next;
} ngx_http_acme_slist_t;
#define ngx_string_dynamic(str) { strlen(str), (u_char *) str }
#endif /* NGX_HTTP_ACME_MODULE_H_ */