Diff for /embedtools/src/voucher.c between versions 1.3 and 1.4

version 1.3, 2014/02/05 15:44:06 version 1.4, 2017/06/28 15:19:32
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2014Copyright 2004 - 2017
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 166  ShowConfig(char mode, int rid, int cnt) Line 166  ShowConfig(char mode, int rid, int cnt)
                         strtol(cfg_getAttribute(&cfg, "voucher", "ticketbits"), NULL, 0));                          strtol(cfg_getAttribute(&cfg, "voucher", "ticketbits"), NULL, 0));
         printf(" + CheckSum %d bits\n", (int)           printf(" + CheckSum %d bits\n", (int) 
                         strtol(cfg_getAttribute(&cfg, "voucher", "cksumbits"), NULL, 0));                          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));                          strtoll(cfg_getAttribute(&cfg, "voucher", "magic"), NULL, 0));
         printf(" + Charset %s\n", cfg_getAttribute(&cfg, "voucher", "charset"));          printf(" + Charset %s\n", cfg_getAttribute(&cfg, "voucher", "charset"));
         if (!cfg_getAttribute(&cfg, "voucher", "key_private"))          if (!cfg_getAttribute(&cfg, "voucher", "key_private"))
Line 290  ComputeVouchers(int rid, int cnt, RSA * __restrict key Line 290  ComputeVouchers(int rid, int cnt, RSA * __restrict key
                         code /= base;                          code /= base;
                 }                  }
                 if (code) {                  if (code) {
                        printf("Error:: voucher gets too long ... (%llu)\n", code);                        printf("Error:: voucher gets too long ... (%ju)\n", code);
                         continue;                          continue;
                 }                  }
   

Removed from v.1.3  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>