PKCS7_is_detached
if (PKCS7_is_detached(p7)) {
if (!PKCS7_is_detached(p7) && data_body == NULL) {
if (!PKCS7_is_detached(p7)) {