Add missing sodium.h header (#14515)

The php_libsodium.h uses SODIUM_LIBRARY_VERSION_* macros from the
sodium.h (sodium/version.h) header.
This commit is contained in:
Peter Kokot 2024-06-09 07:17:46 +02:00 committed by GitHub
parent 0dcb467dae
commit aae237aad5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,8 @@ extern zend_module_entry sodium_module_entry;
# include "TSRM.h"
#endif
#include <sodium.h>
#define SODIUM_LIBRARY_VERSION() (char *) (void *) sodium_version_string()
#define SODIUM_CRYPTO_BOX_KEYPAIRBYTES() crypto_box_SECRETKEYBYTES + crypto_box_PUBLICKEYBYTES