Skip to content

gnutls: allow building with nettle 4.0#21169

Closed
xry111 wants to merge 1 commit into
curl:masterfrom
xry111:xry111/nettle-4
Closed

gnutls: allow building with nettle 4.0#21169
xry111 wants to merge 1 commit into
curl:masterfrom
xry111:xry111/nettle-4

Conversation

@xry111

@xry111 xry111 commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

No description provided.

xry111 added a commit to AOSC-Tracking/curl that referenced this pull request Mar 31, 2026
Link: curl#21169
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
xry111 added a commit to AOSC-Tracking/curl that referenced this pull request Mar 31, 2026
Link: curl#21169
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Comment thread lib/sha256.c Outdated
@bagder bagder added the TLS label Mar 31, 2026
Comment thread m4/curl-gnutls.m4
@bagder

bagder commented Apr 30, 2026

Copy link
Copy Markdown
Member

This PR awaits feedback/corrections. I can't move before then.

@xry111

xry111 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor Author

Sorry, my context was overflown by the things I have to do for money to live :(. Just updated the PR.

Comment thread lib/md5.c Outdated
@vszakats

vszakats commented Apr 30, 2026

Copy link
Copy Markdown
Member

FTR an odd, possibly interesting pytest fail in the GnuTLS H3 job:
https://github.com/curl/curl/actions/runs/25176644913/job/73810496769
...retrying. → gone after retry

@vszakats vszakats closed this in cfadbaa May 12, 2026
@vszakats

Copy link
Copy Markdown
Member

Thanks @xry111.

vszakats added a commit that referenced this pull request May 12, 2026
- disable DES with nettle 4. It no longer supports it.
  ```
  lib/curl_ntlm_core.c:67:12: fatal error: 'nettle/des.h' file not found
     67 | #  include <nettle/des.h>
        |            ^~~~~~~~~~~~~~
  ```

- fix MD4 support with nettle 4.
  ```
  lib/md4.c:178:36: error: too many arguments to function call, expected 2, have 3
    178 |   md4_digest(ctx, MD4_DIGEST_SIZE, digest);
        |   ~~~~~~~~~~                       ^~~~~~
  ```

- fix unused argument compiler warning:
  ```
  lib/vtls/gtls.c:2267:39: error: unused parameter 'sha256len' [clang-diagnostic-unused-parameter,-warnings-as-errors]
  2267 |                                size_t sha256len)
       |                                       ^
  ```
  Ref: https://github.com/curl/curl/actions/runs/25710321195/job/75488970143?pr=21557

- GHA/macos: stop enabling NTLM in the GnuTLS job.
  It no longer builds due to missing DES support in nettle 4.
  ```
  lib/curl_ntlm_core.c:90:4: error: "cannot compile NTLM support without a crypto library with DES."
     90 | #  error "cannot compile NTLM support without a crypto library with DES."
        |    ^
  ```
  Ref: https://github.com/curl/curl/actions/runs/25710321195/job/75488970170?pr=21557

Follow-up to cfadbaa #21169

Closes #21557
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
- disable DES with nettle 4. It no longer supports it.
  ```
  lib/curl_ntlm_core.c:67:12: fatal error: 'nettle/des.h' file not found
     67 | #  include <nettle/des.h>
        |            ^~~~~~~~~~~~~~
  ```

- fix MD4 support with nettle 4.
  ```
  lib/md4.c:178:36: error: too many arguments to function call, expected 2, have 3
    178 |   md4_digest(ctx, MD4_DIGEST_SIZE, digest);
        |   ~~~~~~~~~~                       ^~~~~~
  ```

- fix unused argument compiler warning:
  ```
  lib/vtls/gtls.c:2267:39: error: unused parameter 'sha256len' [clang-diagnostic-unused-parameter,-warnings-as-errors]
  2267 |                                size_t sha256len)
       |                                       ^
  ```
  Ref: https://github.com/curl/curl/actions/runs/25710321195/job/75488970143?pr=21557

- GHA/macos: stop enabling NTLM in the GnuTLS job.
  It no longer builds due to missing DES support in nettle 4.
  ```
  lib/curl_ntlm_core.c:90:4: error: "cannot compile NTLM support without a crypto library with DES."
     90 | #  error "cannot compile NTLM support without a crypto library with DES."
        |    ^
  ```
  Ref: https://github.com/curl/curl/actions/runs/25710321195/job/75488970170?pr=21557

Follow-up to cfadbaa curl#21169

Closes curl#21557
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants