add python bindings for SSL support
This commit is contained in:
@@ -458,4 +458,8 @@ void bind_alert()
|
||||
.def_readonly("socket_type", &incoming_connection_alert::socket_type)
|
||||
.add_property("ip", &incoming_connection_alert_ip)
|
||||
;
|
||||
class_<torrent_need_cert_alert, bases<torrent_alert>, noncopyable>(
|
||||
"torrent_need_cert_alert", no_init)
|
||||
.def_readonly("error", &torrent_need_cert_alert::error)
|
||||
;
|
||||
}
|
||||
|
@@ -128,6 +128,7 @@ void bind_create_torrent()
|
||||
.def("piece_length", &create_torrent::piece_length)
|
||||
.def("piece_size", &create_torrent::piece_size)
|
||||
.def("priv", &create_torrent::priv)
|
||||
.def("set_root_cert", &create_torrent::set_root_cert, (arg("pem")))
|
||||
;
|
||||
|
||||
enum_<create_torrent::flags_t>("create_torrent_flags_t")
|
||||
|
@@ -390,6 +390,7 @@ void bind_torrent_handle()
|
||||
.def("info_hash", _(&torrent_handle::info_hash))
|
||||
.def("force_recheck", _(&torrent_handle::force_recheck))
|
||||
.def("rename_file", _(rename_file0))
|
||||
.def("set_ssl_certificate", &torrent_handle::set_ssl_certificate, (arg("cert"), arg("private_key"), arg("dh_params"), arg("passphrase")=""))
|
||||
#if TORRENT_USE_WSTRING
|
||||
.def("move_storage", _(move_storage1))
|
||||
.def("rename_file", _(rename_file1))
|
||||
|
Reference in New Issue
Block a user