提交 5ebd2fcb 编写于 作者: D Dr. Stephen Henson

Constify X509_certificate_type()

Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 8adc1cb8
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/x509.h> #include <openssl/x509.h>
int X509_certificate_type(X509 *x, const EVP_PKEY *pkey) int X509_certificate_type(const X509 *x, const EVP_PKEY *pkey)
{ {
const EVP_PKEY *pk; const EVP_PKEY *pk;
int ret = 0, i; int ret = 0, i;
......
...@@ -639,7 +639,7 @@ const X509_ALGOR *X509_get0_tbs_sigalg(const X509 *x); ...@@ -639,7 +639,7 @@ const X509_ALGOR *X509_get0_tbs_sigalg(const X509 *x);
EVP_PKEY *X509_get0_pubkey(const X509 *x); EVP_PKEY *X509_get0_pubkey(const X509 *x);
EVP_PKEY *X509_get_pubkey(X509 *x); EVP_PKEY *X509_get_pubkey(X509 *x);
ASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x); ASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x);
int X509_certificate_type(X509 *x, const EVP_PKEY *pubkey /* optional */ ); int X509_certificate_type(const X509 *x, const EVP_PKEY *pubkey);
long X509_REQ_get_version(const X509_REQ *req); long X509_REQ_get_version(const X509_REQ *req);
int X509_REQ_set_version(X509_REQ *x, long version); int X509_REQ_set_version(X509_REQ *x, long version);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册