}
set extra(outside) {}
-set privkey(inside) test-example/inside.key
-set privkey(outside) test-example/outside.key
+set privkey(inside) test-example/inside.privkeys/
+set privkey(outside) test-example/outside.privkeys/
+
+proc sitesconf_hook {l} { return $l }
proc mkconf {location site} {
global tmp
"
switch -glob $privkey {
*/ {
+ set sitesconf sites.conf
append cfg "
key-cache priv-cache({
privkeys \"$builddir/${privkey}priv.\";
"
}
* {
+ set sitesconf sites-nonego.conf
append cfg "
local-key rsa-private(\"$builddir/$privkey\");
"
}
}
+ set sitesconf $builddir/test-example/$sitesconf
append cfg $extra($site)
append cfg "
file delete -force $pubkeys
exec cp -rl $builddir/test-example/pubkeys $pubkeys
- set f [open $builddir/test-example/sites.conf r]
+ set f [open $sitesconf r]
while {[gets $f l] >= 0} {
regsub {\"[^\"]*test-example/pubkeys/} $l "\"$pubkeys/" l
+ set l [sitesconf_hook $l]
append cfg $l "\n"
}
set sites [read $f]
foreach k [array names env] {
switch -glob $k {
SECNET_STEST_DIVERT_* -
- SECNET_TEST_BUILDDIR { }
+ SECNET_TEST_BUILDDIR - OLD_SECNET_DIR { }
*SECNET* -
*PRELOAD* { puts -nonewline " $k=$env($k)" }
}