From: FdaSilvaYY Date: Mon, 4 Jul 2016 18:40:27 +0000 (+0200) Subject: Constify ASN1_INTEGER_get, ASN1_ENUMERATED_get X-Git-Tag: OpenSSL_1_1_0~289 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f48ebf9f4cc5be2624389583be19f1c8895be194;p=oweals%2Fopenssl.git Constify ASN1_INTEGER_get, ASN1_ENUMERATED_get Reviewed-by: Rich Salz Reviewed-by: Richard Levitte --- diff --git a/crypto/asn1/a_int.c b/crypto/asn1/a_int.c index 43174f7165..36248df92d 100644 --- a/crypto/asn1/a_int.c +++ b/crypto/asn1/a_int.c @@ -595,7 +595,7 @@ int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v) return ASN1_ENUMERATED_set_int64(a, v); } -long ASN1_ENUMERATED_get(ASN1_ENUMERATED *a) +long ASN1_ENUMERATED_get(const ASN1_ENUMERATED *a) { int i; int64_t r; diff --git a/doc/crypto/ASN1_INTEGER_get_int64.pod b/doc/crypto/ASN1_INTEGER_get_int64.pod index 24e0f38003..6fa1428c42 100644 --- a/doc/crypto/ASN1_INTEGER_get_int64.pod +++ b/doc/crypto/ASN1_INTEGER_get_int64.pod @@ -10,7 +10,7 @@ ASN1_INTEGER_get_int64, ASN1_INTEGER_get, ASN1_INTEGER_set_int64, ASN1_INTEGER_s #include int ASN1_INTEGER_get_int64(int64_t *pr, const ASN1_INTEGER *a); - int ASN1_INTEGER_get(ASN1_INTEGER *a, long v); + int ASN1_INTEGER_get(const ASN1_INTEGER *a, long v); int ASN1_INTEGER_set_int64(ASN1_INTEGER *a, int64_t r); long ASN1_INTEGER_set(const ASN1_INTEGER *a); @@ -22,7 +22,7 @@ ASN1_INTEGER_get_int64, ASN1_INTEGER_get, ASN1_INTEGER_set_int64, ASN1_INTEGER_s BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn); int ASN1_ENUMERATED_get_int64(int64_t *pr, const ASN1_INTEGER *a); - long ASN1_ENUMERATED_get(ASN1_ENUMERATED *a); + long ASN1_ENUMERATED_get(const ASN1_ENUMERATED *a); int ASN1_ENUMERATED_set_int64(ASN1_INTEGER *a, int64_t r); int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v); diff --git a/include/openssl/asn1.h b/include/openssl/asn1.h index 3655bf5c60..fcf6de9967 100644 --- a/include/openssl/asn1.h +++ b/include/openssl/asn1.h @@ -656,7 +656,7 @@ int ASN1_ENUMERATED_set_int64(ASN1_ENUMERATED *a, int64_t r); int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v); -long ASN1_ENUMERATED_get(ASN1_ENUMERATED *a); +long ASN1_ENUMERATED_get(const ASN1_ENUMERATED *a); ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(const BIGNUM *bn, ASN1_ENUMERATED *ai); BIGNUM *ASN1_ENUMERATED_to_BN(const ASN1_ENUMERATED *ai, BIGNUM *bn);