diff options
author | Quentin Rameau <quinq@fifth.space> | 2017-04-28 12:58:36 +0200 |
---|---|---|
committer | Quentin Rameau <quinq@fifth.space> | 2017-04-28 12:58:36 +0200 |
commit | 3c2c0a65250e1415124603cb8d91bff4a657d46a (patch) | |
tree | c0b9946ff328eb59532fddd6a9d3186adb76f3d3 /config.def.h | |
parent | eb32dd6eca5b6224bb5fb28cadef5bd035581ef3 (diff) | |
download | surf-3c2c0a65250e1415124603cb8d91bff4a657d46a.tar.gz surf-3c2c0a65250e1415124603cb8d91bff4a657d46a.tar.bz2 surf-3c2c0a65250e1415124603cb8d91bff4a657d46a.zip |
Add support for using custom certificates per url
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 712f975..9bdbe0c 100644 --- a/config.def.h +++ b/config.def.h @@ -3,12 +3,14 @@ static int surfuseragent = 1; /* Append Surf version to default WebKit user static char *fulluseragent = ""; /* Or override the whole user agent string */ static char *scriptfile = "~/.surf/script.js"; static char *styledir = "~/.surf/styles/"; +static char *certdir = "~/.surf/certificates/"; static char *cachedir = "~/.surf/cache/"; static char *cookiefile = "~/.surf/cookies.txt"; /* Webkit default features */ static Parameter defconfig[ParameterLast] = { SETB(AcceleratedCanvas, 1), + SETB(Certificate, 0), SETB(CaretBrowsing, 0), SETV(CookiePolicies, "@Aa"), SETB(DiskCache, 1), @@ -95,6 +97,15 @@ static SiteSpecific styles[] = { { ".*", "default.css" }, }; +/* certificates */ +/* + * Provide custom certificate for urls + */ +static SiteSpecific certs[] = { + /* regexp file in $certdir */ + { "://suckless\\.org/", "suckless.org.crt" }, +}; + #define MODKEY GDK_CONTROL_MASK /* hotkeys */ |