Add crypto to existing network class
This commit is contained in:
+6
-3
@@ -4,11 +4,14 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "crypto.hpp"
|
||||
|
||||
static void dos_detected( const char *expression, const char *file, int line, const char *function )
|
||||
{
|
||||
fprintf( stderr, "Illegal counterparty input (possible denial of service) in function %s at %s:%d, failed test: %s\n",
|
||||
function, file, line, expression );
|
||||
exit( 1 );
|
||||
char buffer[ 2048 ];
|
||||
snprintf( buffer, 2048, "Illegal counterparty input (possible denial of service) in function %s at %s:%d, failed test: %s\n",
|
||||
function, file, line, expression );
|
||||
throw CryptoException( buffer );
|
||||
}
|
||||
|
||||
#define dos_assert(expr) \
|
||||
|
||||
Reference in New Issue
Block a user