view libutil/dbread.h @ 99:97ba63d9361a

scripts/fcsim1-sst: turn off STK & OTA services In the initial unprogrammed state of the cards from Grcard, SST has services 25 through 29 set to allocated and activated. However, these cards appear to not actually support OTA, ENVELOPE commands do nothing (just return SW 9000), and they were never observed issuing any proactive SIM commands, even after a feature-generous TERMINAL PROFILE. Therefore, let's list these STK & OTA services as allocated, but not activated in our FCSIM1 SST.
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 05 May 2021 04:26:07 +0000
parents fa81221ac9b6
children
line wrap: on
line source

/*
 * This header file defines the structure used for reading
 * key=value database files.
 */

#define	DBREAD_LINEBUF_SIZE	1024
#define	DBREAD_MAX_KV_PAIRS	32

struct dbread_kv {
	char	*key;
	char	*value;
};

struct dbread_state {
	char	linebuf[DBREAD_LINEBUF_SIZE];
	struct	dbread_kv kv_pairs[DBREAD_MAX_KV_PAIRS];
	unsigned num_kv_pairs;
};

extern char *dbread_find_key();
extern char *dbread_find_key_req();