Skip to content

Decorate crypto openssl errors with .code, .reason, ...

Crypto equivalent of this change to TLS: https://github.com/nodejs/node/pull/25093

** crypto: add openssl specific error properties

Don't force the user to parse the long-style OpenSSL error message, decorate the error with the library, reason, code, function.

** tls: return an OpenSSL error from renegotiate

A generic error lacks any of the context or detail of the underlying OpenSSL error, so throw from C++, and report the OpenSSL error to the callback.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading