aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Stephani2017-07-19 21:21:40 +0200
committerPhilipp Stephani2017-07-19 21:21:40 +0200
commiteda9aa0d314ca8e8919d4c17927aa86290449f8d (patch)
tree1606a02c165ea4f5358fb46aa46e93a5f23bf94a
parent0ef1b7ceeb2c32c464236f486355114fa94688ea (diff)
downloademacs-eda9aa0d314ca8e8919d4c17927aa86290449f8d.tar.gz
emacs-eda9aa0d314ca8e8919d4c17927aa86290449f8d.zip
* src/gnutls.c (clear_storage): Define only if needed.
-rw-r--r--src/gnutls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gnutls.c b/src/gnutls.c
index e406d665190..7c988408528 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -1891,6 +1891,8 @@ The alist key is the cipher name. */)
1891 return ciphers; 1891 return ciphers;
1892} 1892}
1893 1893
1894#ifdef HAVE_GNUTLS3_AEAD
1895
1894/* Zero out STORAGE (even if it will become inaccessible. It has 1896/* Zero out STORAGE (even if it will become inaccessible. It has
1895 STORAGE_LENGTH bytes. The goal is to improve security a bit, in 1897 STORAGE_LENGTH bytes. The goal is to improve security a bit, in
1896 case an Emacs module or some buggy part of Emacs attempts to 1898 case an Emacs module or some buggy part of Emacs attempts to
@@ -1907,6 +1909,8 @@ clear_storage (void *storage, ptrdiff_t storage_length)
1907 explicit_bzero (storage, storage_length); 1909 explicit_bzero (storage, storage_length);
1908} 1910}
1909 1911
1912#endif /* HAVE_GNUTLS3_AEAD */
1913
1910static Lisp_Object 1914static Lisp_Object
1911gnutls_symmetric_aead (bool encrypting, gnutls_cipher_algorithm_t gca, 1915gnutls_symmetric_aead (bool encrypting, gnutls_cipher_algorithm_t gca,
1912 Lisp_Object cipher, 1916 Lisp_Object cipher,