Remove dead code. Update comment in makefile.

pull/392/head
Bill Phipps 2023-07-25 14:39:05 -04:00
parent 4cd631dc2f
commit 155ee10e80
2 changed files with 2 additions and 16 deletions

View File

@ -27,7 +27,8 @@ CFLAGS+=-DCCBVAULTIC_NO_SHA
#CFLAGS+=-DCCBVAULTIC_NO_RSA
# 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)
LDFLAGS+=-L$(WOLFSSL_DIR)/src/.libs -lwolfssl -lm

View File

@ -19,7 +19,6 @@
#include "wolfssl/options.h"
//#include "wolfssl/wolfcrypt/settings.h"
#include "wolfssl/ssl.h"
#include "wolfcrypt/test/test.h"
@ -34,30 +33,17 @@ int main(int argc, char **argv)
int rc=0;
//ccbVaultIc_Context ctx={0};
/* Initialize wolfSSL and wolfCrypt */
rc=wolfSSL_Init();
if(rc!=WOLFSSL_SUCCESS) {
fprintf(stderr, "Failed to initialize wolfSSL: %d\n", 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 */
rc = wc_CryptoCb_RegisterDevice(CCBVAULTIC420_DEVID,
ccbVaultIc_CryptoDevCb, NULL);
if(rc) {
fprintf(stderr, "Failed to register cryptocb: %d\n", rc);
//ccbVaultIc_Cleanup(&ctx);
wolfSSL_Cleanup();
return(rc);
}
@ -65,7 +51,6 @@ int main(int argc, char **argv)
wolfcrypt_test(NULL);
wc_CryptoCb_UnRegisterDevice(CCBVAULTIC420_DEVID);
// ccbVaultIc_Cleanup(&ctx);
wolfSSL_Cleanup();
return 0;