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

Diff for /src/usr.bin/ssh/gss-genr.c between version 1.26 and 1.27

version 1.26, 2018/07/10 09:13:30 version 1.27, 2020/10/18 11:32:01
Line 110 
Line 110 
         int r;          int r;
   
         if ((b = sshbuf_new()) == NULL)          if ((b = sshbuf_new()) == NULL)
                 fatal("%s: sshbuf_new failed", __func__);                  fatal_f("sshbuf_new failed");
   
         if (major_status != NULL)          if (major_status != NULL)
                 *major_status = ctxt->major;                  *major_status = ctxt->major;
Line 125 
Line 125 
   
                 if ((r = sshbuf_put(b, msg.value, msg.length)) != 0 ||                  if ((r = sshbuf_put(b, msg.value, msg.length)) != 0 ||
                     (r = sshbuf_put_u8(b, '\n')) != 0)                      (r = sshbuf_put_u8(b, '\n')) != 0)
                         fatal("%s: buffer error: %s", __func__, ssh_err(r));                          fatal_fr(r, "assemble GSS_CODE");
   
                 gss_release_buffer(&lmin, &msg);                  gss_release_buffer(&lmin, &msg);
         } while (ctx != 0);          } while (ctx != 0);
Line 137 
Line 137 
   
                 if ((r = sshbuf_put(b, msg.value, msg.length)) != 0 ||                  if ((r = sshbuf_put(b, msg.value, msg.length)) != 0 ||
                     (r = sshbuf_put_u8(b, '\n')) != 0)                      (r = sshbuf_put_u8(b, '\n')) != 0)
                         fatal("%s: buffer error: %s", __func__, ssh_err(r));                          fatal_fr(r, "assemble MECH_CODE");
   
                 gss_release_buffer(&lmin, &msg);                  gss_release_buffer(&lmin, &msg);
         } while (ctx != 0);          } while (ctx != 0);
   
         if ((r = sshbuf_put_u8(b, '\n')) != 0)          if ((r = sshbuf_put_u8(b, '\n')) != 0)
                 fatal("%s: buffer error: %s", __func__, ssh_err(r));                  fatal_fr(r, "assemble newline");
         ret = xstrdup((const char *)sshbuf_ptr(b));          ret = xstrdup((const char *)sshbuf_ptr(b));
         sshbuf_free(b);          sshbuf_free(b);
         return (ret);          return (ret);
Line 264 
Line 264 
             (r = sshbuf_put_cstring(b, user)) != 0 ||              (r = sshbuf_put_cstring(b, user)) != 0 ||
             (r = sshbuf_put_cstring(b, service)) != 0 ||              (r = sshbuf_put_cstring(b, service)) != 0 ||
             (r = sshbuf_put_cstring(b, context)) != 0)              (r = sshbuf_put_cstring(b, context)) != 0)
                 fatal("%s: buffer error: %s", __func__, ssh_err(r));                  fatal_fr(r, "assemble buildmic");
 }  }
   
 int  int

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27