mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Allow making TLS negotiation blocking
* lisp/net/gnutls.el (gnutls-negotiate): Make negotiation blocking. * src/gnutls.c (Fgnutls_boot): Provide a new keyword, :complete-negotiation, to specify that we want complete negotiation even if the socket is non-blocking. (gnutls_try_handshake): Complete negotiation if given that keyword. * src/process.h (L): Added gnutls_complete_negotiation_p.
This commit is contained in:
parent
76b97fb0f9
commit
21b509d444
4 changed files with 22 additions and 4 deletions
|
|
@ -175,7 +175,9 @@ For the meaning of the rest of the parameters, see `gnutls-boot-parameters'."
|
|||
:verify-hostname-error verify-hostname-error))
|
||||
ret)
|
||||
(gnutls-message-maybe
|
||||
(setq ret (gnutls-boot process type params))
|
||||
(setq ret (gnutls-boot process type
|
||||
(append (list :complete-negotiation t)
|
||||
params)))
|
||||
"boot: %s" params)
|
||||
|
||||
(when (gnutls-errorp ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue