int PKCS7_set_cipher(PKCS7 *p7, EVP_CIPHER *cipher)
int PKCS7_set_cipher(PKCS7 *p7, const EVP_CIPHER *cipher)
int PKCS7_set_cipher(PKCS7 *p7, EVP_CIPHER *cipher)	{	int i;	PKCS7_ENC_CONTENT *ec;	i=OBJ_obj2nid(p7->type);	switch (i)		{	case NID_pkcs7_signedAndEnveloped:		ec=p7->d.signed_and_enveloped->enc_data;		break;	case NID_pkcs7_enveloped:		ec=p7->d.enveloped->enc_data;		break;	default:		PKCS7err(PKCS7_F_PKCS7_SET_CIPHER,PKCS7_R_WRONG_CONTENT_TYPE);		return(0);		}	ec->algorithm->algorithm=OBJ_nid2obj(EVP_CIPHER_type(cipher));	return(ec->algorithm->algorithm != NULL);	}