diff options
-rw-r--r-- | src/openssl.c | 2 |
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); |