29bcb4a29b262d10dd5b8a442263967b465ebd2c |
|
05-Jul-2017 |
Adam Vartanian <flooey@gmail.com> |
Call free() if a new socket is immediately closed. (#241) Even though we haven't created any OpenSSL state, we've allocated some resources, including most importantly file descriptors in AppData, that need to be freed.
/external/conscrypt/common/src/main/java/org/conscrypt/ConscryptFileDescriptorSocket.java
|
f0e05d561147458e3a10b4806e24d0752dfd5d4b |
|
20-Jun-2017 |
Nathan Mittler <nathanmittler@google.com> |
Refactoring session management (#172) This change breaks session management into two distinct types: - SslSessionWrapper: These are created as BoringSSL calls back the new session handler, allowing the application to cache sessions. Clients will also offer these to BoringSSL for reuse if a compatible session was found. BoringSSL is free to use it or not, but the Conscrypt code no longer makes assumptions here. Instead, it always uses the ActiveSession. - ActiveSession: This is a session that wraps the SSL instance (rather than the SSL_SESSION wherever possible). That way no concern has to be paid to what BoringSSL is doing with sessions under the covers. Fixes #98
/external/conscrypt/common/src/main/java/org/conscrypt/ConscryptFileDescriptorSocket.java
|
1fb99943a57baa3deac7b90aac3721c2f71dfce2 |
|
13-Jun-2017 |
Kenny Root <kroot@google.com> |
Fix FD-based socket bug during interrupt If a socket were interrupted during a read or write, it would return without complaint. However, it should throw a SocketException. Check for the closed status upon return so we can throw a SocketException when needed.
/external/conscrypt/common/src/main/java/org/conscrypt/ConscryptFileDescriptorSocket.java
|
7140d87e131c800f8832a0ad6b35e825f5e9383a |
|
06-Jun-2017 |
Nathan Mittler <nathanmittler@google.com> |
Conformance fixes for the engine-based socket. (#202) This allows the SSLSocketTest to pass with the engine-based socket enabled. Also restructuring the inheritance hierarchy so that the FD and engine sockets both behave the same way (both either wrappers or not). The restructure involves the following: - AbstractConscryptSocket: New base class for both sockets. It handles the wrap/no-wrap logic. - OpenSSLSocketImplWrapper: deleted and replaced by AbstractConscryptSocket. - OpenSSLSocketImpl: reduced to a public shim class between AbstractConscryptSocket and the implementations. For backward-compat only. - ConscryptFileDescriptorSocket: Renamed from OpenSSLSocketImpl. The old FD socket.
/external/conscrypt/common/src/main/java/org/conscrypt/ConscryptFileDescriptorSocket.java
|