Mercurial > hg > php_nacl
diff php_nacl.h @ 0:96c976fb3c3d
Initial commit
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sun, 27 Feb 2011 18:58:38 +0100 |
parents | |
children | 81aaf4ba1eaa |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php_nacl.h Sun Feb 27 18:58:38 2011 +0100 @@ -0,0 +1,22 @@ +#ifndef PHP_NACL_H +#define PHP_NACL_H 1 + +#ifdef ZTS +#include "TSRM.h" +#endif + +#define PHP_NACL_VERSION "1.0" +#define PHP_NACL_EXTNAME "nacl" + +PHP_MINIT_FUNCTION(nacl); +PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305); +PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_open); +PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_getpublickey); +PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_beforenm); +PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_afternm); +PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_open_afternm); + +extern zend_module_entry nacl_module_entry; +#define phpext_module_ptr &nacl_module_entry + +#endif