--- embedtools/src/voucher.c 2014/02/05 15:44:06 1.3 +++ embedtools/src/voucher.c 2017/06/28 15:19:32 1.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: voucher.c,v 1.3 2014/02/05 15:44:06 misho Exp $ + * $Id: voucher.c,v 1.4 2017/06/28 15:19:32 misho Exp $ * ************************************************************************* The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2014 +Copyright 2004 - 2017 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -166,7 +166,7 @@ ShowConfig(char mode, int rid, int cnt) strtol(cfg_getAttribute(&cfg, "voucher", "ticketbits"), NULL, 0)); printf(" + CheckSum %d bits\n", (int) strtol(cfg_getAttribute(&cfg, "voucher", "cksumbits"), NULL, 0)); - printf(" + Magic 0x%llx\n", (uint64_t) + printf(" + Magic 0x%jx\n", (uint64_t) strtoll(cfg_getAttribute(&cfg, "voucher", "magic"), NULL, 0)); printf(" + Charset %s\n", cfg_getAttribute(&cfg, "voucher", "charset")); if (!cfg_getAttribute(&cfg, "voucher", "key_private")) @@ -290,7 +290,7 @@ ComputeVouchers(int rid, int cnt, RSA * __restrict key code /= base; } if (code) { - printf("Error:: voucher gets too long ... (%llu)\n", code); + printf("Error:: voucher gets too long ... (%ju)\n", code); continue; }