diff options
author | lloyd <[email protected]> | 2009-03-30 18:27:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-03-30 18:27:18 +0000 |
commit | 96d6eb6f29c55e16a37cf11899547886f735b065 (patch) | |
tree | 9f13901e9b44c98d58b2589c9b09c6a7443eb7cd /src/libstate/policy.cpp | |
parent | 3cc3dd72c5f87b76852a55c1f2d1821dba967d8c (diff) |
Thomas Moschny passed along a request from the Fedora packagers which came
up during the Fedora submission review, that each source file include some
text about the license. One handy Perl script later and each file now has
the line
Distributed under the terms of the Botan license
after the copyright notices.
While I was in there modifying every file anyway, I also stripped out the
remainder of the block comments (lots of astericks before and after the
text); this is stylistic thing I picked up when I was first learning C++
but in retrospect it is not a good style as the structure makes it harder
to modify comments (with the result that comments become fewer, shorter and
are less likely to be updated, which are not good things).
Diffstat (limited to 'src/libstate/policy.cpp')
-rw-r--r-- | src/libstate/policy.cpp | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/src/libstate/policy.cpp b/src/libstate/policy.cpp index 0f6044790..dfc1dfc7a 100644 --- a/src/libstate/policy.cpp +++ b/src/libstate/policy.cpp @@ -1,7 +1,9 @@ -/************************************************* -* Default Policy Source File * -* (C) 1999-2008 Jack Lloyd * -*************************************************/ +/* +* Default Policy +* (C) 1999-2008 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #include <botan/libstate.h> @@ -9,9 +11,9 @@ namespace Botan { namespace { -/************************************************* -* OID loading helper function * -*************************************************/ +/* +* OID loading helper function +*/ void add_oid(Library_State& config, const std::string& oid_str, const std::string& name) @@ -22,9 +24,9 @@ void add_oid(Library_State& config, config.set("str2oid", name, oid_str); } -/************************************************* -* Load all of the default OIDs * -*************************************************/ +/* +* Load all of the default OIDs +*/ void set_default_oids(Library_State& config) { /* Public key types */ @@ -185,9 +187,9 @@ void set_default_oids(Library_State& config) "CertificateHolderAuthorizationTemplate"); } -/************************************************* -* Set the default algorithm aliases * -*************************************************/ +/* +* Set the default algorithm aliases +*/ void set_default_aliases(Library_State& config) { config.add_alias("OpenPGP.Cipher.1", "IDEA"); @@ -228,9 +230,9 @@ void set_default_aliases(Library_State& config) config.add_alias("GOST", "GOST-28147-89"); } -/************************************************* -* Set the default configuration toggles * -*************************************************/ +/* +* Set the default configuration toggles +*/ void set_default_config(Library_State& config) { config.set_option("base/default_allocator", "malloc"); @@ -245,9 +247,9 @@ void set_default_config(Library_State& config) config.set_option("x509/exts/crl_number", "yes"); } -/************************************************* -* Set the built-in discrete log groups * -*************************************************/ +/* +* Set the built-in discrete log groups +*/ void set_default_dl_groups(Library_State& config) { config.set("dl", "modp/ietf/768", @@ -495,9 +497,9 @@ void set_default_dl_groups(Library_State& config) } } -/************************************************* -* Set the default policy * -*************************************************/ +/* +* Set the default policy +*/ void Library_State::load_default_config() { set_default_config(*this); |