Uh oh!
There was an error while loading. Please reload this page.
src: make root_cert_vector function scoped - #12788
Conversation
root_cert_vector currently has file scope and external linkage, but is only used in the NewRootCertsStore function. If this is not required to be externally linked perhaps it can be changed to be static and function scoped instead.
danbev
commented
May 2, 2017
addaleax
commented
May 2, 2017
LGTM but it might be good for somebody from @nodejs/crypto to confirm that this is really really safe ;) |
shigeki
left a comment
There was a problem hiding this comment.
I've confirmed that it is initialized with builtin root certs only at the first time and works fine. LGTM.
danbev
commented
May 4, 2017
test/windows-fanned does not look related to this: not ok 356 sequential/test-benchmark-child-process --- duration_ms: 60.128 severity: fail stack: |- timeout |
root_cert_vector currently has file scope and external linkage, but is only used in the NewRootCertsStore function. If this is not required to be externally linked perhaps it can be changed to be static and function scoped instead. PR-URL: nodejs#12788 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>
danbev
commented
May 4, 2017
Landed in d0c968e |
refack
commented
May 4, 2017
Yep, related to #12821 |
root_cert_vector currently has file scope and external linkage, but is only used in the NewRootCertsStore function. If this is not required to be externally linked perhaps it can be changed to be static and function scoped instead. PR-URL: nodejs#12788 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>
gibfahn
commented
Jun 18, 2017
Is this okay for v6.x? It cherry-picks cleanly if so. |
sam-github
commented
Jul 21, 2017
@addaleax why not land? not necessary? #13194 would cherry-pick clean if this was landed, and this still cherry picks clean @MylesBorins I recommend landing #12788 and then #13194, no conflicts if you do it in that order. |
addaleax
commented
Jul 21, 2017
Yes, in combination with a tiny chance of breakage. I assume it’s a good sign nobody complained about this change, so I don’t feel strongly. :) |
root_cert_vector currently has file scope and external linkage, but is only used in the NewRootCertsStore function. If this is not required to be externally linked perhaps it can be changed to be static and function scoped instead. PR-URL: #12788 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>
sam-github
commented
Jul 21, 2017
@addaleax OK, wanted to make sure there wasn't some more fundamental problem with it. landed on v6.x-staging, @nodejs/backporting |
root_cert_vector currently has file scope and external linkage, but is only used in the NewRootCertsStore function. If this is not required to be externally linked perhaps it can be changed to be static and function scoped instead. PR-URL: #12788 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>
root_cert_vector currently has file scope and external linkage, but is only used in the NewRootCertsStore function. If this is not required to be externally linked perhaps it can be changed to be static and function scoped instead. PR-URL: #12788 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>
root_cert_vector currently has file scope and external linkage, but is
only used in the NewRootCertsStore function. If this is not required to
be externally linked perhaps it can be changed to be static and function
scoped instead.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
src