mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
using json_int_t for uint32_ts json import
This commit is contained in:
@@ -913,14 +913,15 @@ json_t *pcp_sk2json(pcp_key_t *sk, byte *sig, size_t siglen) {
|
|||||||
jformat = "{sssssssisisisissssssssss}";
|
jformat = "{sssssssisisisissssssssss}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fprintf(stderr, "serial: %lld\n", (json_int_t)sk->serial);
|
||||||
jout = json_pack(jformat,
|
jout = json_pack(jformat,
|
||||||
"id", sk->id,
|
"id", sk->id,
|
||||||
"owner", sk->owner,
|
"owner", sk->owner,
|
||||||
"mail", sk->mail,
|
"mail", sk->mail,
|
||||||
"ctime", (int)sk->ctime,
|
"ctime", (json_int_t)sk->ctime,
|
||||||
"expire", (int)sk->ctime+31536000,
|
"expire", (json_int_t)sk->ctime+31536000,
|
||||||
"version", (int)sk->version,
|
"version", (json_int_t)sk->version,
|
||||||
"serial", (int)sk->serial,
|
"serial", (json_int_t)sk->serial,
|
||||||
"type", "public",
|
"type", "public",
|
||||||
"cipher", EXP_PK_CIPHER_NAME,
|
"cipher", EXP_PK_CIPHER_NAME,
|
||||||
"cryptpub", cryptpub,
|
"cryptpub", cryptpub,
|
||||||
|
|||||||
Reference in New Issue
Block a user