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

Diff for /src/usr.bin/ssh/monitor.c between version 1.163 and 1.164

version 1.163, 2016/08/19 03:18:06 version 1.164, 2016/08/30 07:50:21
Line 759 
Line 759 
         int authenticated;          int authenticated;
         u_int plen;          u_int plen;
   
           if (!options.password_authentication)
                   fatal("%s: password authentication not enabled", __func__);
         passwd = buffer_get_string(m, &plen);          passwd = buffer_get_string(m, &plen);
         /* Only authenticate if the context is valid */          /* Only authenticate if the context is valid */
         authenticated = options.password_authentication &&          authenticated = options.password_authentication &&
Line 791 
Line 793 
         char **prompts;          char **prompts;
         u_int success;          u_int success;
   
           if (!options.kbd_interactive_authentication)
                   fatal("%s: kbd-int authentication not enabled", __func__);
         success = bsdauth_query(authctxt, &name, &infotxt, &numprompts,          success = bsdauth_query(authctxt, &name, &infotxt, &numprompts,
             &prompts, &echo_on) < 0 ? 0 : 1;              &prompts, &echo_on) < 0 ? 0 : 1;
   
Line 818 
Line 822 
         char *response;          char *response;
         int authok;          int authok;
   
           if (!options.kbd_interactive_authentication)
                   fatal("%s: kbd-int authentication not enabled", __func__);
         if (authctxt->as == NULL)          if (authctxt->as == NULL)
                 fatal("%s: no bsd auth session", __func__);                  fatal("%s: no bsd auth session", __func__);
   
Line 1380 
Line 1386 
         OM_uint32 major;          OM_uint32 major;
         u_int len;          u_int len;
   
           if (!options.gss_authentication)
                   fatal("%s: GSSAPI authentication not enabled", __func__);
   
         goid.elements = buffer_get_string(m, &len);          goid.elements = buffer_get_string(m, &len);
         goid.length = len;          goid.length = len;
   
Line 1407 
Line 1416 
         OM_uint32 flags = 0; /* GSI needs this */          OM_uint32 flags = 0; /* GSI needs this */
         u_int len;          u_int len;
   
           if (!options.gss_authentication)
                   fatal("%s: GSSAPI authentication not enabled", __func__);
   
         in.value = buffer_get_string(m, &len);          in.value = buffer_get_string(m, &len);
         in.length = len;          in.length = len;
         major = ssh_gssapi_accept_ctx(gsscontext, &in, &out, &flags);          major = ssh_gssapi_accept_ctx(gsscontext, &in, &out, &flags);
Line 1435 
Line 1447 
         OM_uint32 ret;          OM_uint32 ret;
         u_int len;          u_int len;
   
           if (!options.gss_authentication)
                   fatal("%s: GSSAPI authentication not enabled", __func__);
   
         gssbuf.value = buffer_get_string(m, &len);          gssbuf.value = buffer_get_string(m, &len);
         gssbuf.length = len;          gssbuf.length = len;
         mic.value = buffer_get_string(m, &len);          mic.value = buffer_get_string(m, &len);
Line 1460 
Line 1475 
 mm_answer_gss_userok(int sock, Buffer *m)  mm_answer_gss_userok(int sock, Buffer *m)
 {  {
         int authenticated;          int authenticated;
   
           if (!options.gss_authentication)
                   fatal("%s: GSSAPI authentication not enabled", __func__);
   
         authenticated = authctxt->valid && ssh_gssapi_userok(authctxt->user);          authenticated = authctxt->valid && ssh_gssapi_userok(authctxt->user);
   

Legend:
Removed from v.1.163  
changed lines
  Added in v.1.164