aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_asn1.c
diff options
context:
space:
mode:
authorLeon M. George <leon@georgemail.eu>2016-12-06 19:45:18 +0100
committerLeon M. George <leon@georgemail.eu>2016-12-09 19:39:32 +0100
commit698b52c16ba8b29533963e16a61a3bfa254a51ee (patch)
tree81b69142f12ce57e8251e7f3cc10f8fed82040d5 /ext/openssl/ossl_asn1.c
parent25cebdabaf9fb4b048405f5f94394d4335590361 (diff)
downloadruby-openssl-698b52c16ba8b29533963e16a61a3bfa254a51ee.tar.gz
asn1: more output on error 'bad GENERALIZEDTIME'
Diffstat (limited to 'ext/openssl/ossl_asn1.c')
-rw-r--r--ext/openssl/ossl_asn1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/openssl/ossl_asn1.c b/ext/openssl/ossl_asn1.c
index 7ef010d2..534796f5 100644
--- a/ext/openssl/ossl_asn1.c
+++ b/ext/openssl/ossl_asn1.c
@@ -54,7 +54,8 @@ asn1time_to_time(const ASN1_TIME *time)
tm.tm_sec = 0;
}
else if (count != 6) {
- ossl_raise(rb_eTypeError, "bad GENERALIZEDTIME format" );
+ ossl_raise(rb_eTypeError, "bad GENERALIZEDTIME format: \"%s\"",
+ time->data);
}
break;
default: