Closed
Bug 1341290
Opened 8 years ago
Closed 8 years ago
Upgrade OpenSSL for use with WebPush.
Categories
(Firefox for iOS :: Sync, defect)
Tracking
()
RESOLVED
FIXED
Iteration:
1.16
People
(Reporter: jhugman, Assigned: jhugman)
References
Details
Attachments
(1 file)
No description provided.
Assignee | ||
Comment 1•8 years ago
|
||
Using ecec, which depends on OpenSSL version 1.1.0+.
Blocks: 1333767
Assignee | ||
Comment 2•8 years ago
|
||
Assignee: nobody → jhugman
Status: NEW → ASSIGNED
Attachment #8840867 -
Flags: review?(sleroux)
Attachment #8840867 -
Flags: review?(rnewman)
Comment 3•8 years ago
|
||
Comment on attachment 8840867 [details] [review]
Link to Github pull-request: https://github.com/mozilla-mobile/firefox-ios/pull/2457
I think Steph's review for this is sufficient.
Attachment #8840867 -
Flags: review?(rnewman)
Comment 4•8 years ago
|
||
I added review notes mostly about checking return values of OpenSSL functions.
One thing that I am a bit worried about is the fact that we don't seem to initialize the OpenSSL library. The OpenSSL wiki says:
"If you fail to initialize the library, then you will experience unexplained errors like SSL_CTX_new returning NULL, error messages like SSL_CTX_new:library has no ciphers and alert handshake failure with no shared ciphers."
and suggests:
"If you are using OpenSSL 1.0.2 or below, then you would use SSL_library_init. If you are using OpenSSL 1.1.0 or above, then you would use OPENSSL_init_ssl. "
See https://wiki.openssl.org/index.php/Library_Initialization
We only use the libcrypto part of OpenSSL, so I am not sure if this is problematic or not. It is unclear if we need to do anything at all.
Assignee | ||
Comment 5•8 years ago
|
||
Pre-upgrade, we were initializing OPENSSL_init_ssl only as part of sqlcipher initialization. This remains the same following the upgade.
However, as per https://wiki.openssl.org/index.php/Library_Initialization#libcrypto_Initialization
> libcrypto should be initialized with calls to OpenSSL_add_all_algorithms and ERR_load_crypto_strings.
We should probably be doing this, independently of sqlcipher initialization.
Comment 6•8 years ago
|
||
Comment on attachment 8840867 [details] [review]
Link to Github pull-request: https://github.com/mozilla-mobile/firefox-ios/pull/2457
Looked over the PR and looks OK by me but :st3fan is the expert here so deferring to him :)
Attachment #8840867 -
Flags: review?(sleroux) → review?(sarentz)
Assignee | ||
Updated•8 years ago
|
Iteration: --- → 1.16
Comment 8•8 years ago
|
||
Comment on attachment 8840867 [details] [review]
Link to Github pull-request: https://github.com/mozilla-mobile/firefox-ios/pull/2457
LGTM If the unit tests are all green, land it on master please.
Flags: needinfo?(sarentz)
Attachment #8840867 -
Flags: review?(sarentz) → review+
Assignee | ||
Comment 9•8 years ago
|
||
Merged.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•