]> git.kaiwu.me - nginx.git/commit
SSL: fixed possible configuration overwrite loading "engine:" keys.
authorSergey Kandaurov <pluknet@nginx.com>
Fri, 3 May 2024 16:29:01 +0000 (20:29 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Fri, 3 May 2024 16:29:01 +0000 (20:29 +0400)
commit6f7494081ae8a56664afb480eff583d639b60ab4
tree6c58c150a6d87aee5cc7d16113fb3bd31200366e
parenta7e3cd52e0a03286267177aa9b88d64232fbaeaf
SSL: fixed possible configuration overwrite loading "engine:" keys.

When loading certificate keys via ENGINE_load_private_key() in runtime,
it was possible to overwrite configuration on ENGINE_by_id() failure.
OpenSSL documention doesn't describe errors in details, the only reason
I found in the comment to example is when the engine is not available.
src/event/ngx_event_openssl.c