diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-08-12 00:40:49 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-08-23 11:47:22 +0200 |
commit | bf9d5e483db0683178f43ef74a4ae6577482db83 (patch) | |
tree | fce01b946d2e37077c6d18b4a51529f47fef20fd /crypto/x509v3/v3_enum.c | |
parent | a026fbf977ccac5c59597c9b2e1e1c288d0b1b69 (diff) |
Constify some input parameters.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/x509v3/v3_enum.c')
-rw-r--r-- | crypto/x509v3/v3_enum.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/x509v3/v3_enum.c b/crypto/x509v3/v3_enum.c index 03daef9947..f39cb5ac2a 100644 --- a/crypto/x509v3/v3_enum.c +++ b/crypto/x509v3/v3_enum.c @@ -38,10 +38,12 @@ const X509V3_EXT_METHOD v3_crl_reason = { crl_reasons }; -char *i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *method, ASN1_ENUMERATED *e) +char *i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *method, + const ASN1_ENUMERATED *e) { ENUMERATED_NAMES *enam; long strval; + strval = ASN1_ENUMERATED_get(e); for (enam = method->usr_data; enam->lname; enam++) { if (strval == enam->bitnum) |