Browse Source

Update openwrt readme

pull/166/head
emanuele-f 5 years ago
parent
commit
bf0ad28b4b
  1. 10
      packages/openwrt/README.md
  2. 5
      transform_aes.c

10
packages/openwrt/README.md

@ -1,4 +1,4 @@
## Instructions ## Compilation
From the OpenWRT build directory: From the OpenWRT build directory:
@ -8,3 +8,11 @@ cp -r n2n/packages/openwrt package/n2n
make menuconfig # select Network -> VPN -> n2n-edge and n2n-supernode make menuconfig # select Network -> VPN -> n2n-edge and n2n-supernode
make package/n2n/compile V=s make package/n2n/compile V=s
``` ```
## Configuration
The edge node can be started with `/etc/init.d/edge start`.
Its configuration file is `/etc/config/n2n-edge.conf`.
The supernode can be started with `/etc/init.d/supernode start`.
Its configuration file is `/etc/config/n2n-supernode.conf`.

5
transform_aes.c

@ -21,13 +21,8 @@
#ifdef N2N_HAVE_AES #ifdef N2N_HAVE_AES
#ifdef USE_LIBCRYPTO_PATH
#include <crypto/aes.h>
#include <crypto/sha.h>
#else
#include <openssl/aes.h> #include <openssl/aes.h>
#include <openssl/sha.h> #include <openssl/sha.h>
#endif
#define N2N_AES_TRANSFORM_VERSION 1 /* version of the transform encoding */ #define N2N_AES_TRANSFORM_VERSION 1 /* version of the transform encoding */
#define N2N_AES_IVEC_SIZE (AES_BLOCK_SIZE) #define N2N_AES_IVEC_SIZE (AES_BLOCK_SIZE)

Loading…
Cancel
Save