#
# 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($?);
    $scanner_errors &= $errval;
    do_log(2,$output);
    if ($errval) {
	if ($errval == 1) {
	    @virusname = "(unspecified)";
	    do_virus();
	} 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

