Modifications for libhttps