add python bindings for SSL support
This commit is contained in:
parent
1419b5c14c
commit
ad4efb8d59
|
@ -1,5 +1,6 @@
|
||||||
* fix nagle implementation in uTP
|
* fix nagle implementation in uTP
|
||||||
|
|
||||||
|
* add python bindings for SSL support
|
||||||
* minor uTP tweaks
|
* minor uTP tweaks
|
||||||
* fix end-game mode issue when some files are selected to not be downloaded
|
* fix end-game mode issue when some files are selected to not be downloaded
|
||||||
* improve uTP slow start
|
* improve uTP slow start
|
||||||
|
|
|
@ -458,4 +458,8 @@ void bind_alert()
|
||||||
.def_readonly("socket_type", &incoming_connection_alert::socket_type)
|
.def_readonly("socket_type", &incoming_connection_alert::socket_type)
|
||||||
.add_property("ip", &incoming_connection_alert_ip)
|
.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_length", &create_torrent::piece_length)
|
||||||
.def("piece_size", &create_torrent::piece_size)
|
.def("piece_size", &create_torrent::piece_size)
|
||||||
.def("priv", &create_torrent::priv)
|
.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")
|
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("info_hash", _(&torrent_handle::info_hash))
|
||||||
.def("force_recheck", _(&torrent_handle::force_recheck))
|
.def("force_recheck", _(&torrent_handle::force_recheck))
|
||||||
.def("rename_file", _(rename_file0))
|
.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
|
#if TORRENT_USE_WSTRING
|
||||||
.def("move_storage", _(move_storage1))
|
.def("move_storage", _(move_storage1))
|
||||||
.def("rename_file", _(rename_file1))
|
.def("rename_file", _(rename_file1))
|
||||||
|
|
Loading…
Reference in New Issue