Browse code

Add more hints on how to load unsigned bytecode.

"debug mode" is not very useful. Explicitly mention ./configure
--enable-unsigned-bytecode

Török Edvin authored on 2010/08/18 03:34:57
Showing 2 changed files
... ...
@@ -393,7 +393,7 @@ int cl_engine_set_num(struct cl_engine *engine, enum cl_engine_field field, long
393 393
 	case CL_ENGINE_BYTECODE_SECURITY:
394 394
 #ifndef CL_BCUNSIGNED
395 395
 	    if (num == CL_BYTECODE_TRUST_ALL) {
396
-		cli_errmsg("cl_engine_set_num: CL_BYTECODE_TRUST_ALL is only supported when ClamAV is built in debug mode\n");
396
+		cli_errmsg("cl_engine_set_num: CL_BYTECODE_TRUST_ALL is only supported when ClamAV is built with ./configure --enable-unsigned-bytecode\n");
397 397
 		return CL_EARG;
398 398
 	    }
399 399
 #endif
... ...
@@ -1427,6 +1427,7 @@ static int cli_loadcbc(FILE *fs, struct cl_engine *engine, unsigned int *signo,
1427 1427
 #ifndef CL_BCUNSIGNED
1428 1428
     if (!(options & CL_DB_SIGNED)) {
1429 1429
 	cli_warnmsg("Only loading signed bytecode, skipping load of unsigned bytecode!\n");
1430
+	cli_warnmsg("Build with ./configure --enable-unsigned-bytecode to enable loading of unsigned bytecode\n");
1430 1431
 	return CL_SUCCESS;
1431 1432
     }
1432 1433
 #endif