[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.7 and 1.8

version 1.7, 2015/10/17 15:00:11 version 1.8, 2016/12/30 15:59:58
Line 667 
Line 667 
         PKCS8_PRIV_KEY_INFO *p8;          PKCS8_PRIV_KEY_INFO *p8;
         X509 *x509;          X509 *x509;
   
         switch (M_PKCS12_bag_type(bag)) {          switch (OBJ_obj2nid(bag->type)) {
         case NID_keyBag:          case NID_keyBag:
                 if (options & INFO)                  if (options & INFO)
                         BIO_printf(bio_err, "Key bag\n");                          BIO_printf(bio_err, "Key bag\n");
Line 713 
Line 713 
                 } else if (options & CLCERTS)                  } else if (options & CLCERTS)
                         return 1;                          return 1;
                 print_attribs(out, bag->attrib, "Bag Attributes");                  print_attribs(out, bag->attrib, "Bag Attributes");
                 if (M_PKCS12_cert_bag_type(bag) != NID_x509Certificate)                  if (OBJ_obj2nid(bag->value.bag->type) != NID_x509Certificate)
                         return 1;                          return 1;
                 if (!(x509 = PKCS12_certbag2x509(bag)))                  if (!(x509 = PKCS12_certbag2x509(bag)))
                         return 0;                          return 0;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8