mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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:
parent
0dcb467dae
commit
aae237aad5
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue