#
# ESET Software NOD32
# preliminary support - may not work at all!
# untested! 

if ($nod32) {
    do_log(2,"Using $nod32");
    chop($output = `$nod32 -subdir+ $TEMPDIR/parts`);
    $errval = retcode($?);
    do_log(2,$output);
    if ($errval == 0) {			# no errors, no viruses found
	$scanner_errors = 0;
    } elsif ($errval == 1) {		# no errors, viruses discovered
	$scanner_errors = 0;
	@virusname = "(unspecified)";
	return 1;  # 'true' indicates virus found and stops further checking
    } else {
	do_log(0,"Virus scanner failure: $nod32 (error code: $errval)");
    }
}

# List of Return Codes
#define NOD32_EXIT_CODE_OK               0
#define NOD32_EXIT_CODE_VIRUS            1
#define NOD32_EXIT_CODE_CLEANED          2
#define NOD32_EXIT_INTERNAL_ERROR        10
