forked from wolfSSL/wolfssl
Fixes for errors using cppcheck
This commit is contained in:
@ -82,7 +82,8 @@ int main(int argc, char** argv)
|
|||||||
/* Load client certificates into WOLFSSL_CTX */
|
/* Load client certificates into WOLFSSL_CTX */
|
||||||
ret = wolfSSL_CTX_load_verify_buffer(ctx, CERT, SIZEOF_CERT, WOLFSSL_FILETYPE_ASN1);
|
ret = wolfSSL_CTX_load_verify_buffer(ctx, CERT, SIZEOF_CERT, WOLFSSL_FILETYPE_ASN1);
|
||||||
if (ret != SSL_SUCCESS) {
|
if (ret != SSL_SUCCESS) {
|
||||||
fprintf(stderr, "ERROR: failed to load %s, please check the buffer.\n");
|
fprintf(stderr, "ERROR: failed to load client certificate, "
|
||||||
|
"please check the buffer.\n");
|
||||||
util_Cleanup(sockfd,ctx,ssl);
|
util_Cleanup(sockfd,ctx,ssl);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -12293,7 +12293,7 @@ int wc_PKCS7_DecodeCompressedData(PKCS7* pkcs7, byte* pkiMsg, word32 pkiMsgSz,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* get ContentInfo content EXPLICIT SEQUENCE */
|
/* get ContentInfo content EXPLICIT SEQUENCE */
|
||||||
if (GetASNTag(pkiMsg, &idx, &tag, pkiMsgSz < 0)
|
if (GetASNTag(pkiMsg, &idx, &tag, pkiMsgSz) < 0)
|
||||||
return ASN_PARSE_E;
|
return ASN_PARSE_E;
|
||||||
|
|
||||||
if (tag != (ASN_CONSTRUCTED | ASN_CONTEXT_SPECIFIC | 0))
|
if (tag != (ASN_CONSTRUCTED | ASN_CONTEXT_SPECIFIC | 0))
|
||||||
|
Reference in New Issue
Block a user