fixes, coddling, and suppressions for clang-tidy complaints:

examples/pem/pem.c: fix stdio stream leaks.

src/ssl.c and src/ssl_load.c: suppress concurrency-mt-unsafe around getenv().  getenv() is threadsafe as long as no threads putenv() or setenv().

wolfssl/openssl/asn1.h: add parentheses to fix bugprone-macro-parentheses in ASN1_EX_TEMPLATE_TYPE(), and suppress misfiring bugprone-macro-parentheses around IMPLEMENT_ASN1_FUNCTIONS().
This commit is contained in:
Daniel Pouzzner
2024-09-30 23:19:49 -05:00
parent ee7f02bbd6
commit 65853a41b9
4 changed files with 21 additions and 8 deletions

View File

@@ -1024,6 +1024,13 @@ int main(int argc, char* argv[])
if (ret < 0) {
fprintf(stderr, "%s\n", wc_GetErrorString(ret));
}
if (in_file != stdin)
(void)fclose(in_file);
if (out_file != stdout)
(void)fclose(out_file);
return (ret == 0) ? 0 : 1;
}