add python bindings for SSL support

This commit is contained in:
Arvid Norberg 2012-06-26 23:53:59 +00:00
parent 1419b5c14c
commit ad4efb8d59
4 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,6 @@
* fix nagle implementation in uTP
* add python bindings for SSL support
* minor uTP tweaks
* fix end-game mode issue when some files are selected to not be downloaded
* improve uTP slow start

View File

@ -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)
;
}

View File

@ -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")

View File

@ -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))