]> WPIA git - cassiopeia.git/blobdiff - src/apps/signer.cpp
fix: catch another exception
[cassiopeia.git] / src / apps / signer.cpp
index 3468eb274d6697c6cf399aefdcc81df182c98bd9..2b6798c935aa2f15893c5c059ed5135d640797e3 100644 (file)
@@ -36,7 +36,7 @@ int main( int argc, const char* argv[] ) try {
 #endif
 
     if( parseConfig( path ) != 0 ) {
-        logger::fatal("Could not parse configuration file.");
+        logger::fatal( "Could not parse configuration file." );
         return -1;
     }
 
@@ -49,10 +49,11 @@ int main( int argc, const char* argv[] ) try {
 
     std::shared_ptr<BIO> conn = openSerial( serialPath );
     std::shared_ptr<BIO> slip1( BIO_new( toBio<SlipBIO>() ), BIO_free );
-    static_cast<SlipBIO*>( slip1->ptr )->setTarget( std::shared_ptr<OpensslBIO>( new OpensslBIOWrapper( conn ) ) );
+    static_cast<SlipBIO*>( slip1->ptr )->setTarget( std::shared_ptr<OpensslBIO>( new OpensslBIOWrapper( conn ) ), true );
 
     DefaultRecordHandler* dh = new DefaultRecordHandler( std::shared_ptr<Signer>( new SimpleOpensslSigner( ) ), slip1 );
 
+    logger::note( "Entering mainloop" );
     while( true ) {
         try {
             dh->handle();