File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 23
23
#include "php.h"
24
24
#include "php_ini.h"
25
25
#include "ext/standard/info.h"
26
- #include "php_libsodium.h"
27
26
#include "zend_exceptions.h"
28
27
29
28
#include <sodium.h>
29
+ #include "php_libsodium.h"
30
+
30
31
#include <stdint.h>
31
32
32
33
#define PHP_SODIUM_ZSTR_TRUNCATE (zs , len ) do { ZSTR_LEN(zs) = (len); } while(0)
Original file line number Diff line number Diff line change @@ -96,9 +96,15 @@ PHP_FUNCTION(sodium_add);
96
96
PHP_FUNCTION (sodium_memcmp );
97
97
PHP_FUNCTION (sodium_memzero );
98
98
99
+ #ifndef crypto_kx_BYTES
99
100
#define crypto_kx_BYTES crypto_scalarmult_BYTES
101
+ #endif
102
+ #ifndef crypto_kx_PUBLICKEYBYTES
100
103
#define crypto_kx_PUBLICKEYBYTES crypto_scalarmult_SCALARBYTES
104
+ #endif
105
+ #ifndef crypto_kx_SECRETKEYBYTES
101
106
#define crypto_kx_SECRETKEYBYTES crypto_scalarmult_SCALARBYTES
107
+ #endif
102
108
103
109
#endif /* PHP_LIBSODIUM_H */
104
110
You can’t perform that action at this time.
0 commit comments