From 96d6eb6f29c55e16a37cf11899547886f735b065 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 30 Mar 2009 18:27:18 +0000 Subject: 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). --- src/utils/exceptn.cpp | 46 ++++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-) (limited to 'src/utils/exceptn.cpp') diff --git a/src/utils/exceptn.cpp b/src/utils/exceptn.cpp index 29357afa5..753d63424 100644 --- a/src/utils/exceptn.cpp +++ b/src/utils/exceptn.cpp @@ -1,57 +1,59 @@ -/************************************************* -* Exceptions Source File * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ +/* +* Exceptions +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #include #include namespace Botan { -/************************************************* -* Constructor for Invalid_Key_Length * -*************************************************/ +/* +* Constructor for Invalid_Key_Length +*/ Invalid_Key_Length::Invalid_Key_Length(const std::string& name, u32bit length) { set_msg(name + " cannot accept a key of length " + to_string(length)); } -/************************************************* -* Constructor for Invalid_Block_Size * -*************************************************/ +/* +* Constructor for Invalid_Block_Size +*/ Invalid_Block_Size::Invalid_Block_Size(const std::string& mode, const std::string& pad) { set_msg("Padding method " + pad + " cannot be used with " + mode); } -/************************************************* -* Constructor for Invalid_IV_Length * -*************************************************/ +/* +* Constructor for Invalid_IV_Length +*/ Invalid_IV_Length::Invalid_IV_Length(const std::string& mode, u32bit bad_len) { set_msg("IV length " + to_string(bad_len) + " is invalid for " + mode); } -/************************************************* -* Constructor for Algorithm_Not_Found * -*************************************************/ +/* +* Constructor for Algorithm_Not_Found +*/ Algorithm_Not_Found::Algorithm_Not_Found(const std::string& name) { set_msg("Could not find any algorithm named \"" + name + "\""); } -/************************************************* -* Constructor for Invalid_Algorithm_Name * -*************************************************/ +/* +* Constructor for Invalid_Algorithm_Name +*/ Invalid_Algorithm_Name::Invalid_Algorithm_Name(const std::string& name) { set_msg("Invalid algorithm name: " + name); } -/************************************************* -* Constructor for Config_Error * -*************************************************/ +/* +* Constructor for Config_Error +*/ Config_Error::Config_Error(const std::string& err, u32bit line) { set_msg("Config error at line " + to_string(line) + ": " + err); -- cgit v1.2.3