added CMS certificate patch to decode.c