From 5ac9b2f665505f234729d33da95f9e5b5d3d98e0 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 31 Jul 2018 14:43:18 +1000 Subject: src/openssl.c: Use DER true value of 0xFF --- src/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/openssl.c b/src/openssl.c index 5d757a2..827aa7d 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -6353,7 +6353,7 @@ static int xc_setBasicConstraint(lua_State *L) { } if (CA != -1) - bs->ca = CA; + bs->ca = CA ? 0xFF : 0; /* use DER value */ if (pathLen >= 0) { ASN1_INTEGER_free(bs->pathlen); -- cgit v1.2.3-59-g8ed1b