https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210537

--- Comment #17 from Mikhail T. <m...@aldan.algebra.com> ---
(In reply to Eugene Grosbein from comment #16)
> our libc actually has b64_ntop() function for base64 encoding provided with 
> <resolv.h>

I saw that, but it asks for a buffer to fill, whereas -lcrypto's implementation
can output directly into a FILE *. I tried using -larchive, but that library's
base64-code unconditionally wraps the base64-output with `begin-base64 ...
====` lines, which confuses e-mail programs
(https://github.com/libarchive/libarchive/issues/976).

> sizeof(char) is 1 by definition of C programming language

Ironically, the very uuencode code, which you referred me to has lines like:

    rv = b64_ntop(buf, n, buf2, (sizeof(buf2) / sizeof(buf2[0])));

:-) But, yes, I'll be glad to clean out things like sizeof(char).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to