Commit graph

2 commits

Author SHA1 Message Date
Jiawei Ou
3b8d48b87f Fix the build with OpenSSL.
CL https://webrtc-review.googlesource.com/c/src/+/66941/ removed a list of typedef which is not needed for BoringSSL but it is crucial for OpenSSL to compile. This CL add back on of those.

Bug: webrtc:9330
Change-Id: I32557bd437f71024af42d555382727de387e8d5f
Reviewed-on: https://webrtc-review.googlesource.com/79741
Reviewed-by: Benjamin Wright <benwright@webrtc.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23444}
2018-05-30 09:44:33 +00:00
Benjamin Wright
19aab2ee7c Refactor OpenSSLSessionCache out of OpenSSLAdapterFactory.
This changeset refactors the OpenSSLSessionCache out of the Factory. Instead of
directly injecting a pointer to the factory to each OpenSSLAdapter instead just
a pointer to the OpenSSLSessionCache is submitted which the Factory is the sole
owner of. This provides a cleaner dependency injection interface and allows the
OpenSSLSessionCache to be tested independently of the factory that uses it. It
also allows for the factories role to be more clearly defined allowing for
additional dependency injection in future updates.

This change also removes the habit of having OpenSSL typedefs around certain
functions and instead uses the standardised ossl_typ.h header which contains
these typedefs. This makes the headers more directly tied to just what they are
responsible for doing.

Bug: webrtc:9085
Change-Id: I7938178b70acc613856139d387a1b46928dca6ad
Reviewed-on: https://webrtc-review.googlesource.com/66941
Commit-Queue: Benjamin Wright <benwright@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22758}
2018-04-06 01:01:48 +00:00