commit | e2c083dfd6441c34dc3b99696c6fb4fb7c628941 | [log] [tgz] |
---|---|---|
author | Matthew Braithwaite <mab@google.com> | Fri Jan 06 13:35:32 2017 -0800 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Tue Jan 10 23:32:12 2017 +0000 |
tree | cc0f59fa551634a3f425b10dfc89ba8c32c6b60d | |
parent | 7c7ab217815c01bab0e961ea5bf7cf0ebb63f19c [diff] |
ASN1_UTCTIME_print: fix, comment, test. The motiviation is that M2Crypto passes an ASN1_GENERALIZEDTIME to this function. This is not distinct from ASN1_UTCTIME (both are asn1_string_st), but ASN1_GENERALIZEDTIME uses a 4-digit year in its string representation, whereas ASN1_UTCTIME uses a 2-digit year. ASN1_UTCTIME_print previously did not return an error on such inputs. So, stricten (?) the function, ensuring that it checks for trailing data, and rejects values that are invalid for their place. Along the way, clean it up and add tests. Change-Id: Ia8298bed573f2acfdab96638ea69c78b5bba4e4b Reviewed-on: https://boringssl-review.googlesource.com/13082 Reviewed-by: Adam Langley <alangley@gmail.com> Commit-Queue: Adam Langley <alangley@gmail.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
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: