aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2018-07-31 14:43:18 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2018-07-31 14:43:18 +1000
commit5ac9b2f665505f234729d33da95f9e5b5d3d98e0 (patch)
treef97a3f910ecad5f90f866876d15ada2a4090dd54 /src
parent2fc743e9a8f37a2ffe1785ce6dbcc773a81010ec (diff)
downloadluaossl-5ac9b2f665505f234729d33da95f9e5b5d3d98e0.tar.gz
luaossl-5ac9b2f665505f234729d33da95f9e5b5d3d98e0.tar.bz2
luaossl-5ac9b2f665505f234729d33da95f9e5b5d3d98e0.zip
src/openssl.c: Use DER true value of 0xFF
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c2
1 files changed, 1 insertions, 1 deletions
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);