Fix some implicit truncations in the interaction with OpenSSL APIs
authorChristopher Dykes <cdykes@fb.com>
Wed, 7 Dec 2016 22:16:59 +0000 (14:16 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Wed, 7 Dec 2016 22:23:35 +0000 (14:23 -0800)
commit68112fa0fbddb74381af74fc40c563b5c054cb35
treeb244d643a2fc4be6a11624a19cbc959117cb4dea
parentc9fc2e3200eaa8fde46f7a31447d278325bebd3b
Fix some implicit truncations in the interaction with OpenSSL APIs

Summary: MSVC has the ability to warn about implicit truncations and places where implicit sign coercions are occuring, so do some cleanup to make it possible to compile with the warnings enabled.

Reviewed By: yfeldblum

Differential Revision: D4288028

fbshipit-source-id: f8330c62b2dcb76f696dfc47888f0e3e1eefc21a
folly/io/async/SSLContext.cpp
folly/io/async/ssl/OpenSSLUtils.cpp
folly/ssl/OpenSSLHash.h
folly/ssl/detail/SSLSessionImpl.cpp