Update providedCiphersStr_ in one place.
authorXiangyu Bu <xbu@fb.com>
Tue, 11 Jul 2017 17:00:51 +0000 (10:00 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 11 Jul 2017 17:12:33 +0000 (10:12 -0700)
commit9d23df15330c1c21c4719bf0f05c04b21c5e6bb3
treecf838924b87275c1aa7eee3f5c2a0c2eada7d265
parent9b6eade1f3afa32adc9f7d56739b119f53168ccb
Update providedCiphersStr_ in one place.

Summary:
The function `setCipherList` seems to forget to update the data member
`providedCipherString_`. This diff updates `providedCiphersString_` at
a single place `setCiphersOrThrow()`, and adds two test cases to make
sure the derived `SSL*` uses the desired set of ciphers.

Reviewed By: yfeldblum

Differential Revision: D5372758

fbshipit-source-id: 8144ab3bc518b2b9fa8090af62f3bd6475bbbece
folly/io/async/SSLContext.cpp
folly/io/async/test/SSLContextTest.cpp [new file with mode: 0644]