summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard J. Moore <rich@kde.org>2016-07-30 11:47:18 +0100
committerRich Salz <rsalz@openssl.org>2016-07-30 15:19:24 -0400
commit1421aeadd757e0c564314ba62521979d08884ccc (patch)
treec8ce2b9377f3698c9fc33161723054f76bcc7244 /include
parente5452d40be3954a12b62fa8ce6746e8a792216e1 (diff)
Make some more X509 functions const.
Reviewed-by: Stephen Henson <steve@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1367)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ocsp.h2
-rw-r--r--include/openssl/x509.h12
2 files changed, 7 insertions, 7 deletions
diff --git a/include/openssl/ocsp.h b/include/openssl/ocsp.h
index a468a5233e..ecf3a2d765 100644
--- a/include/openssl/ocsp.h
+++ b/include/openssl/ocsp.h
@@ -187,7 +187,7 @@ OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, X509 *subject, X509 *issuer);
OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst,
X509_NAME *issuerName,
ASN1_BIT_STRING *issuerKey,
- ASN1_INTEGER *serialNumber);
+ const ASN1_INTEGER *serialNumber);
OCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid);
diff --git a/include/openssl/x509.h b/include/openssl/x509.h
index 7546895fca..c2623f6df6 100644
--- a/include/openssl/x509.h
+++ b/include/openssl/x509.h
@@ -609,17 +609,17 @@ int ASN1_item_sign_ctx(const ASN1_ITEM *it, X509_ALGOR *algor1,
X509_ALGOR *algor2, ASN1_BIT_STRING *signature,
void *asn, EVP_MD_CTX *ctx);
-long X509_get_version(X509 *x);
+long X509_get_version(const X509 *x);
int X509_set_version(X509 *x, long version);
int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial);
-ASN1_INTEGER *X509_get_serialNumber(X509 *x);
+const ASN1_INTEGER *X509_get_serialNumber(const X509 *x);
int X509_set_issuer_name(X509 *x, X509_NAME *name);
-X509_NAME *X509_get_issuer_name(X509 *a);
+X509_NAME *X509_get_issuer_name(const X509 *a);
int X509_set_subject_name(X509 *x, X509_NAME *name);
-X509_NAME *X509_get_subject_name(X509 *a);
-ASN1_TIME * X509_get_notBefore(X509 *x);
+X509_NAME *X509_get_subject_name(const X509 *a);
+ASN1_TIME * X509_get_notBefore(const X509 *x);
int X509_set_notBefore(X509 *x, const ASN1_TIME *tm);
-ASN1_TIME *X509_get_notAfter(X509 *x);
+ASN1_TIME *X509_get_notAfter(const X509 *x);
int X509_set_notAfter(X509 *x, const ASN1_TIME *tm);
int X509_set_pubkey(X509 *x, EVP_PKEY *pkey);
int X509_up_ref(X509 *x);