]> granicus.if.org Git - php/commitdiff
ext/sodium: sodium_compare() is always available
authorFrank Denis <github@pureftpd.org>
Mon, 2 Oct 2017 20:23:53 +0000 (22:23 +0200)
committerFrank Denis <github@pureftpd.org>
Mon, 2 Oct 2017 20:23:53 +0000 (22:23 +0200)
ext/sodium/libsodium.c

index 0051b8e7ccd5198be36de2956c942349539a2002..f3e5d267ceb2c495abbcbfb160029538762d05cd 100644 (file)
@@ -3141,8 +3141,6 @@ PHP_FUNCTION(sodium_crypto_sign_ed25519_pk_to_curve25519)
        RETURN_STR(ecdhkey);
 }
 
-#if SODIUM_LIBRARY_VERSION_MAJOR > 7 || \
-       (SODIUM_LIBRARY_VERSION_MAJOR == 7 && SODIUM_LIBRARY_VERSION_MINOR >= 6)
 PHP_FUNCTION(sodium_compare)
 {
        char      *buf1;
@@ -3164,7 +3162,6 @@ PHP_FUNCTION(sodium_compare)
                                                                   (const unsigned char *) buf2, (size_t) len1));
        }
 }
-#endif
 
 #ifdef HAVE_AESGCM
 PHP_FUNCTION(sodium_crypto_aead_aes256gcm_keygen)