Skip to content

Commit

Permalink
ext/sodium: checks for crypto_box_SEALBYTES are not required
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Oct 2, 2017
1 parent 4d1707b commit 986a9e8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ext/sodium/libsodium.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,8 @@ PHP_MINIT_FUNCTION(sodium)
crypto_auth_BYTES, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SODIUM_CRYPTO_AUTH_KEYBYTES",
crypto_auth_KEYBYTES, CONST_CS | CONST_PERSISTENT);
#ifdef crypto_box_SEALBYTES
REGISTER_LONG_CONSTANT("SODIUM_CRYPTO_BOX_SEALBYTES",
crypto_box_SEALBYTES, CONST_CS | CONST_PERSISTENT);
#endif
REGISTER_LONG_CONSTANT("SODIUM_CRYPTO_BOX_SECRETKEYBYTES",
crypto_box_SECRETKEYBYTES, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SODIUM_CRYPTO_BOX_PUBLICKEYBYTES",
Expand Down Expand Up @@ -1293,7 +1291,6 @@ PHP_FUNCTION(sodium_crypto_box_open)
}
}

#ifdef crypto_box_SEALBYTES
PHP_FUNCTION(sodium_crypto_box_seal)
{
zend_string *ciphertext;
Expand Down Expand Up @@ -1368,7 +1365,6 @@ PHP_FUNCTION(sodium_crypto_box_seal_open)
RETURN_STR(msg);
}
}
#endif

PHP_FUNCTION(sodium_crypto_sign_keypair)
{
Expand Down

0 comments on commit 986a9e8

Please sign in to comment.