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

Diff for /src/usr.bin/ssh/auth-options.c between version 1.52 and 1.53

version 1.52, 2010/05/20 23:46:02 version 1.53, 2010/08/31 09:58:37
Line 442 
Line 442 
         buffer_append(&c, optblob, optblob_len);          buffer_append(&c, optblob, optblob_len);
   
         while (buffer_len(&c) > 0) {          while (buffer_len(&c) > 0) {
                 if ((name = buffer_get_string_ret(&c, &nlen)) == NULL ||                  if ((name = buffer_get_cstring_ret(&c, &nlen)) == NULL ||
                     (data_blob = buffer_get_string_ret(&c, &dlen)) == NULL) {                      (data_blob = buffer_get_string_ret(&c, &dlen)) == NULL) {
                         error("Certificate options corrupt");                          error("Certificate options corrupt");
                         goto out;                          goto out;
Line 477 
Line 477 
                 }                  }
                 if (!found && (which & OPTIONS_CRITICAL) != 0) {                  if (!found && (which & OPTIONS_CRITICAL) != 0) {
                         if (strcmp(name, "force-command") == 0) {                          if (strcmp(name, "force-command") == 0) {
                                 if ((command = buffer_get_string_ret(&data,                                  if ((command = buffer_get_cstring_ret(&data,
                                     &clen)) == NULL) {                                      &clen)) == NULL) {
                                         error("Certificate constraint \"%s\" "                                          error("Certificate constraint \"%s\" "
                                             "corrupt", name);                                              "corrupt", name);
Line 498 
Line 498 
                                 found = 1;                                  found = 1;
                         }                          }
                         if (strcmp(name, "source-address") == 0) {                          if (strcmp(name, "source-address") == 0) {
                                 if ((allowed = buffer_get_string_ret(&data,                                  if ((allowed = buffer_get_cstring_ret(&data,
                                     &clen)) == NULL) {                                      &clen)) == NULL) {
                                         error("Certificate constraint "                                          error("Certificate constraint "
                                             "\"%s\" corrupt", name);                                              "\"%s\" corrupt", name);

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53