looking at netcat
JP <[email protected]> Thu, 29 Nov 2018 13:22:42 -0500
| Newsgroups | gmane.os.netbsd.devel.general |
|---|---|
| Message-ID | <CAHN8BqrSvf2ieL7V5VZTStwmvQaDSw65eYxAZhdxLAN7w5sT8A@mail.gmail.com> |
Long story short I was looking to find OpenSSL implementation code in netcat and didn't find it. It looks to me like it's libreSSL, but I could be wrong. I suspect that if I install the library and mod the Makefile for nc that the crypto stuff would build, but is there any interest in using OpenSSL? It would take me well into the early part of next year (at least), regardless. But anyway, that's just a thought. One thing that I did find in netcat.c is it still has the CRYPTO options in the call to getopt. The options don't work, but we don't get the nice "unknown option" message. The options to remove are C, c, H, K, R, V, o, T Here is a patch if you want it. (`openssl base64 -d` should work to decode it) SW5kZXg6IG5ldGNhdC5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9j dnNyb290L3NyYy91c3IuYmluL25jL25ldGNhdC5jLHYKcmV0cmlldmluZyByZXZp c2lvbiAxLjUKZGlmZiAtdSAtcCAtcjEuNSBuZXRjYXQuYwotLS0gbmV0Y2F0LmMJ OSBGZWIgMjAxNyAyMToyMzo0OCAtMDAwMAkxLjUKKysrIG5ldGNhdC5jCTI5IE5v diAyMDE4IDE4OjEzOjE3IC0wMDAwCkBAIC0xODAsNyArMTgwLDEyIEBAIG1haW4o aW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKIAlzaWduYWwoU0lHUElQRSwgU0lHX0lH Tik7CiAKIAl3aGlsZSAoKGNoID0gZ2V0b3B0KGFyZ2MsIGFyZ3YsCi0JICAgICI0 NkM6Y0RkZTpGSDpoSTppOks6a2xNOm06Tm5POm86UDpwOlI6clNzOlQ6dFV1Vjp2 dzpYOng6eiIpKSAhPSAtMSkgeworI2lmZGVmIENSWVBUTworCSAgICAiNDZDOmNE ZGU6Rkg6aEk6aTpLOmtsTTptOk5uTzpvOlA6cDpSOnJTczpUOnRVdVY6dnc6WDp4 OnoiCisjZWxzZQorCSAgICAiNDZEZGU6RmhJOmk6a2xNOm06Tm5POlA6cDpyU3M6 dFV1dnc6WDp4OnoiCisjZW5kaWYKKwkpKSAhPSAtMSkgewogCQlzd2l0Y2ggKGNo KSB7CiAJCWNhc2UgJzQnOgogCQkJZmFtaWx5ID0gQUZfSU5FVDsK