modify CertVerifier Class
* respond to multiple similar verification requests. * accept net error result as callback response.
This commit is contained in:
parent
d00a96ce35
commit
e29b64a18a
8 changed files with 199 additions and 33 deletions
|
@ -252,8 +252,14 @@ the original network configuration.
|
|||
* `proc` Function
|
||||
* `hostname` String
|
||||
* `certificate` [Certificate](structures/certificate.md)
|
||||
* `error` String - Verification result from chromium.
|
||||
* `callback` Function
|
||||
* `isTrusted` Boolean - Determines if the certificate should be trusted
|
||||
* `verificationResult` Integer - Value can be one of certificate error codes
|
||||
from [here](https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h).
|
||||
Apart from the certificate error codes, the following special codes can be used.
|
||||
* `0` - Indicates success and disables Certificate Transperancy verification.
|
||||
* `-2` - Indicates failure.
|
||||
* `-3` - Uses the verification result from chromium.
|
||||
|
||||
Sets the certificate verify proc for `session`, the `proc` will be called with
|
||||
`proc(hostname, certificate, callback)` whenever a server certificate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue