Browse Source

[mod_secdownload] warn if SHA used w/o SSL crypto

issue warning at startup, instead of fatal error, if SHA used in
secdownload.algorithm = "..." but mod_secdownload was built without
SSL crypto.  When lighttpd is built without openssl, this allows most
tests/* to be run and pass, except the ones in tests/mod-secdownload.t
which use "hmac-sha1" or "hmac-sha256".

(alternatively, could have made, used isolated tests/secdownload.conf)
personal/stbuehler/mod-csrf
Glenn Strauss 5 years ago
parent
commit
17f6595e1a
  1. 2
      src/mod_secdownload.c

2
src/mod_secdownload.c

@ -324,8 +324,6 @@ SETDEFAULTS_FUNC(mod_secdownload_set_defaults) {
log_error_write(srv, __FILE__, __LINE__, "sb",
"unsupported secdownload.algorithm:",
algorithm);
buffer_free(algorithm);
return HANDLER_ERROR;
#endif
default:
break;

Loading…
Cancel
Save