emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master eda9aa0: * src/gnutls.c (clear_storage): Define onl


From: Philipp Stephani
Subject: [Emacs-diffs] master eda9aa0: * src/gnutls.c (clear_storage): Define only if needed.
Date: Wed, 19 Jul 2017 15:22:09 -0400 (EDT)

branch: master
commit eda9aa0d314ca8e8919d4c17927aa86290449f8d
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>

    * src/gnutls.c (clear_storage): Define only if needed.
---
 src/gnutls.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gnutls.c b/src/gnutls.c
index e406d66..7c98840 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -1891,6 +1891,8 @@ The alist key is the cipher name. */)
   return ciphers;
 }
 
+#ifdef HAVE_GNUTLS3_AEAD
+
 /* Zero out STORAGE (even if it will become inaccessible.  It has
    STORAGE_LENGTH bytes.  The goal is to improve security a bit, in
    case an Emacs module or some buggy part of Emacs attempts to
@@ -1907,6 +1909,8 @@ clear_storage (void *storage, ptrdiff_t storage_length)
   explicit_bzero (storage, storage_length);
 }
 
+#endif  /* HAVE_GNUTLS3_AEAD */
+
 static Lisp_Object
 gnutls_symmetric_aead (bool encrypting, gnutls_cipher_algorithm_t gca,
                        Lisp_Object cipher,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]