Fixes: debbugs:19149

* gtkutil.c (gtk_adjustment_configure): Don't use 2.14 functions (Bug#19149).
Add functions to gnutls.c for exporting certificate details

* gnutls.c (gnutls_hex_string, gnutls_certificate_details)
(Fgnutls_peer_status): New functions to export TLS certificate
details to Emacs Lisp.

* process.h: Added more fields to Lisp_Process to track
certificate details.

* gnutls.c (Fgnutls_boot): Save certificate for later inspection.
Implement a Network Security Manager

* processes.texi (Network): Mention the new :warn-unless-encrypted
parameter to `open-network-stream'.
(Network): Mention the Network Security Manager.

* net/nsm.el: New file that implements a Network Security Manager.

* net/network-stream.el (open-network-stream): Add a new
:warn-unless-encrypted parameter.
(network-stream-open-plain): Allow warning unless encrypted.
(network-stream-open-starttls): Call the Network Security Manager.
(network-stream-open-tls): Ditto.
Make some network connections warn unless they are encrypted

* mail/smtpmail.el (smtpmail-via-smtp): Warn unless encrypted and
we're sending a password.

* pop3.el (pop3-open-server): Warn unless encrypted.

* nnimap.el (nnimap-open-connection-1): Warn unless encrypted.
Implement a new url parameter `url-request-noninteractive'

* url-http.el (url-http): Respect `url-request-noninteractive'.

* url-queue.el (url-queue-start-retrieve): Fetching through
url-queue should always be noninteractive.

* url-vars.el (url-request-noninteractive): New variable.
Rename `nsm-security-level' to `network-security-level'

* net/nsm.el (network-security-level): Rename from
`nsm-security-level' and documented.
Allow setting the charset in eww

Fixes: debbugs:16225

* net/eww.el (eww-set-character-encoding): New command and keystroke.
(eww-display-raw): Use it.
(eww-mode-map): Bind backtab to shr-previous-link

* net/eww.el (eww-mode-map): Bind backtab to shr-previous-link
* net/eww.el (eww-add-bookmark): Fix bookmark titles.
Document the eww Desktop stuff

Fixes: debbugs:18010

* eww.texi (Advanced): Mention the Desktop stuff (bug#18010).
Make `M-x eww' default to the URL under point

* net/eww.el (eww-suggest-uris): New variable.
(eww-suggested-uris): New function.
(eww): Default to URL under point.
(eww-links-at-point): New function.
* net/eww.el (eww-display-html): Decode the document-defined charset.
Switch to the *eww* buffer immediately to avoid doing it asynchronously

(eww): Pop to the *eww* buffer immediately after executing the
`M-x eww' command to avoid having buffers pop up later.
(eww-display-html): Don't pop the *eww* buffer.
(eww-display-raw): Ditto.
(eww-display-image): Ditto.
(eww-follow-link): Make going to #targets in the page work again.
Allow opening eww links in a new buffer

* net/eww.el (eww-browse-url): Optionally create new eww buffer.
(eww-follow-link): Follow in new buffer in case of prefix
argument, open externally with double prefix.
Fix bug marking
* lib-src/Makefile.in (emacsclient.res): Fix yesterday's thinko.
gnutls.c windows compilation fix

* gnutls.c: Fixed Windows function definition of
gnutls_x509_crt_get_fingerprint.
Typo fix from previous check-in
* gnutls.c: Fix Windows function definition of gnutls_x509_crt_get_fingerprint.