Factor ticket key manager into handler interface
Summary: I've created an abstract class called `OpenSSLTicketHandler` to which the server's ssl context dispatches ticket crypto preparation. This means that changing the configuration of how tickets are encrypted can be changed by using a different implementation of the handler. This abstraction is sort of broken by all the set and get APIs on the context that modify ticket secrets, rather than properly abstracting this detail into a concrete impl of the handler (e.g. a `TLSTicketKeyManager` can manage secrets from a file and not require users to pass all these secrets down from the acceptors). For now though we rely on (checked!) dynamic casts to get a `TLSTicketKeyManager` from which we can freely modify the secrets. Reviewed By: mingtaoy Differential Revision: D24686664 fbshipit-source-id: fb30941982fb3114e2aba531372a9d35ccc0ee48
Showing
Please register or sign in to comment