if(cr->lc->lime==1){/* shall we try to encrypt messages? */
if(linphone_core_lime_enabled(cr->lc)){/* shall we try to encrypt messages? */
linphone_chat_message_ref(msg);/* ref the message or it may be destroyed by callback if the encryption failed */
if((msg->content_type!=NULL)&&(strcmp(msg->content_type,"application/vnd.gsma.rcs-ft-http+xml")==0)){/* it's a file transfer, content type shall be set to application/cipher.vnd.gsma.rcs-ft-http+xml*/
/* set the zid caches files : create two ZID cache from this valid one inserting the auto-generated sip URI for the peer account as keys in ZID cache are indexed by peer sip uri */
/* set the zid caches files : create two ZID cache from this valid one inserting the auto-generated sip URI for the peer account as keys in ZID cache are indexed by peer sip uri */