aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src/stack.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2018-08-28 22:02:55 -0700
committerSteven Fackler <[email protected]>2018-08-31 20:23:55 -0700
commitbc4e47a321a71f9299c24a94b1bdcaa78383e75d (patch)
tree7b6fcfdc2372e3bf1c936bbb2762434122489e2d /openssl-sys/src/stack.rs
parentBump Appveyor test versions (diff)
downloadrust-openssl-bc4e47a321a71f9299c24a94b1bdcaa78383e75d.tar.xz
rust-openssl-bc4e47a321a71f9299c24a94b1bdcaa78383e75d.zip
Fix lookup errors with SNI callback.
The job of an SNI callback is typically to swap out the context associated with an SSL depending on the domain the client is trying to talk to. Typically, only the callbacks associated with the current context are used, but this is not the case for the SNI callback. If SNI is run for a second time on a connection (i.e. in a renegotiation) and the context was replaced with one that didn't itself register an SNI callback, the old callback would run but wouldn't be able to find its state in the context's ex data. To work around this, we pass the pointer to the callback data directly to the callback to make sure it's always available. It still lives in ex data to handle the lifetime management. Closes #979
Diffstat (limited to 'openssl-sys/src/stack.rs')
0 files changed, 0 insertions, 0 deletions