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

Diff for /src/usr.bin/openssl/pkcs12.c between version 1.19 and 1.20

version 1.19, 2022/04/28 15:29:10 version 1.20, 2022/04/28 15:42:10
Line 784 
Line 784 
         if (!pkcs12_config.twopass)          if (!pkcs12_config.twopass)
                 strlcpy(macpass, pass, sizeof macpass);                  strlcpy(macpass, pass, sizeof macpass);
   
         if ((pkcs12_config.options & INFO) && p12->mac != NULL)          if ((pkcs12_config.options & INFO) != 0 && p12->mac != NULL)
                 BIO_printf(bio_err, "MAC Iteration %ld\n",                  BIO_printf(bio_err, "MAC Iteration %ld\n",
                     p12->mac->iter ? ASN1_INTEGER_get(p12->mac->iter) : 1);                      p12->mac->iter ? ASN1_INTEGER_get(p12->mac->iter) : 1);
         if (pkcs12_config.macver) {          if (pkcs12_config.macver) {
Line 1097 
Line 1097 
 {  {
         if (str == NULL)          if (str == NULL)
                 return 0;                  return 0;
         if (!strcmp(str, "NONE")) {          if (strcmp(str, "NONE") == 0) {
                 *ppbe = -1;                  *ppbe = -1;
                 return 1;                  return 1;
         }          }

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20