Let SSLContext::setCipherList accept generic container type.
authorXiangyu Bu <xbu@fb.com>
Fri, 18 Aug 2017 23:35:27 +0000 (16:35 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 18 Aug 2017 23:49:54 +0000 (16:49 -0700)
commit0e0710e36a4350cbf7744cafc3cd688d61bb15f5
tree2d30d87ebe647e6adddc9d022d8a7860dec46e8b
parent389f2c456c3919d96a9fba4e1425decf827178b4
Let SSLContext::setCipherList accept generic container type.

Summary:
Make SSLContext::setCipherList() and SSLContext::setSignatureAlgorithms()
accept std::array besides std::vector so that cipher lists in SSLOptions
can be initialized POD.

Reviewed By: yfeldblum

Differential Revision: D5578758

fbshipit-source-id: 7e5c2e9a75600e93c89e7b13a9042434a4189384
folly/io/async/SSLContext.cpp
folly/io/async/SSLContext.h
folly/io/async/SSLOptions.cpp
folly/io/async/SSLOptions.h
folly/io/async/test/SSLContextTest.cpp
folly/io/async/test/SSLOptionsTest.cpp