diff options
author | Jack Lloyd <[email protected]> | 2016-03-05 12:26:39 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-03-06 04:22:09 -0500 |
commit | 028a5126095e4eecd4dd213218f241a990fcbddd (patch) | |
tree | bca7266cde5b0089055fca33dee15933259c94d8 /src/lib/mac/mac.h | |
parent | a3ce0bd1e9e018ea69741c4380bf065cccedec93 (diff) |
Add option --module-policy
A module policy is a file specifying three types of modules: ones which
are required, ones which are prohibited, and ones which should be used
if otherwise available (this is mostly for platform specific modules).
Finally there are whatever modules which exist in the library of which
the policy makes no mention. These will be included if an explicit
dependency of some other module pulls them in (so there is no reason
to mention base, utils, ... in the file) but skipped otherwise.
For example policy 'sane' does not mention 'utils' or 'twofish' either
way. Since utils is a dependency of other modules which are included,
but Twofish does not. However unlike an explicitly prohibited module,
not mentioned can still be requested as part of the build (here with
--enable-module=twofish)
Also fixes some test bugs noticed by compiling in different build
configs. DLIES test didn't check that the KDF and MAC existed. Adds a
typedef for MessageAuthenticationCode because typing it twice in a
single line in the DLIES test made me think it's way too long. :) Also
fix some fuzzer build problems. Due to a copy and paste bug the PKCS
certificate (it was not).
Inspired by GH #439
Diffstat (limited to 'src/lib/mac/mac.h')
-rw-r--r-- | src/lib/mac/mac.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/mac/mac.h b/src/lib/mac/mac.h index 90ef4db15..fe3388f3b 100644 --- a/src/lib/mac/mac.h +++ b/src/lib/mac/mac.h @@ -53,6 +53,8 @@ class BOTAN_DLL MessageAuthenticationCode : public Buffered_Computation, virtual MessageAuthenticationCode* clone() const = 0; }; +typedef MessageAuthenticationCode MAC; + } #endif |