strlcpy and strlcat

Gary E. Miller gem at rellim.com
Wed Jun 13 22:20:35 UTC 2018


Yo Hal!

On Wed, 13 Jun 2018 00:41:57 -0700
Hal Murray via devel <devel at ntpsec.org> wrote:

> Since we now require libcrypto, it looks like we can drop
> libntp/strl_obsd.c with a bit of work on include/ntp_stdlib.h
> 
>        OPENSSL_strlcpy(), OPENSSL_strlcat() and OPENSSL_strnlen() are
>        equivalents of the common C library functions and are provided
> for portability.

There have been recent discussions on Debian and Gentoo mailing lists
about dropping, or seriously forking, openssl support.

I have not studied the issues, and have no opinion on them, but
they are related to changes in the openssl API not being supported
by many openssl users, like openssh.

Libressl would seem to be an answer, but some refuse to support it
on license grounds.

More on the issues here:

https://archives.gentoo.org/gentoo-dev/message/125a895823220e28c59eced469c22914

Until the big boys decide what to do with openssl, maybe we should avoid
getting in the middle?

The right fix is to get glibc to finally support strlcpy() and strlcat().
Not gonna hold my breath on that happening.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20180613/60a7a2b8/attachment.bin>


More information about the devel mailing list