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

Diff for /src/usr.bin/ssh/ssh-dss.c between version 1.8.2.3 and 1.8.2.4

version 1.8.2.3, 2002/06/26 18:22:36 version 1.8.2.4, 2002/10/11 14:53:07
Line 46 
Line 46 
         DSA_SIG *sig;          DSA_SIG *sig;
         const EVP_MD *evp_md = EVP_sha1();          const EVP_MD *evp_md = EVP_sha1();
         EVP_MD_CTX md;          EVP_MD_CTX md;
         u_char *ret, digest[EVP_MAX_MD_SIZE], sigblob[SIGBLOB_LEN];          u_char digest[EVP_MAX_MD_SIZE], sigblob[SIGBLOB_LEN];
         u_int rlen, slen, len, dlen;          u_int rlen, slen, len, dlen;
         Buffer b;          Buffer b;
   
Line 79 
Line 79 
         DSA_SIG_free(sig);          DSA_SIG_free(sig);
   
         if (datafellows & SSH_BUG_SIGBLOB) {          if (datafellows & SSH_BUG_SIGBLOB) {
                 ret = xmalloc(SIGBLOB_LEN);  
                 memcpy(ret, sigblob, SIGBLOB_LEN);  
                 if (lenp != NULL)                  if (lenp != NULL)
                         *lenp = SIGBLOB_LEN;                          *lenp = SIGBLOB_LEN;
                 if (sigp != NULL)                  if (sigp != NULL) {
                         *sigp = ret;                          *sigp = xmalloc(SIGBLOB_LEN);
                           memcpy(*sigp, sigblob, SIGBLOB_LEN);
                   }
         } else {          } else {
                 /* ietf-drafts */                  /* ietf-drafts */
                 buffer_init(&b);                  buffer_init(&b);
                 buffer_put_cstring(&b, "ssh-dss");                  buffer_put_cstring(&b, "ssh-dss");
                 buffer_put_string(&b, sigblob, SIGBLOB_LEN);                  buffer_put_string(&b, sigblob, SIGBLOB_LEN);
                 len = buffer_len(&b);                  len = buffer_len(&b);
                 ret = xmalloc(len);  
                 memcpy(ret, buffer_ptr(&b), len);  
                 buffer_free(&b);  
                 if (lenp != NULL)                  if (lenp != NULL)
                         *lenp = len;                          *lenp = len;
                 if (sigp != NULL)                  if (sigp != NULL) {
                         *sigp = ret;                          *sigp = xmalloc(len);
                           memcpy(*sigp, buffer_ptr(&b), len);
                   }
                   buffer_free(&b);
         }          }
         return 0;          return 0;
 }  }

Legend:
Removed from v.1.8.2.3  
changed lines
  Added in v.1.8.2.4