1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01: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:
Peter Kokot
2024-06-09 07:17:46 +02:00
committed by GitHub
parent 0dcb467dae
commit aae237aad5

View File

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