2019-11-05 01:54:23 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
2022-01-07 08:58:03 +08:00
|
|
|
// Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
|
2019-11-05 01:54:23 +08:00
|
|
|
//
|
2022-01-07 08:58:03 +08:00
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// See LICENSE.txt for the text of the license.
|
2019-11-05 01:54:23 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Proxmark3 RDV40 AID list library
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef AIDSEARCH_H__
|
|
|
|
#define AIDSEARCH_H__
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2020-06-09 22:24:12 +08:00
|
|
|
#include "jansson.h"
|
2019-11-05 01:54:23 +08:00
|
|
|
|
2019-12-31 04:42:27 +08:00
|
|
|
int PrintAIDDescription(json_t *xroot, char *aid, bool verbose);
|
2019-11-05 06:06:51 +08:00
|
|
|
int PrintAIDDescriptionBuf(json_t *root, uint8_t *aid, size_t aidlen, bool verbose);
|
|
|
|
json_t *AIDSearchInit(bool verbose);
|
2021-04-17 21:17:39 +08:00
|
|
|
json_t *AIDSearchGetElm(json_t *root, size_t elmindx);
|
2019-11-05 03:18:37 +08:00
|
|
|
bool AIDGetFromElm(json_t *data, uint8_t *aid, size_t aidmaxlen, int *aidlen);
|
2020-05-03 07:13:28 +08:00
|
|
|
int AIDSearchFree(json_t *root);
|
2019-11-05 01:54:23 +08:00
|
|
|
|
2019-11-08 19:01:46 +08:00
|
|
|
#endif
|