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

Diff for /src/usr.bin/ssh/cipher.c between version 1.89 and 1.90

version 1.89, 2013/05/17 00:13:13 version 1.90, 2013/11/07 11:58:27
Line 94 
Line 94 
   
 /*--*/  /*--*/
   
 /* Returns a comma-separated list of supported ciphers. */  /* Returns a list of supported ciphers separated by the specified char. */
 char *  char *
 cipher_alg_list(void)  cipher_alg_list(char sep)
 {  {
         char *ret = NULL;          char *ret = NULL;
         size_t nlen, rlen = 0;          size_t nlen, rlen = 0;
Line 106 
Line 106 
                 if (c->number != SSH_CIPHER_SSH2)                  if (c->number != SSH_CIPHER_SSH2)
                         continue;                          continue;
                 if (ret != NULL)                  if (ret != NULL)
                         ret[rlen++] = '\n';                          ret[rlen++] = sep;
                 nlen = strlen(c->name);                  nlen = strlen(c->name);
                 ret = xrealloc(ret, 1, rlen + nlen + 2);                  ret = xrealloc(ret, 1, rlen + nlen + 2);
                 memcpy(ret + rlen, c->name, nlen + 1);                  memcpy(ret + rlen, c->name, nlen + 1);

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.90