From 5518c7cba883f7446a26454b923cef1babb540b4 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sat, 2 Mar 2019 15:07:44 +0100 Subject: [PATCH] configure: Check for lower-case IETF acronym in sodium constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The v1.0.9 release of libsodium added crypto_aead_chacha20poly1305_ietf_NPUBBYTES which we use; before that it was ...IETF_NPUBBYTES. Since that release was in April 2016, it seems fair to simply check for ancient versions and use the internal one if found. The alternative would be to use the older names (which are still in the header), but given we've never tested with such old versions, this seems safer. Reported-by: Zoltán Gálli <@gallizoltan> Signed-off-by: Christian Decker --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 0532de67c..8b6bccf1a 100755 --- a/configure +++ b/configure @@ -168,6 +168,7 @@ code= int main(void) { printf("%p\n", crypto_aead_chacha20poly1305_ietf_encrypt); + printf("%d\n", crypto_aead_chacha20poly1305_ietf_NPUBBYTES); exit(0); } /*END*/