update ED25519 examples based on feedback
parent
7bb3cc3ad1
commit
76cc800750
|
@ -15,8 +15,8 @@ LIBRARIES :=
|
||||||
#example: if using custom install location add the include and lib dir to the
|
#example: if using custom install location add the include and lib dir to the
|
||||||
# INCLUDE_DIRS and LIBRARY_DIRS respectively
|
# INCLUDE_DIRS and LIBRARY_DIRS respectively
|
||||||
|
|
||||||
#INCLUDE_DIRS += /Users/khimes/work/testDir/wolf-install-dir-for-testing/include
|
#INCLUDE_DIRS += /path-to-custom/wolf-install-dir-for-testing/include
|
||||||
#LIBRARY_DIRS += /Users/khimes/work/testDir/wolf-install-dir-for-testing/lib
|
#LIBRARY_DIRS += /path-to-custom/wolf-install-dir-for-testing/lib
|
||||||
LIBRARIES += wolfssl
|
LIBRARIES += wolfssl
|
||||||
|
|
||||||
CPPFLAGS += $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir))
|
CPPFLAGS += $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir))
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
Configure and install wolfSSL with these options:
|
||||||
|
|
||||||
|
./configure --enable-ed25519
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
|
(if any build issues due to previous installations please run 'ldconfig`)
|
||||||
|
|
||||||
To compile without Makefile:
|
To compile without Makefile:
|
||||||
|
|
||||||
gcc -o gen_key_files gen_key_files.c -lwolfssl
|
gcc -o gen_key_files gen_key_files.c -lwolfssl
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
#include <wolfssl/wolfcrypt/ed25519.h>
|
#include <wolfssl/wolfcrypt/ed25519.h>
|
||||||
#include <wolfssl/ssl.h>
|
#include <wolfssl/ssl.h>
|
||||||
|
|
||||||
|
#ifndef HAVE_ED25519
|
||||||
|
#error "Please build wolfSSL with the --enable-ed25519 option"
|
||||||
|
#endif
|
||||||
|
|
||||||
int create_and_output_ed_key(void);
|
int create_and_output_ed_key(void);
|
||||||
static int err_sys(const char* msg, int es);
|
static int err_sys(const char* msg, int es);
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@
|
||||||
#define USE_CERT_BUFFERS_ED
|
#define USE_CERT_BUFFERS_ED
|
||||||
#include "test_keys.h"
|
#include "test_keys.h"
|
||||||
|
|
||||||
|
#ifndef HAVE_ED25519
|
||||||
|
#error "Please build wolfSSL with the --enable-ed25519 option"
|
||||||
|
#endif
|
||||||
|
|
||||||
static int err_sys(const char* msg, int es);
|
static int err_sys(const char* msg, int es);
|
||||||
|
|
||||||
static int err_sys(const char* msg, int es)
|
static int err_sys(const char* msg, int es)
|
||||||
|
|
Loading…
Reference in New Issue