Commit ea876ac
authored
Take a ref receiver on the SSLContext option mutators (#98)
`_set_options` and `_clear_options` reconfigure the OpenSSL context, but
took the default `box` receiver, which a `val` receiver satisfies. An
`SSLContext` is held `val` once it is done being configured — `client`
and `server` require it — so a `fun val` or `fun box` method added later
could have reconfigured a frozen context and compiled.
Closes #931 parent 7c08a82 commit ea876ac
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments