Closed Bug 1540205 Opened 6 years ago Closed 6 years ago

freebl build fails with -DNSS_DISABLE_CHACHAPOLY

Categories

(NSS :: Build, defect)

3.43
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: eoger, Assigned: eoger)

Details

Attachments

(1 file)

I'm getting:

chacha20poly1305.c:165:9: error: implicit declaration of function 'Hacl_Chacha20_Vec128_chacha20' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        Hacl_Chacha20_Vec128_chacha20(output, block, len, k, nonce, ctr);
        ^
chacha20poly1305.c:167:9: error: implicit declaration of function 'Hacl_Chacha20_chacha20' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        Hacl_Chacha20_chacha20(output, block, len, k, nonce, ctr);
        ^

Which is expected since these functions are not declared if NSS_DISABLE_CHACHAPOLY is defined.

All uses of ChaCha20Xor (the function where these implicit declarations happen) are guarded by NSS_DISABLE_CHACHAPOLY, so let's not define ChaCha20Xor at all when the flag is set.

Patch incoming.

Very soon, Bug 1537544 should permit landing this via Lando. If it's OK, I'm going to give it until EOD Monday and try and Lando-land this as our verification, and if it's not ready then, I'll land it myself. Thanks Edouard!

https://hg.mozilla.org/projects/nss/rev/e5e10a46b9ad — Edouard Oger — Bug 1540205 - Do not define ChaCha20Xor if NSS_DISABLE_CHACHAPOLY is defined. r=jcj

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.44
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: