Conversation
Signed-off-by: goenning <me@goenning.net>
|
will work on fixing tests soon, just wanted to get your thoughts on the options |
|
Hey @clux just wondering if you had a chance to look at this PR. I’m happy to make any API that you think might be better. |
|
Hey! Sorry, I've been slowly working my way through the stack of PRs. From a quick look though, one thing does stand out to me though; Breaking Option 2, you describe breaking AFAIKT, option 3, the inefficient double call might not be too bad? The functions it all call just seem to be re-juggling structs in memory a little bit? Maybe it's a sensible thing to start with. Sounds like maybe the date can be exposed through rustls more effeciently at a later date? |
That was a typo, I meant to say it's a breaking change for those NOT using
I've created #1707 as an implementation of option 3, let me know what you think! |
|
replaced by #1707 |
fixes #1675
I found 3 different ways of doing this, but I'm not sure which one is the best.
This PR implements Option 1, but I'm fine with other options too (except maybe 3, my least favorite)
identity_pemduring themake_generic_builderand pass that onto both rustls and openssl HttpsConnector functions as an arg. This is a breaking change for those who are NOT using themake_generic_builderfunction.exec_identity_pemcall in both rustls and openssl connector builder as an arg, and bubble up the expiration datetime to themake_generic_builderfunction. This is also a breaking change for those who are using themake_generic_builderfunction as the return type for the HttpsConnector functions will change.exec_identity_pemtwice, once in themake_generic_builderfunction just to get the expiration date, and again inside the rustls and openssl HttpsConnector functions (as it is currently). This is NOT a breaking change, but it is inefficient as we are calling theexec_identity_pemfunction twice as this is a blocking system call.