#include <stdexcept>
#include "db/database.h"
-#include "db/mysql.h"
#include "crypto/simpleOpensslSigner.h"
#include "crypto/remoteSigner.h"
#include "crypto/sslUtil.h"
std::string path;
#ifdef NDEBUG
- path = "/etc/cacert/cassiopeia/cassiopeia.conf";
+ path = "/etc/wpia/cassiopeia/cassiopeia.conf";
#else
path = "config.txt";
#endif
DefaultRecordHandler* dh = new DefaultRecordHandler( std::shared_ptr<Signer>( new SimpleOpensslSigner( ) ), slip1 );
logger::note( "Entering mainloop" );
+
while( true ) {
try {
dh->handle();
}catch( std::exception &e){
printf( "Fatal Error (+logger failed): %s!\n", e.what() );
}
+
return -1;
} catch( ... ) {
- try{
+ try {
logger::fatal( "Fatal Error: Unknown Exception!\n" );
}catch( std::exception &e){
printf( "Fatal Error (+ logger failed): %s!\n", e.what() );
}
+
return -1;
}