Would it be possible for someone with knowledge to port this software to Haiku?
I searched libbsd and couldn’t find it.
Would libbsd be the show stopper?
Is it planned to be ported to Haiku or not at all?
The one I can’t find already on HaikuPorts is libscrypt, but (after just a quick glance) it may not take too long to get it working (and it’s optional, so no show-stoppper there).
I’ll try to give it a go later today, assuming I can stop coughing . If not, surely this might pick the interest of someone else over HaikuPorts :-).
After some “quick-and-dirty” hacks, recipe compiles, but build fails at linking stage: missing some symbols (be64toh/ htobe64) that Haiku defines in headers/compatibility/bsd/endian.h, but not on develop/headers/bsd/endian.h. Mmm.
Also missing is arc4random_buf, available in the freebsd compat layer for drivers, but I don’t think that’s exposed to user-space code.
Might be a good idea to see if we have better luck with the mentioned optional libscrypt.so, instead of relying on kc’s bcrypt lib (that where the mentioned issues came from).
Or I just suck at this, and just need to try harder :-D.
Seems I’d mistaken the optional libscrypt as a drop-in replacement for the included bcrypt, which it is not. HAVE_LIBSCRYPT=y do “Turn on scrypt KDF support”, but the included bcrypt code is still used (and that requires arc4random_buf()).
That means that, AFAICT, we’re stuck, as there’s no arc4random functionality currently available for user-space code (see topic: Arc4random, where are you?).
Helping with that is far above my limited skills so… sorry for not being of more help with kc.
You should be able to install kc with pkgman install kc (or with pkgman install kc_x86 if you’re using the 32-bits version of Haiku) now.
Particularities of this version:
Settings/db files are stored not under ~/.kc/, but ~/config/settings/kc/. (man page patched too to reflect that change).
Uses editline/libedit instead of readline (like it does under Linux). This seems to cause some glitches when line-editing, how noticeable/annoying those are… depends on what you do/expect I guess. Let us know if it is too broken (we can switch it to readline, if we don’t find some other fix/alternative).
Patched away the use of arc4random_buf(), should not affect kc, as far as I can tell.
I’ve ran the tests that comes with kc. 30 passed, 3 skipped, none failed. Did some quick manual test… seems relatively sane to me, so…
As you have experience with it… let us know what you think/find. (once we iron-out the wrinkles, would be nice to upstream the small changes).
Great, great work!
I thank you and all other that have helped.
kc is indeed working, I could manage to open one database that I was using in a Linux machine.
The line-editing seems really nice.
For example, pressing c k then tab lists all keychains that start with letter k, so that I can choose the one I want to change (c) to.
From my part, it’s ready to upstream.
Maybe kc will acquire a lot of Haiku users…