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/cms/cms_dalg.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/cms/cms_dalg.cpp')
-rw-r--r-- | src/cms/cms_dalg.cpp | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/src/cms/cms_dalg.cpp b/src/cms/cms_dalg.cpp index 501ea7873..7ed793f4f 100644 --- a/src/cms/cms_dalg.cpp +++ b/src/cms/cms_dalg.cpp @@ -1,7 +1,9 @@ -/************************************************* -* CMS Decoding Operations Source File * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ +/* +* CMS Decoding Operations +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #include <botan/cms_dec.h> #include <botan/x509find.h> @@ -17,9 +19,9 @@ namespace Botan { namespace { -/************************************************* -* Compute the hash of some content * -*************************************************/ +/* +* Compute the hash of some content +*/ SecureVector<byte> hash_of(const SecureVector<byte>& content, const AlgorithmIdentifier& hash_algo, std::string& hash_name) @@ -32,9 +34,9 @@ SecureVector<byte> hash_of(const SecureVector<byte>& content, return hash_fn->process(content); } -/************************************************* -* Find a cert based on SignerIdentifier * -*************************************************/ +/* +* Find a cert based on SignerIdentifier +*/ std::vector<X509_Certificate> get_cert(BER_Decoder& signer_info, X509_Store& store) { @@ -64,9 +66,9 @@ std::vector<X509_Certificate> get_cert(BER_Decoder& signer_info, return found; } -/************************************************* -* Read OriginatorInfo * -*************************************************/ +/* +* Read OriginatorInfo +*/ void read_orig_info(BER_Decoder& info, X509_Store& store) { BER_Object next = info.get_next_object(); @@ -99,9 +101,9 @@ void read_orig_info(BER_Decoder& info, X509_Store& store) info.push_back(next); } -/************************************************* -* Decode any Attributes, and check type * -*************************************************/ +/* +* Decode any Attributes, and check type +*/ SecureVector<byte> decode_attributes(BER_Decoder& ber, const OID& type, bool& bad_attributes) { @@ -150,9 +152,9 @@ SecureVector<byte> decode_attributes(BER_Decoder& ber, const OID& type, } -/************************************************* -* Decode this layer of CMS encoding * -*************************************************/ +/* +* Decode this layer of CMS encoding +*/ void CMS_Decoder::decode_layer() { try { |