version 1.27, 2021/12/12 20:28:02 |
version 1.28, 2021/12/12 20:29:15 |
|
|
} 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"); |
|
|
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"); |
|
|
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; |