Yesterday the code
Stopped working. This is weird because this last line has been in the project for years and worked in the app with the same MAS_Receipt from the App Store for a long time. All of the checks work except this last one. It returns a signer status of KCMSSignerInvalid Cert. Why would this stop working all of a sudden when it worked for years?
Code:
OSStatus status = CMSDecoderCreate(&decoder);
status = CMSDecoderUpdateMessage(decoder, receiptData.bytes, receiptData.length);
CMSSignerStatus signerStatus;
status = CMSDecoderCopySignerStatus(decoder, 0, policyRef, TRUE, &signerStatus, &trustRef, &certVerifyResult);