mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
more WOLFSSL_CERT_EXT
This commit is contained in:
@@ -26137,8 +26137,11 @@ static int EncodeCertReq(Cert* cert, DerCert* der, RsaKey* rsaKey,
|
|||||||
* asserted and the key usage extension, if present, asserts the
|
* asserted and the key usage extension, if present, asserts the
|
||||||
* keyCertSign bit */
|
* keyCertSign bit */
|
||||||
/* Set CA and path length */
|
/* Set CA and path length */
|
||||||
if ((cert->isCA) && (cert->pathLen) &&
|
if ((cert->isCA) && (cert->pathLen)
|
||||||
((cert->keyUsage & KEYUSE_KEY_CERT_SIGN) || (!cert->keyUsage))) {
|
#ifdef WOLFSSL_CERT_EXT
|
||||||
|
&& ((cert->keyUsage & KEYUSE_KEY_CERT_SIGN) || (!cert->keyUsage))
|
||||||
|
#endif
|
||||||
|
) {
|
||||||
der->caSz = SetCaWithPathLen(der->ca, sizeof(der->ca), cert->pathLen);
|
der->caSz = SetCaWithPathLen(der->ca, sizeof(der->ca), cert->pathLen);
|
||||||
if (der->caSz <= 0)
|
if (der->caSz <= 0)
|
||||||
return CA_TRUE_E;
|
return CA_TRUE_E;
|
||||||
|
Reference in New Issue
Block a user