Remove dead code. Update comment in makefile.
parent
4cd631dc2f
commit
155ee10e80
|
@ -27,7 +27,8 @@ CFLAGS+=-DCCBVAULTIC_NO_SHA
|
||||||
#CFLAGS+=-DCCBVAULTIC_NO_RSA
|
#CFLAGS+=-DCCBVAULTIC_NO_RSA
|
||||||
|
|
||||||
# wolfSSL settings and files
|
# wolfSSL settings and files
|
||||||
# ./configure --enable-cryptocb --enable-static --disable-shared --host aarch64-linux-android
|
# ./configure --enable-cryptocb --enable-static --disable-shared
|
||||||
|
# --host aarch64-linux-android CFLAGS=-DWOLF_CRYPTO_CB_CMD
|
||||||
CFLAGS+=-I$(WOLFSSL_DIR)
|
CFLAGS+=-I$(WOLFSSL_DIR)
|
||||||
LDFLAGS+=-L$(WOLFSSL_DIR)/src/.libs -lwolfssl -lm
|
LDFLAGS+=-L$(WOLFSSL_DIR)/src/.libs -lwolfssl -lm
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
#include "wolfssl/options.h"
|
#include "wolfssl/options.h"
|
||||||
|
|
||||||
//#include "wolfssl/wolfcrypt/settings.h"
|
|
||||||
#include "wolfssl/ssl.h"
|
#include "wolfssl/ssl.h"
|
||||||
#include "wolfcrypt/test/test.h"
|
#include "wolfcrypt/test/test.h"
|
||||||
|
|
||||||
|
@ -34,30 +33,17 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
int rc=0;
|
int rc=0;
|
||||||
|
|
||||||
//ccbVaultIc_Context ctx={0};
|
|
||||||
|
|
||||||
/* Initialize wolfSSL and wolfCrypt */
|
/* Initialize wolfSSL and wolfCrypt */
|
||||||
rc=wolfSSL_Init();
|
rc=wolfSSL_Init();
|
||||||
if(rc!=WOLFSSL_SUCCESS) {
|
if(rc!=WOLFSSL_SUCCESS) {
|
||||||
fprintf(stderr, "Failed to initialize wolfSSL: %d\n", rc);
|
fprintf(stderr, "Failed to initialize wolfSSL: %d\n", rc);
|
||||||
return(rc);
|
return(rc);
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
/* Initialize VaultIC */
|
|
||||||
rc= ccbVaultIc_Init(&ctx);
|
|
||||||
if(rc) {
|
|
||||||
fprintf(stderr, "Failed to initialize the VaultIC: %d %d\n",
|
|
||||||
rc,ctx.vlt_rc);
|
|
||||||
wolfSSL_Cleanup();
|
|
||||||
return(rc);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
/* Register VaultIC as cryptocb */
|
/* Register VaultIC as cryptocb */
|
||||||
rc = wc_CryptoCb_RegisterDevice(CCBVAULTIC420_DEVID,
|
rc = wc_CryptoCb_RegisterDevice(CCBVAULTIC420_DEVID,
|
||||||
ccbVaultIc_CryptoDevCb, NULL);
|
ccbVaultIc_CryptoDevCb, NULL);
|
||||||
if(rc) {
|
if(rc) {
|
||||||
fprintf(stderr, "Failed to register cryptocb: %d\n", rc);
|
fprintf(stderr, "Failed to register cryptocb: %d\n", rc);
|
||||||
//ccbVaultIc_Cleanup(&ctx);
|
|
||||||
wolfSSL_Cleanup();
|
wolfSSL_Cleanup();
|
||||||
return(rc);
|
return(rc);
|
||||||
}
|
}
|
||||||
|
@ -65,7 +51,6 @@ int main(int argc, char **argv)
|
||||||
wolfcrypt_test(NULL);
|
wolfcrypt_test(NULL);
|
||||||
|
|
||||||
wc_CryptoCb_UnRegisterDevice(CCBVAULTIC420_DEVID);
|
wc_CryptoCb_UnRegisterDevice(CCBVAULTIC420_DEVID);
|
||||||
// ccbVaultIc_Cleanup(&ctx);
|
|
||||||
wolfSSL_Cleanup();
|
wolfSSL_Cleanup();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue