summaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-05-02 11:08:33 +0100
committerMatt Caswell <matt@openssl.org>2017-05-19 09:01:07 +0100
commitc231202e10a078fc52cd51301553a1a09a957f8f (patch)
tree73b855c279873051af13e0892e68bb8f4cbce53a /crypto/asn1
parente68f0ea8d3c87a018646ac652b57a18da41cfbf6 (diff)
Fix ASN1_TIME_to_generalizedtime to take a const ASN1_TIME
Fixes #1526 Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3360) (cherry picked from commit 9bfeeef8ee2220339e601a028fa991c30d296ed4)
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/a_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c
index db82d297d2..46f539cb8d 100644
--- a/crypto/asn1/a_time.c
+++ b/crypto/asn1/a_time.c
@@ -59,7 +59,7 @@ int ASN1_TIME_check(const ASN1_TIME *t)
}
/* Convert an ASN1_TIME structure to GeneralizedTime */
-ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t,
+ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t,
ASN1_GENERALIZEDTIME **out)
{
ASN1_GENERALIZEDTIME *ret = NULL;