[PATCH 4.15 13/64] PKCS#7: fix certificate chain verification