Skip to content

Commit 6de12a5

Browse files
committed
ext/sodium: sodium_compare() is always available
1 parent 40ab4c9 commit 6de12a5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ext/sodium/libsodium.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3141,8 +3141,6 @@ PHP_FUNCTION(sodium_crypto_sign_ed25519_pk_to_curve25519)
31413141
RETURN_STR(ecdhkey);
31423142
}
31433143

3144-
#if SODIUM_LIBRARY_VERSION_MAJOR > 7 || \
3145-
(SODIUM_LIBRARY_VERSION_MAJOR == 7 && SODIUM_LIBRARY_VERSION_MINOR >= 6)
31463144
PHP_FUNCTION(sodium_compare)
31473145
{
31483146
char *buf1;
@@ -3164,7 +3162,6 @@ PHP_FUNCTION(sodium_compare)
31643162
(const unsigned char *) buf2, (size_t) len1));
31653163
}
31663164
}
3167-
#endif
31683165

31693166
#ifdef HAVE_AESGCM
31703167
PHP_FUNCTION(sodium_crypto_aead_aes256gcm_keygen)

0 commit comments

Comments
 (0)