diff options
author | weidai <weidai11@users.noreply.github.com> | 2006-07-30 17:15:01 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2006-07-30 17:15:01 +0000 |
commit | 1b6b32720093c566867abb2af34e1d9e0c2c2e95 (patch) | |
tree | b2ed0b84682ae41c47d38ed59b8b7efbc8905c19 /fltrimpl.h | |
parent | a0c89ccaaecac4a6401864dab3622ad63bcdddec (diff) | |
download | cryptopp-git-1b6b32720093c566867abb2af34e1d9e0c2c2e95.tar.gz |
change DLL integrity self-test to allow DLL to be Authenticode signed
Diffstat (limited to 'fltrimpl.h')
-rw-r--r-- | fltrimpl.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -50,4 +50,15 @@ #define FILTER_OUTPUT_MODIFIABLE(site, output, length, messageEnd) \ FILTER_OUTPUT2_MODIFIABLE(site, 0, output, length, messageEnd) +#define FILTER_OUTPUT2_MAYBE_MODIFIABLE(site, statement, output, length, messageEnd, modifiable) \ + {\ + case site: \ + statement; \ + if (modifiable ? OutputModifiable(site, output, length, messageEnd, blocking) : Output(site, output, length, messageEnd, blocking)) \ + return STDMAX(size_t(1), length-m_inputPosition);\ + } + +#define FILTER_OUTPUT_MAYBE_MODIFIABLE(site, output, length, messageEnd, modifiable) \ + FILTER_OUTPUT2_MAYBE_MODIFIABLE(site, 0, output, length, messageEnd, modifiable) + #endif |