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-01-06Rename hexdump to hexdump_write.Adam Langley
It's a static function anyway so it doesn't affect anything and it's colliding with a debugging function on one platform. Change-Id: Iae0595cce7cb2bdd4c56217f6f1de51ff3134a8b Reviewed-on: https://boringssl-review.googlesource.com/2630 Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
2014-12-01Fix bio_test.c build on Windows.David Benjamin
MSVC does not allow pointer arithmetic on void* pointers. Also fix some style issues around whether * hugs the type or the variable name. Change-Id: I40cc1627830b37879fd70e2b688a42df62b6c62a Reviewed-on: https://boringssl-review.googlesource.com/2452 Reviewed-by: Adam Langley <agl@google.com>
2014-11-24Cleanup of setting external bufferHåvard Molland
Don't use |BIO_set_foo_buffer_size| when setting the sizes of the buffers while making buffer pair. Since it happens in pair.c we know the BIOs are BIO pairs and using bio_ctrl here complicates setting external buffers. Also zero out bio_bio_st during construction. This fixes a problem that would happen if the default buffer sizes were not set, since buf_externally_allocated was not yet initialized. Remove BIO_C_SET_BUFF_SIZE and BIO_CTRL_RESET which are not used for bio pairs. Change-Id: I365091d5f44f6f1c5522c325a771bdf03d8fe950 Reviewed-on: https://boringssl-review.googlesource.com/2370 Reviewed-by: Adam Langley <agl@google.com>
2014-11-19Add zero copy read and write api for bio pairs.Håvard Molland
Also add functionality for setting external buffers to give the caller better control of the buffers. This is typical needed if OS sockets can outlive the bio pair. Change-Id: I500f0c522011ce76e9a9bce5d7b43c93d9d11457
2014-10-30Fix standalone bio_test and v3name_test on Win64.David Benjamin
Win32 still has assembly issues and bssl wants to select() on both sockets and stdin (doesn't work on Windows). But this is a start. Change-Id: Iafc5215be281aed836c5ac2dc8b379399848a2c2 Reviewed-on: https://boringssl-review.googlesource.com/2090 Reviewed-by: Adam Langley <agl@google.com>
2014-10-03Fix NaCl build.Adam Langley
NaCl defines _POSIX_C_SOURCE on the command line for some reason, thus we have to be defensive about defining it. Change-Id: Icbc8afcb1ac0e0ca23b788b11ea911c3f55a8b7f Reviewed-on: https://boringssl-review.googlesource.com/1891 Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
2014-10-03Use _POSIX_C_SOURCE not _BSD_SOURCE.Adam Langley
_BSD_SOURCE has been deprecated (see bug). The manpage for printf suggests that any _POSIX_C_SOURCE >= 200112L is also sufficient to bring in the needed declarations and the bug reporter confirms that it's sufficient for him. https://code.google.com/p/chromium/issues/detail?id=419859 Change-Id: Ifc053f11c5aa1df35aae8e952d2c73a7f4599ec2 Reviewed-on: https://boringssl-review.googlesource.com/1890 Reviewed-by: Adam Langley <agl@google.com>
2014-10-01Fix bio_test on Windows.David Benjamin
Winsock needs to be initialized. Also, perror doesn't do anything useful and read/recv aren't interchangeable. Change-Id: Ic9dfd6907b7b0d396eafe72072a29d027b66bc0c Reviewed-on: https://boringssl-review.googlesource.com/1871 Reviewed-by: Adam Langley <agl@google.com>
2014-10-01Fix BIO_printf on Windows.David Benjamin
vsnprintf returns -1 on Windows on truncation, not the needed size. Change-Id: I0a9f32504127b2fb740244c3b59132e201d14234 Reviewed-on: https://boringssl-review.googlesource.com/1870 Reviewed-by: Adam Langley <agl@google.com>
2014-10-01Account for Windows and UNIX socket API differences.David Benjamin
close is closesocket. Also some of the headers are different and inet_aton should be inet_pton. Change-Id: I9eee0880d91833bdd3bcf0f2a352923c9fb1a891 Reviewed-on: https://boringssl-review.googlesource.com/1864 Reviewed-by: Adam Langley <agl@google.com>
2014-09-19Add misc functions for easier porting.Adam Langley
Android requested that the wpa_supplicant go upstream. This change adds some dummy functions and reinstates DSA_dup_DH in order to make the diff smaller and easier for upstream. Change-Id: I77ac271b8652bae5a0bbe16afde51d9096f3dfb5 Reviewed-on: https://boringssl-review.googlesource.com/1740 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-09-03Fix minor issues found by Clang's analysis.Adam Langley
Thanks to Denis Denisov for running the analysis. Change-Id: I80810261e013423e746fd8d8afefb3581cffccc0 Reviewed-on: https://boringssl-review.googlesource.com/1701 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-18Include Windows.h in some source files.Yoshisato Yanagisawa
https://code.google.com/p/chromium/issues/detail?id=399172#c3 Change-Id: Ie5447f0d6901d802698eabadf3bd5d42d75f588d
2014-08-14Recover BIO_number_{read|written}.Adam Langley
Android needs it. These functions were removed in the move to BoringSSL. Change-Id: Ice24a0a1c390930cf07dbd00f72a3e12e6c241f9 Reviewed-on: https://boringssl-review.googlesource.com/1510 Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
2014-08-12Windows build fixes.Adam Langley
Windows doesn't have ssize_t, sadly. There's SSIZE_T, but defining an OPENSSL_SSIZE_T seems worse than just using an int. Change-Id: I09bb5aa03f96da78b619e551f92ed52ce24d9f3f Reviewed-on: https://boringssl-review.googlesource.com/1352 Reviewed-by: Adam Langley <agl@google.com>
2014-08-05Fix C99-ism in bio_test.c.David Benjamin
Change-Id: I7cd91d79f3a014de367976318c860914dd4c2f49 Reviewed-on: https://boringssl-review.googlesource.com/1392 Reviewed-by: Adam Langley <agl@google.com>
2014-08-05Fix BIO_printf crash on Mac.David Benjamin
A single va_list may not be used twice. Nothing calls BIO_vprintf and it just (v)snprintfs into a buffer anyway, so remove it. If it's actually needed, we can fiddle with va_copy and the lack of it in C89 later, but anything that actually cares can just assemble the output externally. Add a test in bio_test.c. BUG=399546 Change-Id: Ia40a68b31cb5984d817e9c55351f49d9d6c964c1 Reviewed-on: https://boringssl-review.googlesource.com/1391 Reviewed-by: Adam Langley <agl@google.com>
2014-07-18Have BIO_get_mem_data return a size_t and uint8_t*Adam Langley
Change-Id: I883f9c3527b572a2140ae4899cf4409cdc25c6dc Reviewed-on: https://boringssl-review.googlesource.com/1261 Reviewed-by: Adam Langley <agl@google.com>
2014-07-18Preserve the address length in bio/connect.c.David Benjamin
On OS X, the length must be the length of the address and not of sockaddr_storage. Change-Id: Id962f2f3268f07327724b9867a83c15ec50cb9fd Reviewed-on: https://boringssl-review.googlesource.com/1251 Reviewed-by: Adam Langley <agl@google.com>
2014-07-16Add functions for setting a BIO callback and arg.Adam Langley
These were omitted, but are needed by Chromium now. Change-Id: I17e1672674311c8dc2ede21539c82b8e2e50f376 Reviewed-on: https://boringssl-review.googlesource.com/1201 Reviewed-by: Adam Langley <agl@google.com>
2014-07-15Move public headers to include/openssl/Adam Langley
Previously, public headers lived next to the respective code and there were symlinks from include/openssl to them. This doesn't work on Windows. This change moves the headers to live in include/openssl. In cases where some symlinks pointed to the same header, I've added a file that just includes the intended target. These cases are all for backwards-compat. Change-Id: I6e285b74caf621c644b5168a4877db226b07fd92 Reviewed-on: https://boringssl-review.googlesource.com/1180 Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
2014-07-11Support building with PNaCl.Adam Langley
PNaCl needs OPENSSL_NO_ASM to work and a couple of cases were missing because it hasn't previously been tested. Additionally, it defined _BSD_SOURCE and others on the command line, causing duplicate definition errors when defined in source code. It's missing readdir_r. It uses newlib, which appears to use u_short in socket.h without ever defining it. Change-Id: Ieccfc7365723d0521f6327eebe9f44a2afc57406 Reviewed-on: https://boringssl-review.googlesource.com/1140 Reviewed-by: Adam Langley <agl@google.com>
2014-06-26Add ISC header to a handful of files.Adam Langley
A handful of new files were missing the ISC license header. Change-Id: I44507dd1361b0348d8e0e1bf12d38072030af53d
2014-06-21ChannelID support.Adam Langley
Implement ChannelID as both a client and server.
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.)