summary refs log tree commit diff
path: root/bounce.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-06 01:03:04 -0500
committerJune McEnroe <june@causal.agency>2019-11-06 01:03:04 -0500
commitee15889c433bb692e48f8e6e68016d3d0995c04e (patch)
treee2db39f02735c1d1c7ae6cc359e1554619f333b6 /bounce.h
parentClean up bounce.c (diff)
downloadpounce-ee15889c433bb692e48f8e6e68016d3d0995c04e.tar.gz
pounce-ee15889c433bb692e48f8e6e68016d3d0995c04e.zip
Use explicit_bzero from LibreSSL
Diffstat (limited to 'bounce.h')
-rw-r--r--bounce.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/bounce.h b/bounce.h
index 42b8ed5..de8fe9c 100644
--- a/bounce.h
+++ b/bounce.h
@@ -14,11 +14,6 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef __APPLE__
-#define __STDC_WANT_LIB_EXT1__ 1
-#define explicit_bzero(b, len) memset_s((b), (len), 0, (len))
-#endif
-
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -26,6 +21,8 @@
 #include <time.h>
 #include <tls.h>
 
+#include "compat.h"
+
 #ifndef DEFAULT_CERT_PATH
 #define DEFAULT_CERT_PATH "/usr/local/etc/letsencrypt/live/%s/fullchain.pem"
 #endif