Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / pub / pkcs1.c
index 590c05e..bb33351 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <mLib/bits.h>
 #include <mLib/dstr.h>
+#include <mLib/macros.h>
 
 #include "ct.h"
 #include "grand.h"
@@ -245,7 +246,7 @@ int pkcs1_sigdecode(mp *s, const void *m, size_t msz, octet *b, size_t sz,
 
   /* --- Check the encoding parameters --- */
 
-  if (pp->ep && memcmp(q, pp->ep, pp->epsz) != 0)
+  if (pp->ep && MEMCMP(q, !=, pp->ep, pp->epsz))
     return (-1);
   q += pp->epsz;