Integrate vault into build process
Right now it's still not used, but integrated into the build process anyways.
This commit is contained in:
parent
17d1b9a52d
commit
6ac94dbd83
3
Makefile
3
Makefile
@ -32,7 +32,8 @@ OBJS := \
|
||||
thread.o \
|
||||
udp.o \
|
||||
util.o \
|
||||
uuid.o
|
||||
uuid.o \
|
||||
vault.o
|
||||
|
||||
parsers:
|
||||
$(PYPGMOPTS) -n edit parsers/parser_edit.py
|
||||
|
6
vault.c
6
vault.c
@ -152,7 +152,7 @@ bool vault_open(struct vault_t *vault) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (EVP_DecryptFinal_ex(ctx, vault->data + len, &len) != 1) {
|
||||
if (EVP_DecryptFinal_ex(ctx, (uint8_t*)vault->data + len, &len) != 1) {
|
||||
success = false;
|
||||
break;
|
||||
}
|
||||
@ -220,7 +220,7 @@ bool vault_close(struct vault_t *vault) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (EVP_EncryptFinal_ex(ctx, vault->data + len, &len) != 1) {
|
||||
if (EVP_EncryptFinal_ex(ctx, (uint8_t*)vault->data + len, &len) != 1) {
|
||||
success = false;
|
||||
break;
|
||||
}
|
||||
@ -250,7 +250,7 @@ void vault_free(struct vault_t *vault) {
|
||||
free(vault);
|
||||
}
|
||||
|
||||
#ifndef __TEST_VAULT__
|
||||
#ifdef __TEST_VAULT__
|
||||
|
||||
static void dump(const uint8_t *data, unsigned int length) {
|
||||
for (unsigned int i = 0; i < length; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user