summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>2012-02-02 10:46:49 +0200
committerJames Morris <jmorris@namei.org>2012-02-20 19:46:36 +1100
commit59cca653a601372e9b4a430d867377a3e4a36d76 (patch)
tree865c5d380ee4f6ca8ee146fc7f00273f357a109b /include
parentb01543dfe67bb1d191998e90d20534dc354de059 (diff)
downloadlinux-59cca653a601372e9b4a430d867377a3e4a36d76.tar.gz
linux-59cca653a601372e9b4a430d867377a3e4a36d76.tar.bz2
linux-59cca653a601372e9b4a430d867377a3e4a36d76.zip
digsig: changed type of the timestamp
time_t was used in the signature and key packet headers, which is typedef of long and is different on 32 and 64 bit architectures. Signature and key format should be independent of architecture. Similar to GPG, I have changed the type to uint32_t. Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/digsig.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/digsig.h b/include/linux/digsig.h
index b01558b15814..6f85a070bb45 100644
--- a/include/linux/digsig.h
+++ b/include/linux/digsig.h
@@ -30,7 +30,7 @@ enum digest_algo {
struct pubkey_hdr {
uint8_t version; /* key format version */
- time_t timestamp; /* key made, always 0 for now */
+ uint32_t timestamp; /* key made, always 0 for now */
uint8_t algo;
uint8_t nmpi;
char mpi[0];
@@ -38,7 +38,7 @@ struct pubkey_hdr {
struct signature_hdr {
uint8_t version; /* signature format version */
- time_t timestamp; /* signature made */
+ uint32_t timestamp; /* signature made */
uint8_t algo;
uint8_t hash;
uint8_t keyid[8];