Understanding and Fixing the Heartbleed Vulnerability