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

Diff for /src/usr.bin/openssl/x509.c between version 1.27 and 1.28

version 1.27, 2021/12/12 20:28:02 version 1.28, 2021/12/12 20:29:15
Line 1045 
Line 1045 
                         } else if (x509_config.modulus == i) {                          } else if (x509_config.modulus == i) {
                                 EVP_PKEY *pkey;                                  EVP_PKEY *pkey;
   
                                 pkey = X509_get_pubkey(x);                                  pkey = X509_get0_pubkey(x);
                                 if (pkey == NULL) {                                  if (pkey == NULL) {
                                         BIO_printf(bio_err,                                          BIO_printf(bio_err,
                                             "Modulus=unavailable\n");                                              "Modulus=unavailable\n");
Line 1070 
Line 1070 
                                         BIO_printf(STDout,                                          BIO_printf(STDout,
                                             "Wrong Algorithm type");                                              "Wrong Algorithm type");
                                 BIO_printf(STDout, "\n");                                  BIO_printf(STDout, "\n");
                                 EVP_PKEY_free(pkey);  
                         } else if (x509_config.pubkey == i) {                          } else if (x509_config.pubkey == i) {
                                 EVP_PKEY *pkey;                                  EVP_PKEY *pkey;
   
                                 pkey = X509_get_pubkey(x);                                  pkey = X509_get0_pubkey(x);
                                 if (pkey == NULL) {                                  if (pkey == NULL) {
                                         BIO_printf(bio_err,                                          BIO_printf(bio_err,
                                             "Error getting public key\n");                                              "Error getting public key\n");
Line 1082 
Line 1081 
                                         goto end;                                          goto end;
                                 }                                  }
                                 PEM_write_bio_PUBKEY(STDout, pkey);                                  PEM_write_bio_PUBKEY(STDout, pkey);
                                 EVP_PKEY_free(pkey);  
                         } else if (x509_config.C == i) {                          } else if (x509_config.C == i) {
                                 unsigned char *d;                                  unsigned char *d;
                                 char *m;                                  char *m;

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28