From 5a98bcd78867b4fb1a272ce26774c8811f28750d Mon Sep 17 00:00:00 2001 From: David Timber Date: Thu, 22 Jul 2021 22:30:48 +1000 Subject: Impl PRNE_HTBT_OP_RCB ... * Parameterize prne_start_bin_rcb() args * Change value of PRNE_ARCH_NONE to 0 to use it over the wire (problem arises deserialising) * tostr() and fstr() functions set errno to EINVAL * Run bne without binary archive to support same-arch infection --- src/dvault.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/dvault.c') diff --git a/src/dvault.c b/src/dvault.c index 602ec70..3a286f5 100644 --- a/src/dvault.c +++ b/src/dvault.c @@ -43,6 +43,7 @@ const char *prne_data_type_tostr (const prne_data_type_t t) { case PRNE_DATA_TYPE_CSTR: return "cstr"; case PRNE_DATA_TYPE_BIN: return "bin"; } + errno = EINVAL; return NULL; } @@ -53,7 +54,7 @@ prne_data_type_t prne_data_type_fstr (const char *str) { if (prne_nstreq(str, prne_data_type_tostr(PRNE_DATA_TYPE_BIN))) { return PRNE_DATA_TYPE_BIN; } - + errno = EINVAL; return PRNE_DATA_TYPE_NONE; } @@ -128,6 +129,7 @@ const char *prne_dvault_mask_result_tostr ( case PRNE_DVAULT_MASK_TOO_LARGE: return "data too large"; case PRNE_DVAULT_MASK_INVALID_TYPE: return "invalid type"; } + errno = EINVAL; return NULL; } -- cgit