File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
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"
26
27
#include "zend_exceptions.h"
27
28
28
29
#include <sodium.h>
29
- #include "php_libsodium.h"
30
-
31
30
#include <stdint.h>
32
31
33
32
#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,15 +96,9 @@ PHP_FUNCTION(sodium_add);
96
96
PHP_FUNCTION (sodium_memcmp );
97
97
PHP_FUNCTION (sodium_memzero );
98
98
99
- #ifndef crypto_kx_BYTES
100
99
#define crypto_kx_BYTES crypto_scalarmult_BYTES
101
- #endif
102
- #ifndef crypto_kx_PUBLICKEYBYTES
103
100
#define crypto_kx_PUBLICKEYBYTES crypto_scalarmult_SCALARBYTES
104
- #endif
105
- #ifndef crypto_kx_SECRETKEYBYTES
106
101
#define crypto_kx_SECRETKEYBYTES crypto_scalarmult_SCALARBYTES
107
- #endif
108
102
109
103
#endif /* PHP_LIBSODIUM_H */
110
104
You can’t perform that action at this time.
0 commit comments