package/libgit2: disable NTLM support inconditionally.
PATCH 1/1 package/libgit2: disable NTLM support inconditionally.
NTLM is an old authentication protocol depending on DES and MD4 and its creator, Microsoft, discourage its use since 2010, because it is weak and vulnerable to many attacks.
libgit2 has support for NTLM and it is enabled by default if openssl is used, however, since commit a83d41867c8d ("package/libopenssl: add option to enable some features"), support for DES and MD4 can be disabled in openssl.
Since openssl is an optional dependency to libgit2 and getting rid of NTLM is a goal in itself for many windows administrators, disable NTLM by default.
--- package/libgit2/libgit2.mk | 1 + 1 file changed, 1 insertion(+)
package/libgit2/libgit2.mk +1 -0
@@ -17,6 +17,7 @@ LIBGIT2_CONF_OPTS = \ -DUSE_ICONV=ON \ -DREGEX_BACKEND=regcomp \ -DUSE_HTTP_PARSER=system \ + -DUSE_NTLMCLIENT=OFF \ -DTHREADSAFE=$(if $(BR2_TOOLCHAIN_HAS_THREADS),ON,OFF) LIBGIT2_DEPENDENCIES = zlib libhttpparser
Signature · 1 line
2.32.0.rc0
Yann E. MORIN
AppliedPATCH 1/1 package/libgit2: disable NTLM support inconditionally.
Nicolas, All,
On 2021-05-24 19:33 +0200, Nicolas Cavallari spake thusly:
Quoted 4 lines
NTLM is an old authentication protocol depending on DES and MD4 and its creator, Microsoft, discourage its use since 2010, because it is weak and vulnerable to many attacks.
Quoted 8 lines
libgit2 has support for NTLM and it is enabled by default if openssl is used, however, since commit
a83d41867c8d("package/libopenssl: add option to enable some features"), support for DES and MD4 can be disabled in openssl.Since openssl is an optional dependency to libgit2 and getting rid of NTLM is a goal in itself for many windows administrators, disable NTLM by default.
I was not entirely sure that was a good idea, because some setups might still need it (enterprisy environment can be incredibly resistant to change)... But the, yes, NTLM is bad, so yes, this is a good idea; if someone is stuck in the past, they can still send a patch to reenable NTLM with the appropriate select against DES and MD4.
Quoted 2 lines
Applied to next (after fixing a minor typo in the commit title), thanks.
Regards,
Yann E. MORIN.
Quoted 23 lines
--- package/libgit2/libgit2.mk | 1 + 1 file changed, 1 insertion(+)package/libgit2/libgit2.mk +1
-0@@ -17,6 +17,7 @@ LIBGIT2_CONF_OPTS = \ -DUSE_ICONV=ON \ -DREGEX_BACKEND=regcomp \ -DUSE_HTTP_PARSER=system \ + -DUSE_NTLMCLIENT=OFF \ -DTHREADSAFE=$(if $(BR2_TOOLCHAIN_HAS_THREADS),ON,OFF) LIBGIT2_DEPENDENCIES = zlib libhttpparserSignature · 6 lines
2.32.0.rc0 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'