In PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214691 is a patch https://bugs.freebsd.org/bugzilla/attachment.cgi?id=199093&action=diff I have not tried it (have libressl), but maybe it helps.