Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-01Convert err_test to C++.David Benjamin
Another easy one. Doesn't actually buy us much. Change-Id: I166ae08e61c69bedea4de0a74ddd4dfc4699577d Reviewed-on: https://boringssl-review.googlesource.com/4129 Reviewed-by: Adam Langley <agl@google.com>
2015-02-02Remove string.h from base.h.Adam Langley
Including string.h in base.h causes any file that includes a BoringSSL header to include string.h. Generally this wouldn't be a problem, although string.h might slow down the compile if it wasn't otherwise needed. However, it also causes problems for ipsec-tools in Android because OpenSSL didn't have this behaviour. This change removes string.h from base.h and, instead, adds it to each .c file that requires it. Change-Id: I5968e50b0e230fd3adf9b72dd2836e6f52d6fb37 Reviewed-on: https://boringssl-review.googlesource.com/3200 Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
2015-01-06Test which direction ERR_get_error reads from the error queue.David Benjamin
ERR_get_error returns the least recent error, not the most recent error. Nothing in err_test was actually asserting on that. Change-Id: Ia49e29c231de4bbec77d037860ad1ffa8cce4779 Reviewed-on: https://boringssl-review.googlesource.com/2750 Reviewed-by: Adam Langley <agl@google.com>
2014-11-11Fix ownership of error data in ERR_peek_*.David Benjamin
The error queue should only take ownership of the data if ERR_get_* is called, not ERR_peek_*. Add a test for ERR_peek_error_line_data. Change-Id: I976fc90fb54437dff723418ef3afd94f1c967922 Reviewed-on: https://boringssl-review.googlesource.com/2237 Reviewed-by: Adam Langley <agl@google.com>
2014-10-10Fix err_test.David Benjamin
ERR_FLAG_MALLOCED is now masked and isn't returned through ERR_get_error_line_data. Change-Id: Ida633bf1a5ca01f563c1323dbdfb2433c2ab5159 Reviewed-on: https://boringssl-review.googlesource.com/1910 Reviewed-by: Adam Langley <agl@google.com>
2014-10-07Retain ownership of malloced error data.Adam Langley
I misunderstood the OpenSSL semantics here. When receiving an error data pointer via ERR_get_error_line_data and friends, although the error is cleared, OpenSSL retains ownership of the data pointer. It's kept in the cleared error until another error overrides it, or the whole error queue is cleared. It's pretty odd to have live pointers in empty errors so this change allows an error queue to retain one data pointer. Thus the pointer returned from ERR_get_error_line_data is valid until the next call to ERR_get_error_line_data, or until the queue is freed. From reviewing uses of the API, this is sufficient for all of them. Change-Id: I73cb8e9c792452ae3c1a934ac8bbe8b5353b65b2 Reviewed-on: https://boringssl-review.googlesource.com/1880 Reviewed-by: Adam Langley <agl@google.com>
2014-09-12Add a CRYPTO_library_init and static-initializer-less build option.David Benjamin
Chromium does not like static initializers, and the CPU logic uses one to initialize CPU bits. However, the crypto library lacks an explicit initialization function, which could complicate (no compile-time errors) porting existing code which uses crypto/, but not ssl/. Add an explicit CRYPTO_library_init function, but make it a no-op by default. It only does anything (and is required) if building with BORINGSSL_NO_STATIC_INITIALIZER. Change-Id: I6933bdc3447fb382b1f87c788e5b8142d6f3fe39 Reviewed-on: https://boringssl-review.googlesource.com/1770 Reviewed-by: Adam Langley <agl@google.com>
2014-08-21Convert all zero-argument functions to '(void)'David Benjamin
Otherwise, in C, it becomes a K&R function declaration which doesn't actually type-check the number of arguments. Change-Id: I0731a9fefca46fb1c266bfb1c33d464cf451a22e Reviewed-on: https://boringssl-review.googlesource.com/1582 Reviewed-by: Adam Langley <agl@google.com>
2014-08-12Fix err_test.Adam Langley
I forgot to commit before landing the last change and still had this outstanding in my client. Change-Id: Ie1f533e671be130f738d562b129b5151b7be9c1e
2014-08-12Add ERR_remove_thread_state (for Android).Adam Langley
Change-Id: I908d207ccd3d529ec09c687effc2aeb4631127d9 Reviewed-on: https://boringssl-review.googlesource.com/1470 Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
2014-06-21Inital import.Adam Langley
Initial fork from f2d678e6e89b6508147086610e985d4e8416e867 (1.0.2 beta). (This change contains substantial changes from the original and effectively starts a new history.)