Skip to content

crypto: fix error condition in Verify::VerifyFinal

Fail early if key parsing failed, don't try to construct a context out of it. Luckily, OpenSSL makes sure that we do not pass in a nullptr, so this is not a security issue. The observable behavior is still the same under certain assumptions about the error queue at the time, so it is difficult to add a test for this.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading