fixed: crypto++ compile errors, linux compiler syntax bugs, and code style (spaces -> tabs)

This commit is contained in:
Nick Bolton 2013-04-11 00:30:41 +00:00
parent 650da22c33
commit c0dcdd52e7
10 changed files with 99 additions and 77 deletions

View file

@ -16,6 +16,7 @@
*/
#include "CCryptoMode.h"
#include "XSynergy.h"
using namespace CryptoPP;
@ -46,7 +47,7 @@ CCryptoMode::CCryptoMode(ECryptoMode mode, bool encryption) :
break;
default:
throw std::exception("crypto mode not set");
throw XBadCryptoMode();
}
}
else {
@ -71,7 +72,7 @@ CCryptoMode::CCryptoMode(ECryptoMode mode, bool encryption) :
break;
default:
throw std::exception("crypto mode not set");
throw XBadCryptoMode();
}
}
}