commit | 22ae0b8577c2ae224df4df5d157c9c226395e6c6 | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@google.com> | Tue May 15 12:00:01 2018 -0400 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Tue May 15 23:41:32 2018 +0000 |
tree | 461824fa62fc565d9d4e2e5685830bd1715bea00 | |
parent | 910320a3a083a883dc9962f9368cd12efdbdc2b0 [diff] |
Try both null and empty passwords when decoding PKCS#12. PKCS#12 encodes passwords as NUL-terminated UCS-2, so the empty password is encoded as {0, 0}. Some implementations use the empty byte array for "no password". OpenSSL considers a non-NULL password as {0, 0} and a NULL password as {}. It then, in high-level PKCS#12 parsing code, tries both options. Match this behavior to appease pyOpenSSL's tests. Change-Id: I07ef91d54454b6f2647f86b7eb9b13509b2876d3 Reviewed-on: https://boringssl-review.googlesource.com/28550 Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
BoringSSL is a fork of OpenSSL that is designed to meet Google's needs.
Although BoringSSL is an open source project, it is not intended for general use, as OpenSSL is. We don't recommend that third parties depend upon it. Doing so is likely to be frustrating because there are no guarantees of API or ABI stability.
Programs ship their own copies of BoringSSL when they use it and we update everything as needed when deciding to make API changes. This allows us to mostly avoid compromises in the name of compatibility. It works for us, but it may not work for you.
BoringSSL arose because Google used OpenSSL for many years in various ways and, over time, built up a large number of patches that were maintained while tracking upstream OpenSSL. As Google's product portfolio became more complex, more copies of OpenSSL sprung up and the effort involved in maintaining all these patches in multiple places was growing steadily.
Currently BoringSSL is the SSL library in Chrome/Chromium, Android (but it's not part of the NDK) and a number of other apps/programs.
There are other files in this directory which might be helpful: