Call the network security manager after doing TLS negotiation
commit9c74f2fea6bfa6bc38358835539944017cf35917
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 15 Feb 2016 07:24:08 +0000 (15 18:24 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 15 Feb 2016 07:24:08 +0000 (15 18:24 +1100)
tree17463dee36e640d38c302b3ef2c169b4e536e33c
parent40155283c380a795c1a0036a31e1b41ed1df0f38
Call the network security manager after doing TLS negotiation

* lisp/net/network-stream.el (network-stream-open-tls):
Postpone NSM verification when running async.

* src/process.c (Fset_process_filter): This function doesn't
need to wait.
(connect_network_socket): Set the process status to "run" only
after TLS negotiation.
(wait_for_socket_fds): Take a name parameter for more debugging.
(wait_reading_process_output): Don't change status to "run"
unless TLS negotiation has finished.
(send_process): Wait for the process here instead of
send_process_string.
(connect_network_socket): Call the network security manager.
lisp/net/network-stream.el
src/process.c