diff options
author | Stephen Gregoratto <dev@sgregoratto.me> | 2021-10-15 17:30:42 +1100 |
---|---|---|
committer | omar-polo <op@omarpolo.com> | 2021-10-15 09:58:23 +0200 |
commit | ff05125eb81e5bbf2cf05b8434d03bce584936e0 (patch) | |
tree | 85e6c01c598668d3c8bbc2247d93db883451737b /parse.y | |
parent | 387b976b99496c76d54831c44fb4c218e896c359 (diff) |
Implement OCSP stapling support
Currently dogfooding this patch at gemini.sgregoratto.me. To test,
run the following command and look for the "OCSP response" header:
openssl s_client -connect "gemini.sgregoratto.me:1965" -status
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -120,7 +120,7 @@ typedef struct { %token KEY %token LANG LOCATION LOG %token MAP MIME -%token OFF ON +%token OCSP OFF ON %token PARAM PORT PREFORK PROTOCOLS %token REQUIRE RETURN ROOT %token SERVER SPAWN STRIP @@ -271,6 +271,10 @@ servopt : ALIAS string { only_once(host->key, "key"); host->key = ensure_absolute_path($2); } + | OCSP string { + only_once(host->ocsp, "ocsp"); + host->ocsp = ensure_absolute_path($2); + } | PARAM string '=' string { add_param($2, $4, 0); } @@ -397,6 +401,7 @@ static struct keyword { {"log", LOG}, {"map", MAP}, {"mime", MIME}, + {"ocsp", OCSP}, {"off", OFF}, {"on", ON}, {"param", PARAM}, |