chiark / gitweb /
oaep.c, pkcs1.c: Use official constant-time operations.
[catacomb] / cc-sig.c
index 543940828e8668bc0fdab2a171b5870cf5c3ca92..54b58f3b0b159581ce5d52c3aa8d2b026989303e 100644 (file)
--- a/cc-sig.c
+++ b/cc-sig.c
@@ -29,6 +29,8 @@
 
 /*----- Header files ------------------------------------------------------*/
 
+#define _FILE_OFFSET_BITS 64
+
 #include <stdlib.h>
 
 #include <mLib/report.h>
@@ -756,6 +758,7 @@ s_found:;
   if (!so->kf) {
     kd = k->k;
     key_incref(kd);
+    kp = 0;
   } else {
     kd = xmalloc(so->kdsz);
     kp = key_fetchinit(so->kf, 0, kd);