small fix
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2010-11-08 NIIBE Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
|
* src/openpgp-do.c (do_hist_bytes, do_fp_all, do_cafp_all)
|
||||||
|
(do_kgtime_all, do_ds_count): Fix return value.
|
||||||
|
|
||||||
2010-11-05 NIIBE Yutaka <gniibe@fsij.org>
|
2010-11-05 NIIBE Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
Bug fixes.
|
Bug fixes.
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ do_hist_bytes (uint16_t tag, int with_tag)
|
|||||||
/* XXX: For now, no life cycle management, just return template as is. */
|
/* XXX: For now, no life cycle management, just return template as is. */
|
||||||
/* XXX: Supporing TERMINATE DF / ACTIVATE FILE, we need to fix here */
|
/* XXX: Supporing TERMINATE DF / ACTIVATE FILE, we need to fix here */
|
||||||
copy_do_1 (tag, historical_bytes, with_tag);
|
copy_do_1 (tag, historical_bytes, with_tag);
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SIZE_FP 20
|
#define SIZE_FP 20
|
||||||
@@ -322,8 +322,7 @@ do_fp_all (uint16_t tag, int with_tag)
|
|||||||
else
|
else
|
||||||
memset (res_p, 0, SIZE_FP);
|
memset (res_p, 0, SIZE_FP);
|
||||||
res_p += SIZE_FP;
|
res_p += SIZE_FP;
|
||||||
|
return 1;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@@ -357,8 +356,7 @@ do_cafp_all (uint16_t tag, int with_tag)
|
|||||||
else
|
else
|
||||||
memset (res_p, 0, SIZE_FP);
|
memset (res_p, 0, SIZE_FP);
|
||||||
res_p += SIZE_FP;
|
res_p += SIZE_FP;
|
||||||
|
return 1;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@@ -392,7 +390,7 @@ do_kgtime_all (uint16_t tag, int with_tag)
|
|||||||
else
|
else
|
||||||
memset (res_p, 0, SIZE_KGTIME);
|
memset (res_p, 0, SIZE_KGTIME);
|
||||||
res_p += SIZE_KGTIME;
|
res_p += SIZE_KGTIME;
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@@ -407,7 +405,7 @@ do_ds_count (uint16_t tag, int with_tag)
|
|||||||
*res_p++ = (digital_signature_counter >> 16) & 0xff;
|
*res_p++ = (digital_signature_counter >> 16) & 0xff;
|
||||||
*res_p++ = (digital_signature_counter >> 8) & 0xff;
|
*res_p++ = (digital_signature_counter >> 8) & 0xff;
|
||||||
*res_p++ = digital_signature_counter & 0xff;
|
*res_p++ = digital_signature_counter & 0xff;
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
Reference in New Issue
Block a user