forked from wolfSSL/wolfssl
opensslextra clang static fixes
This commit is contained in:
@@ -123,7 +123,6 @@ int CheckCertCRL(CYASSL_CRL* crl, DecodedCert* cert)
|
|||||||
{
|
{
|
||||||
CRL_Entry* crle;
|
CRL_Entry* crle;
|
||||||
int foundEntry = 0;
|
int foundEntry = 0;
|
||||||
int revoked = 0;
|
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
CYASSL_ENTER("CheckCertCRL");
|
CYASSL_ENTER("CheckCertCRL");
|
||||||
@@ -157,7 +156,6 @@ int CheckCertCRL(CYASSL_CRL* crl, DecodedCert* cert)
|
|||||||
while (rc) {
|
while (rc) {
|
||||||
if (XMEMCMP(rc->serialNumber, cert->serial, rc->serialSz) == 0) {
|
if (XMEMCMP(rc->serialNumber, cert->serial, rc->serialSz) == 0) {
|
||||||
CYASSL_MSG("Cert revoked");
|
CYASSL_MSG("Cert revoked");
|
||||||
revoked = 1;
|
|
||||||
ret = CRL_CERT_REVOKED;
|
ret = CRL_CERT_REVOKED;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -5970,9 +5970,7 @@ int SetCipherList(Suites* s, const char* list)
|
|||||||
ret = RsaSSL_Sign(signBuffer, signSz, output + idx, sigSz,
|
ret = RsaSSL_Sign(signBuffer, signSz, output + idx, sigSz,
|
||||||
&rsaKey, &ssl->rng);
|
&rsaKey, &ssl->rng);
|
||||||
FreeRsaKey(&rsaKey);
|
FreeRsaKey(&rsaKey);
|
||||||
if (ret > 0)
|
if (ret <= 0)
|
||||||
ret = 0; /* reset on success */
|
|
||||||
else
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -870,7 +870,7 @@ int AddCA(CYASSL_CERT_MANAGER* cm, buffer der, int type, int verify)
|
|||||||
int passwordSz;
|
int passwordSz;
|
||||||
char password[80];
|
char password[80];
|
||||||
|
|
||||||
if (!info->ctx || !info->ctx->passwd_cb)
|
if (!info || !info->ctx || !info->ctx->passwd_cb)
|
||||||
return SSL_BAD_FILE; /* no callback error */
|
return SSL_BAD_FILE; /* no callback error */
|
||||||
passwordSz = info->ctx->passwd_cb(password, sizeof(password), 0,
|
passwordSz = info->ctx->passwd_cb(password, sizeof(password), 0,
|
||||||
info->ctx->userdata);
|
info->ctx->userdata);
|
||||||
|
Reference in New Issue
Block a user