fix errors in mac, stip whitespace from dh_auth