summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authoragnosticdev <agnosticdev@gmail.com>2019-05-23 20:33:19 -0500
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2019-05-24 09:58:57 +0200
commitdc9f2a69f34937f8e48a51c863c18633c813820d (patch)
treed92299f73f957b5e688663c4c331d01e678e38d7 /crypto
parent6b261345d5ad7419b9e01d00a011d91db8557b8c (diff)
issue-8973: Added const to parameters for values that were not altered
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8995) (cherry picked from commit 5435a830765a63692b8e1e406142d1602133a5a0)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/x509v3/v3_genn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509v3/v3_genn.c b/crypto/x509v3/v3_genn.c
index 85fc3fc246..9937fde82b 100644
--- a/crypto/x509v3/v3_genn.c
+++ b/crypto/x509v3/v3_genn.c
@@ -143,7 +143,7 @@ void GENERAL_NAME_set0_value(GENERAL_NAME *a, int type, void *value)
a->type = type;
}
-void *GENERAL_NAME_get0_value(GENERAL_NAME *a, int *ptype)
+void *GENERAL_NAME_get0_value(const GENERAL_NAME *a, int *ptype)
{
if (ptype)
*ptype = a->type;
@@ -188,7 +188,7 @@ int GENERAL_NAME_set0_othername(GENERAL_NAME *gen,
return 1;
}
-int GENERAL_NAME_get0_otherName(GENERAL_NAME *gen,
+int GENERAL_NAME_get0_otherName(const GENERAL_NAME *gen,
ASN1_OBJECT **poid, ASN1_TYPE **pvalue)
{
if (gen->type != GEN_OTHERNAME)