Commit Diff
Diff:
03a608e21e5e4c31ec394f9ffb3c9350def4c735
a8d5d0f806eb7cdefe0fff1e9a43afc6fb9af076
Commit:
a8d5d0f806eb7cdefe0fff1e9a43afc6fb9af076
Tree:
ba9fdb711c1ad41caff5a639ffc64f3dc4f3cebf
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Tue Nov 19 16:59:43 2019 UTC
Message:
timingsafe_memcmp is a OpenBSD function
blob - f7d5173e2bb97964aa0c71e8edd9f8efcf2ef150
blob + b86efcd25f98fd603b8bd7a3d7945a92aeade162
--- raxfr.c
+++ raxfr.c
@@ -26,7 +26,7 @@
*
*/
/*
- * $Id: raxfr.c,v 1.37 2019/11/19 16:58:41 pjp Exp $
+ * $Id: raxfr.c,v 1.38 2019/11/19 16:59:43 pjp Exp $
*/
#include <sys/types.h>
@@ -1222,7 +1222,11 @@ raxfr_tsig(FILE *f, u_char *p, u_char *estart, u_char
goto out;
}
+#if __OpenBSD__
if (timingsafe_memcmp(sdt->mac, mac, macsize) != 0) {
+#else
+ if (memcmp(sdt->mac, mac, macsize) != 0) {
+#endif
#if 0
int i;
repomaster@centroid.eu