Mercurial > hg > php_nacl
changeset 2:04384d01b1d7
Added build script, changed header location
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Mon, 28 Feb 2011 22:47:10 +0100 |
parents | 84e0f7ead583 |
children | c0f3bf4aac47 |
files | build.sh nacl.c |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build.sh Mon Feb 28 22:47:10 2011 +0100 @@ -0,0 +1,9 @@ +#!/bin/sh +rm -rf build +mkdir build +cp -r config.m4 nacl.c php_nacl.h tests build/ +cd build +phpize +./configure +make +make test
--- a/nacl.c Sun Feb 27 23:56:54 2011 +0100 +++ b/nacl.c Mon Feb 28 22:47:10 2011 +0100 @@ -26,7 +26,9 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include "nacl_crypto_box.h" + +#include "nacl/crypto_box_curve25519xsalsa20poly1305.h" +#include "nacl/crypto_scalarmult_curve25519.h" #include "php.h" #include "php_ini.h"