Uh oh!
There was an error while loading. Please reload this page.
src: merge SSLWrap with TLSWrap - #22344
Conversation
`SSLWrap` was introduced in b9a0eb0, but the only other C++ class to "inherit" from `SSLWrap` went away in 9301b8a. Since all of this API is already part of `TLSWrap`, move everything to that class. This also helps move a decent amount of functionality out of `node_crypto` to a "better" place within C++ land.
nodejs-github-bot
commented
Aug 15, 2018
@maclover7 sadly an error occured when I tried to trigger a build :( |
addaleax
commented
Aug 15, 2018
@maclover7 This is … a big diff. The original conceptual distinction did make sense – SSLWrap contains everything related to properties of OpenSSL SSL streams, whereas TLSWrap is concerned with translating to the underlying stream and back (that the naming does not reflect this is indeed regrettable). I’ve thought about doing this merge, but I think it mostly makes |
maclover7
commented
Aug 15, 2018
@addaleax Yeah... I figured I'd open up this PR to at least have a discussion. Part of the issue is that the way things are currently broken up among the two files is kinda bad, but when you put everything together, it's somewhat better since an abstraction is gone, but also a little worse, since everything is in one big file now. |
apapirovski
commented
Aug 16, 2018
I think having it in two files and separated makes sense in my mind. They do two different things and it makes a very complex part of the codebase a bit easier to understand, IMO. |
jasnell
commented
Aug 16, 2018
Oy, hmmm... like @addaleax and @apapirovski ... I think I prefer them separated out. |
maclover7
commented
Aug 24, 2018
Consensus is -1 for now, will close this out :) |
Building on nodejs#23269, if multiple ICU download URLs are present, try the next one in case of error. Part of the ICU 63.1 bump, but independent code-wise. nodejs#23244 PR-URL: nodejs#23715Fixes: nodejs#22344 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
- Full release notes: http://site.icu-project.org/download/63Fixes: nodejs#22344 PR-URL: nodejs#23715 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Building on #23269, if multiple ICU download URLs are present, try the next one in case of error. Part of the ICU 63.1 bump, but independent code-wise. #23244 PR-URL: #23715Fixes: #22344 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
- Full release notes: http://site.icu-project.org/download/63Fixes: #22344 PR-URL: #23715 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
- Full release notes: http://site.icu-project.org/download/63Fixes: nodejs#22344 PR-URL: nodejs#23715 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
srl295
commented
Mar 2, 2019
^ oops, I had referenced this issue in commits instead of #23244 — sorry for the noise. |
Building on #23269, if multiple ICU download URLs are present, try the next one in case of error. Part of the ICU 63.1 bump, but independent code-wise. #23244 PR-URL: #23715Fixes: #22344 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
- Full release notes: http://site.icu-project.org/download/63Fixes: #22344 PR-URL: #23715 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Building on #23269, if multiple ICU download URLs are present, try the next one in case of error. Part of the ICU 63.1 bump, but independent code-wise. #23244 PR-URL: #23715Fixes: #22344 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
- Full release notes: http://site.icu-project.org/download/63Fixes: #22344 PR-URL: #23715 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Building on #23269, if multiple ICU download URLs are present, try the next one in case of error. Part of the ICU 63.1 bump, but independent code-wise. #23244 PR-URL: #23715Fixes: #22344 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
- Full release notes: http://site.icu-project.org/download/63Fixes: #22344 PR-URL: #23715 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Building on nodejs#23269, if multiple ICU download URLs are present, try the next one in case of error. Part of the ICU 63.1 bump, but independent code-wise. nodejs#23244 PR-URL: nodejs#23715Fixes: nodejs#22344 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> (cherry picked from commit d8f2d27)
SSLWrapwas introduced in b9a0eb0,but the only other C++ class to "inherit" from
SSLWrapwent away in9301b8a. Since all of this API is
already part of
TLSWrap, move everything to that class. This alsohelps move a decent amount of functionality out of
node_cryptotoa "better" place within C++ land. Also, just personally, this extra layer of indirection kinda confused me.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes