Dicom server secure send receive

Hi,
I am suing win32 visual studio, create .dcm files. How to securely, send receive patient data to and from a server?. What is widespread servers used for this. I have read about the azure. Any c++ code example for this available?
what openssl does in development process of creating .dcm files?.

This is really out of scope for Geant4’s capabilities, so we can’t offer any advice here. High security data transfer like this really needs consultation with the relevant authorities/workplaces as they may have specific rules/regulations/laws that you must follow.