[BACK]Return to schnorr.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/schnorr.c between version 1.5.10.1 and 1.6

version 1.5.10.1, 2013/11/08 05:52:21 version 1.6, 2013/05/16 09:08:41
Line 484 
Line 484 
 {  {
         char *out, *h;          char *out, *h;
         va_list args;          va_list args;
           int ret;
   
         out = NULL;          out = NULL;
         va_start(args, fmt);          va_start(args, fmt);
         vasprintf(&out, fmt, args);          ret = vasprintf(&out, fmt, args);
         va_end(args);          va_end(args);
         if (out == NULL)          if (ret == -1 || out == NULL)
                 fatal("%s: vasprintf failed", __func__);                  fatal("%s: vasprintf failed", __func__);
   
         if (n == NULL)          if (n == NULL)
Line 509 
Line 510 
         char *out, h[65];          char *out, h[65];
         u_int i, j;          u_int i, j;
         va_list args;          va_list args;
           int ret;
   
         out = NULL;          out = NULL;
         va_start(args, fmt);          va_start(args, fmt);
         vasprintf(&out, fmt, args);          ret = vasprintf(&out, fmt, args);
         va_end(args);          va_end(args);
         if (out == NULL)          if (ret == -1 || out == NULL)
                 fatal("%s: vasprintf failed", __func__);                  fatal("%s: vasprintf failed", __func__);
   
         debug3("%s length %u%s", out, len, buf == NULL ? " (null)" : "");          debug3("%s length %u%s", out, len, buf == NULL ? " (null)" : "");
Line 543 
Line 545 
 {  {
         struct modp_group *ret;          struct modp_group *ret;
   
         ret = xcalloc(1, sizeof(*ret));          ret = xmalloc(sizeof(*ret));
         ret->p = ret->q = ret->g = NULL;          ret->p = ret->q = ret->g = NULL;
         if (BN_hex2bn(&ret->p, grp_p) == 0 ||          if (BN_hex2bn(&ret->p, grp_p) == 0 ||
             BN_hex2bn(&ret->g, grp_g) == 0)              BN_hex2bn(&ret->g, grp_g) == 0)

Legend:
Removed from v.1.5.10.1  
changed lines
  Added in v.1.6