[PATCH 4.14 13/54] PKCS#7: fix certificate chain verification