[BACK]Return to testdsa.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/testdsa.h between version 1.3 and 1.4

version 1.3, 2022/01/10 15:04:06 version 1.4, 2022/01/10 15:14:27
Line 221 
Line 221 
   
         if ((dsa = DSA_new()) == NULL)          if ((dsa = DSA_new()) == NULL)
                 return (NULL);                  return (NULL);
   
         priv_key = BN_bin2bn(priv, priv_size, NULL);          priv_key = BN_bin2bn(priv, priv_size, NULL);
         pub_key = BN_bin2bn(pub, pub_size, NULL);          pub_key = BN_bin2bn(pub, pub_size, NULL);
         if (priv_key == NULL || pub_key == NULL)          if (priv_key == NULL || pub_key == NULL)
                 goto err;                  goto err;
   
         if (!DSA_set0_key(dsa, pub_key, priv_key))          if (!DSA_set0_key(dsa, pub_key, priv_key))
                 goto err;                  goto err;
           pub_key = NULL;
           priv_key = NULL;
   
         p = BN_bin2bn(p, p_size, NULL);          p = BN_bin2bn(p, p_size, NULL);
         q = BN_bin2bn(q, q_size, NULL);          q = BN_bin2bn(q, q_size, NULL);
         g = BN_bin2bn(g, g_size, NULL);          g = BN_bin2bn(g, g_size, NULL);
         if (p == NULL || q == NULL || g == NULL)          if (p == NULL || q == NULL || g == NULL)
                 goto err;                  goto err;
   
         if (!DSA_set0_pqg(dsa, p, q, g))          if (!DSA_set0_pqg(dsa, p, q, g))
                 goto err;                  goto err;
           p = NULL;
           q = NULL;
           g = NULL;
   
         return dsa;          return dsa;
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4