-
Notifications
You must be signed in to change notification settings - Fork 5
/
certs.h
39 lines (26 loc) · 1.06 KB
/
certs.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
typedef int CertLevel;
#define CERT_LEVEL_NONE 0
#define CERT_STYLE_LARGE "h2"
#define CERT_STYLE_MEDIUM "h4"
#define CERT_STYLE_SMALL "div"
typedef const char * CertStyle;
int
virgule_cert_num_levels (VirguleReq *vr);
CertLevel
virgule_cert_level_from_name (VirguleReq *vr, const char *name);
const char *
virgule_cert_level_to_name (VirguleReq *vr, CertLevel level);
int
virgule_cert_verify_outbound (VirguleReq *vr, apr_pool_t *p, const char *issuer, const char *subject, const char *level, const char *date);
int
virgule_cert_verify_inbound (VirguleReq *vr, apr_pool_t *p, const char *subject, const char *issuer, const char *level, const char *date);
CertLevel
virgule_cert_get (VirguleReq *vr, const char *issuer, const char *subject);
int
virgule_cert_set (VirguleReq *vr, const char *issuer, const char *subject, CertLevel level);
CertLevel
virgule_render_cert_level_begin (VirguleReq *vr, const char *user, CertStyle cs);
void
virgule_render_cert_level_end (VirguleReq *vr, CertStyle cs);
void
virgule_render_cert_level_text (VirguleReq *vr, const char *user);