Aids in the defense against invading fungal pathogens by degrading their cell wall chitosan. Endohydrolysis of beta-(1->4)-linkages between D-glucosamine residues in a partly acetylated chitosan. Belongs to the glycosyl hydrolase 46 family.