2021-01-18 00:00:45 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2021-01-18 01:17:06 +00:00
|
|
|
#include "json.hpp"
|
|
|
|
|
2021-01-18 00:00:45 +00:00
|
|
|
namespace BareMinimumCrypto {
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
struct ExpiringSignature {
|
2021-01-18 22:13:48 +00:00
|
|
|
// Payload is contained in here
|
|
|
|
vector <uint8_t> cert;
|
2021-01-18 00:00:45 +00:00
|
|
|
vector <uint8_t> sig;
|
|
|
|
|
|
|
|
bool operator == (const ExpiringSignature & o) const;
|
|
|
|
bool operator != (const ExpiringSignature & o) const;
|
|
|
|
};
|
|
|
|
}
|