(&self, cipherlist: PyStrRef, vm: &VirtualMachine)
| 1046 | |
| 1047 | #[pymethod] |
| 1048 | fn set_ciphers(&self, cipherlist: PyStrRef, vm: &VirtualMachine) -> PyResult<()> { |
| 1049 | let ciphers = cipherlist.as_str(); |
| 1050 | if ciphers.contains('\0') { |
| 1051 | return Err(exceptions::cstring_error(vm)); |
| 1052 | } |
| 1053 | self.builder() |
| 1054 | .set_cipher_list(ciphers) |
| 1055 | .map_err(|_| new_ssl_error(vm, "No cipher can be selected.")) |
| 1056 | } |
| 1057 | |
| 1058 | #[pymethod] |
| 1059 | fn get_ciphers(&self, vm: &VirtualMachine) -> PyResult<PyListRef> { |
nothing calls this directly
no test coverage detected