diff options
author | Tobias Nießen <tniessen@tnie.de> | 2018-12-23 15:13:32 +0100 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2019-03-30 10:31:43 +0100 |
commit | 2e2c015422dce973f15acb42571486e4003efddb (patch) | |
tree | 8e40aee5afd38fb10a5ebe64447256689b7e288b /doc/api/errors.md | |
parent | 61ef9df958f98bed5159d9d4553ea5b2f894272f (diff) | |
download | android-node-v8-2e2c015422dce973f15acb42571486e4003efddb.tar.gz android-node-v8-2e2c015422dce973f15acb42571486e4003efddb.tar.bz2 android-node-v8-2e2c015422dce973f15acb42571486e4003efddb.zip |
crypto: decode missing passphrase errors
When a user attempts to load an encrypted key without supplying a
passphrase, a cryptic OpenSSL error is thrown. This change intercepts
the OpenSSL error and throws a nice error code instead.
PR-URL: https://github.com/nodejs/node/pull/25208
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Diffstat (limited to 'doc/api/errors.md')
-rw-r--r-- | doc/api/errors.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md index 44ec5548ae..2ad0bead8e 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1486,6 +1486,11 @@ a `dynamicInstantiate` hook. A `MessagePort` was found in the object passed to a `postMessage()` call, but not provided in the `transferList` for that call. +<a id="ERR_MISSING_PASSPHRASE"></a> +### ERR_MISSING_PASSPHRASE + +An attempt was made to read an encrypted key without specifying a passphrase. + <a id="ERR_MISSING_PLATFORM_FOR_WORKER"></a> ### ERR_MISSING_PLATFORM_FOR_WORKER |