def set_ciphers(self, ciphers): """ Set the available ciphers for sockets created with this context. It should be a string in the wolfSSL cipher list format. If no cipher can be selected (because compile-time options or other configuration forbids use of all the specified ciphers), an SSLError will be raised. """ ret = _lib.wolfSSL_CTX_set_cipher_list(self.native_object, t2b(ciphers)) if ret != _SSL_SUCCESS: raise SSLError("Unnable to set cipher list")
def set_ciphers(self, ciphers): """ Set the available ciphers for sockets created with this context. It should be a string in the wolfSSL cipher list format. If no cipher can be selected (because compile-time options or other configuration forbids use of all the specified ciphers), an SSLError will be raised. """ ret = _lib.wolfSSL_CTX_set_cipher_list(self.native_object, t2b(ciphers)) if ret != _SSL_SUCCESS: raise SSLError("Unnable to set cipher list")