Micah Snyder
38fe8b69a0
Added .clang-format style rules, clam-format script to automate formatting of ClamAV code, and preparing select files so that clang-format does not alter carefully formatted sections.
6 years ago
Micah Snyder
5ba88cab51
Corrections to links in UserManual.
7 years ago
Micah Snyder
f1f31c6acf
Removed rc moniker for the 0.100.0 stable release. Added docs/html back so it may be packaged in the release tarball.
7 years ago
Micah Snyder
9ad37622ae
Fixing variable name in #else condition that broke the build on freebsd, other non-linux, non-mac, non-windows os's.
7 years ago
Mickey Sola
29267a8859
bcomp - removing const qualifier from working comp buffers
7 years ago
Mickey Sola
0ef888f546
bcomp - reverting change that forced scanning on raw files only
7 years ago
Mickey Sola
dbb60dc9a8
bcomp - fixing signedness issue with large extracted binary values
7 years ago
Micah Snyder (micasnyd)
cc12e21dd2
bb12221: Fix for subtle type-mismatch that could result in an infinite loop with a large number of sigs.
7 years ago
Mickey Sola
89d6620b3a
docs - updating Usage docs based on feedback
7 years ago
Mickey Sola
68ded1f6d7
docs - updating Usage on-access info
7 years ago
Mickey Sola
ab012ecae8
docs - adding links to Usage documentations along with some other formatting touchups
7 years ago
Mickey Sola
6ed3d579a7
docs - overhauling Usage documentation
7 years ago
Micah Snyder (micasnyd)
7e7663abf6
libclamav / clamav.h documentation updated both to clean up existing documentation and to add new documentation.
7 years ago
Micah Snyder
83bc694ced
Restructured the signature writing documentation, and supplemented it with dconf documentation, file type magic documentation, and references for ClamAV functionality levels.
7 years ago
Andrew
799c100266
Update sig docs to have more info about sig writing
7 years ago
Micah Snyder
53a419744c
Added recommended system requirements to the user manual in the introduction.
7 years ago
Micah Snyder
8a6eec6a13
Some formatting adjustments to the development guide. Added development guide to UserManual.md table of contents.
7 years ago
Andrew
47ae24a8a6
Update development docs based on Micah's feedback
7 years ago
Andrew
678f79064a
Add page with use info related to ClamAV dev
7 years ago
Micah Snyder
3c43fffda7
Improvements to signature writing documentation. Notably the inclusion of a comprehensive CL_TYPE file type reference, requested by in bb11408.
7 years ago
Micah Snyder (micasnyd)
2f28382694
Updated version string to 0.101-rc and incremented the FLEVEL to 101.
7 years ago
Micah Snyder (micasnyd)
08afc0c71e
Removing clamav-for-windows.
7 years ago
Micah Snyder (micasnyd)
6e8e9fca45
Updated win32 zlib dependency from 1.2.5 to 1.2.11.
7 years ago
Micah Snyder (micasnyd)
4d3feda9c1
Aligning libclammspack version-info with upstream libmspack version-info (1:0:1 for libmspack 0.8alpha).
7 years ago
Micah Snyder (micasnyd)
b690725040
Fix for NULL pointer derefence when using custom database download.
7 years ago
Micah Snyder (micasnyd)
cda3b5f0ca
Update to NEWS.md to include details about Authenticode parsing improvements.
7 years ago
Micah Snyder (micasnyd)
fef94048c8
bb12220: Converting strnlen() calls to cli_strnlen() for systems such as Solaris 10 where strnlen() is not available. Adding #else clause to cli_get_filepath_from_filedesc() for platforms where we have not implemented a mechanism to determine the filename from the file descriptor.
7 years ago
Mickey Sola
ceef37d3b6
jira-191 - dev/0.101 - expanding upon on-access documentation
7 years ago
Mickey Sola
ee3741fea4
docs - adding OnAccess user manual to docs
7 years ago
Micah Snyder
bb62d61ab0
Setting win32 installer name to ClamAV-0.101-beta. Setting recursive option to include user manual docs without having to explicitly list each file.
7 years ago
Micah Snyder
e766303b2f
Removing final references to libmspack-0.5alpha, preventing make dist.
7 years ago
Micah Snyder
ebea41ed64
Moving variable declaration to top of function because ‘for’ loop initial declarations are only allowed in C99 mode.
7 years ago
Micah Snyder
f8a5230cbf
Added ClamAV 0.101.0 release notes to NEWS.md.
7 years ago
Micah Snyder
311c3501e4
Autojunk'd
7 years ago
Micah Snyder
420426dd5f
Incrementing the libclamav version numbers to 9.0.0 and setting the version strings to 0.101.0-beta.
7 years ago
Micah Snyder
a6165cd487
bb12151: Added --foreground to clamd help output and man page. Also correcting the default bytecode timeout in the clamscan man page.
7 years ago
Micah Snyder
3aa41eb52a
Removed sdl check from mspack so it possibly-(but not actually)-uninitialized-local-variables will not be treated as an error. Added matcher-byte-comp.c to libclamav.vcxproj.
7 years ago
Andrew
7f46503595
Allow the NULL to be missing on all AlgorithmIds
...
Some of the MS samples previously covered by ClamAV have
AlgorithmIdentifiers that omit the (required) NULL byte, and I
had changed the code to make this a hard requirement in some
places. Now we allow this is in all cases.
Also, I simplified the countersignature parsing code so that
any valid RSA OID is supported in the digestEncryptionAlgorithm
field... This makes the code cleaner and should avoid any
future variations from the specification (if SHA1RSA is an
acceptable value to pass, SHA256RSA probably is too)
7 years ago
Andrew
64ecd1099c
Fix support for authenticode signatures from external .cat files
...
This commit adds back in support for whitelisting files based on
signatures from .cat files loaded in via a '-d' flag to clamscan.
This also makes it so that a .crb blacklist rule match can't be
overruled by a signature in a .cat file
7 years ago
Andrew
b9b4c36c8b
Update tbshash to have enough space for SHA512 hashes
7 years ago
Andrew
50d1a0b6e9
Make --dumpcerts be more consistent, improve cert processing
...
This commit makes the following changes:
- --dumpcerts will print certificates even if they already exist
in any .crb files loaded
- --dumpcerts will print certificates only once
- Having a whitelist CRB rule on a leaf certificate should no longer
prevent signature verification from happening. NOTE, this doesn't
mean that you can have whitelist rules for leaf certificates and have
that result in a trusted signature - that doesn't work yet
- Determining whether a certificate is blacklisted now includes comparing
the public key data (modulus and exponent) in addition to the subject
and serial hashes
- If a blacklisted certificate is detected, the code will return
immediately instead of continuing on to parse the rest of the signature
7 years ago
Andrew
db39ba2a4d
Add debug message in the case where a seemingly useless cert is detected
7 years ago
Andrew
5df252e7cd
Set the certSign flag for certificates without a KeyUsage
...
The MS MD5 root cert doesn't have the KeyUsage set and appears to
validate just fine
7 years ago
Andrew
4ef79cfcbf
Fix a memory leak that occurs when a PE is whitelisted due to a valid signature
7 years ago
Andrew
b1c135393b
Allow x509 certs with v1 TBSCertificate sections in the timestamp chain
...
There are some Windows binaries that have certificates with version 1
TBSCertificate sections. This technically isn't allowed by the spec,
but the Windows API still seems to report these are being OK
7 years ago
Andrew
0bbf4e13a6
Fix a bug causing nested signatures to trigger the no-countersignature case
...
In an earlier commit, I mistakenly check for whether a nested signature has
been seen when determining whether a countersignature is present instead of
checking that the countersignature has been seen
7 years ago
Andrew
d28779ec6a
Allow for the timestampToken OID in place of pkcs7-data OID in the countersignature
7 years ago
Andrew
796cf4ced9
Allow '0' as a counterSignature version
...
The spec says this value should be 1, but some binaries have it at
zero and still appear to validate successfully by the Windows API
7 years ago
Andrew
0973eb97be
Add more support for SHA384/SHA512
...
I think SHA384/SHA512 hashes are supported in all parts of the authenticode
signature now
7 years ago
Andrew
15c54ab6ba
Allow <hashtype>WithRSAEncryption OIDs when expecting <hashtype> OIDs
...
Some of the signature seem to use the former instead, and it appears to
be accepted as legitimate, so allow it.
7 years ago