summaryrefslogtreecommitdiffstats
path: root/crypto/x509/x509_req.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-08-01 19:30:34 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-08-01 19:53:43 +0100
commitb26ab17f3d3f56be57000e99b8ad94a4e90197a6 (patch)
treecf70f63393ca337a63a9fc87bd3ab5f854d25799 /crypto/x509/x509_req.c
parent67302ade22b99eaa42031016d4861068b0681db3 (diff)
Constify some X509_CRL, X509_REQ functions.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/x509/x509_req.c')
-rw-r--r--crypto/x509/x509_req.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/x509_req.c b/crypto/x509/x509_req.c
index 35743225a8..e1d2c2002b 100644
--- a/crypto/x509/x509_req.c
+++ b/crypto/x509/x509_req.c
@@ -267,12 +267,12 @@ int X509_REQ_add1_attr_by_txt(X509_REQ *req,
return 0;
}
-long X509_REQ_get_version(X509_REQ *req)
+long X509_REQ_get_version(const X509_REQ *req)
{
return ASN1_INTEGER_get(req->req_info.version);
}
-X509_NAME *X509_REQ_get_subject_name(X509_REQ *req)
+X509_NAME *X509_REQ_get_subject_name(const X509_REQ *req)
{
return req->req_info.subject;
}