-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Exposing pkey, cert from crypto context to js land #4070
Conversation
Why not just |
@ssuda Can you fix the style issues first? |
Styling issues were fixed |
@bnoordhuis please review this |
|
||
|
||
void SecureContext::SetCert(Local<String> property, Local<Value> value, | ||
const AccessorInfo& info) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style: if arguments don't fit on a single line, make them line up, one per line.
Some style issues but the basic concept seems sound. I agree with @indutny though, it should use functions instead of a getter/setter. |
This will solve exposing pkey, cert from pkcs12/pfx to js
@bnoordhuis, style issues were fixed. To make them enumerable I am going with properties rather than Get/Set functions |
That's very much unlike anything else in the crypto API. |
I agree with @bnoordhuis and @indutny here. No magic getter/setter accessors. We do those sorts of shenanigans as a last resort only. Put that in a userland JS module if you'd prefer that style. |
Can one of the admins verify this patch? |
Closing this -- the patch is way out of date with the v0.12 branch. |
This will solve exposing pkey, cert from pkcs12/pfx to js
issue #4050