summaryrefslogtreecommitdiff
path: root/rpmio/rpmpgp.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-11-26 14:42:14 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-11-26 14:42:14 +0200
commita798f725eb7f54bccde6fce47ad2b41eaeb65041 (patch)
treeaa4e015a2f9d3345d8241a7089d7e995a0338fa8 /rpmio/rpmpgp.h
parent399dca5c05440350c39008b9e682b95945bc35ff (diff)
downloadlibrpm-tizen-a798f725eb7f54bccde6fce47ad2b41eaeb65041.tar.gz
librpm-tizen-a798f725eb7f54bccde6fce47ad2b41eaeb65041.tar.bz2
librpm-tizen-a798f725eb7f54bccde6fce47ad2b41eaeb65041.zip
Define and use pgpTime_t for pgp creation time(s)
Diffstat (limited to 'rpmio/rpmpgp.h')
-rw-r--r--rpmio/rpmpgp.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/rpmio/rpmpgp.h b/rpmio/rpmpgp.h
index cffeac9fb..e019ba6a9 100644
--- a/rpmio/rpmpgp.h
+++ b/rpmio/rpmpgp.h
@@ -31,6 +31,7 @@ typedef struct pgpDig_s * pgpDig;
typedef struct pgpDigParams_s * pgpDigParams;
typedef uint8_t pgpKeyID_t[8];
+typedef uint8_t pgpTime_t[4];
/**
*/
@@ -320,7 +321,7 @@ typedef struct pgpPktSigV3_s {
uint8_t version; /*!< version number (3). */
uint8_t hashlen; /*!< length of following hashed material. MUST be 5. */
uint8_t sigtype; /*!< signature type. */
- uint8_t time[4]; /*!< 4 byte creation time. */
+ pgpTime_t time; /*!< 4 byte creation time. */
pgpKeyID_t signid; /*!< key ID of signer. */
uint8_t pubkey_algo; /*!< public key algorithm. */
uint8_t hash_algo; /*!< hash algorithm. */
@@ -639,7 +640,7 @@ typedef struct pgpPktOnepass_s {
*/
typedef struct pgpPktKeyV3_s {
uint8_t version; /*!< version number (3). */
- uint8_t time[4]; /*!< time that the key was created. */
+ pgpTime_t time; /*!< time that the key was created. */
uint8_t valid[2]; /*!< time in days that this key is valid. */
uint8_t pubkey_algo; /*!< public key algorithm. */
} * pgpPktKeyV3;
@@ -677,7 +678,7 @@ typedef struct pgpPktKeyV3_s {
*/
typedef struct pgpPktKeyV4_s {
uint8_t version; /*!< version number (4). */
- uint8_t time[4]; /*!< time that the key was created. */
+ pgpTime_t time; /*!< time that the key was created. */
uint8_t pubkey_algo; /*!< public key algorithm. */
} * pgpPktKeyV4;