--- embedtools/src/voucher.c 2013/07/19 01:08:43 1.2.4.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.2.4.3 2013/07/19 01:08:43 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, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 +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; }