forked from wolfSSL/wolfssl
Release Fixes
1. Added some typecasting for g++ v8 permissive pointer use errors with void*.
This commit is contained in:
@@ -16714,7 +16714,7 @@ static void test_PKCS7_signed_enveloped(void)
|
||||
pt = (void*)pkcs7->certList;
|
||||
pkcs7->certList = NULL; /* no certs in bundle */
|
||||
AssertIntGT((sigSz = wc_PKCS7_EncodeSignedData(pkcs7, sig, sigSz)), 0);
|
||||
pkcs7->certList = pt; /* restore pointer for PKCS7 free call */
|
||||
pkcs7->certList = (Pkcs7Cert*)pt; /* restore pointer for PKCS7 free call */
|
||||
wc_PKCS7_Free(pkcs7);
|
||||
wc_FreeRng(&rng);
|
||||
|
||||
|
@@ -12574,7 +12574,7 @@ int wc_SetAuthKeyIdFromCert(Cert *cert, const byte *der, int derSz)
|
||||
}
|
||||
|
||||
if (ret >= 0) {
|
||||
ret = SetAuthKeyIdFromDcert(cert, cert->decodedCert);
|
||||
ret = SetAuthKeyIdFromDcert(cert, (DecodedCert*)cert->decodedCert);
|
||||
#ifndef WOLFSSL_CERT_GEN_CACHE
|
||||
wc_SetCert_Free(cert);
|
||||
#endif
|
||||
@@ -13127,7 +13127,7 @@ int wc_SetIssuerBuffer(Cert* cert, const byte* der, int derSz)
|
||||
}
|
||||
|
||||
if (ret >= 0) {
|
||||
SetNameFromDcert(&cert->issuer, cert->decodedCert);
|
||||
SetNameFromDcert(&cert->issuer, (DecodedCert*)cert->decodedCert);
|
||||
#ifndef WOLFSSL_CERT_GEN_CACHE
|
||||
wc_SetCert_Free(cert);
|
||||
#endif
|
||||
@@ -13153,7 +13153,7 @@ int wc_SetSubjectBuffer(Cert* cert, const byte* der, int derSz)
|
||||
}
|
||||
|
||||
if (ret >= 0) {
|
||||
SetNameFromDcert(&cert->subject, cert->decodedCert);
|
||||
SetNameFromDcert(&cert->subject, (DecodedCert*)cert->decodedCert);
|
||||
#ifndef WOLFSSL_CERT_GEN_CACHE
|
||||
wc_SetCert_Free(cert);
|
||||
#endif
|
||||
@@ -13245,7 +13245,7 @@ int wc_SetAltNamesBuffer(Cert* cert, const byte* der, int derSz)
|
||||
}
|
||||
|
||||
if (ret >= 0) {
|
||||
ret = SetAltNamesFromDcert(cert, cert->decodedCert);
|
||||
ret = SetAltNamesFromDcert(cert, (DecodedCert*)cert->decodedCert);
|
||||
#ifndef WOLFSSL_CERT_GEN_CACHE
|
||||
wc_SetCert_Free(cert);
|
||||
#endif
|
||||
@@ -13271,7 +13271,7 @@ int wc_SetDatesBuffer(Cert* cert, const byte* der, int derSz)
|
||||
}
|
||||
|
||||
if (ret >= 0) {
|
||||
ret = SetDatesFromDcert(cert, cert->decodedCert);
|
||||
ret = SetDatesFromDcert(cert, (DecodedCert*)cert->decodedCert);
|
||||
#ifndef WOLFSSL_CERT_GEN_CACHE
|
||||
wc_SetCert_Free(cert);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user