summaryrefslogtreecommitdiff
path: root/src/include/cchecker/app.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/cchecker/app.h')
-rw-r--r--src/include/cchecker/app.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/cchecker/app.h b/src/include/cchecker/app.h
index c7dff35..3217bdb 100644
--- a/src/include/cchecker/app.h
+++ b/src/include/cchecker/app.h
@@ -24,10 +24,15 @@
#include <string>
#include <vector>
+#include <list>
#include <sys/types.h>
namespace CCHECKER {
+// Used as app_id when no information about app id in signal
+// Currently in signals from pkgmgr only information about pkg_id is included
+const char *const TEMP_APP_ID = "temp#app_id";
+
struct app_t {
enum class verified_t : int32_t {
NO = 0,
@@ -50,6 +55,22 @@ struct app_t {
std::string str(void) const;
};
+struct url_t {
+ std::string issuer;
+ std::string url;
+ int64_t date;
+
+ url_t(const std::string &_issuer,
+ const std::string &_url,
+ int64_t _date):
+ issuer(_issuer),
+ url(_url),
+ date(_date)
+ {};
+};
+
+typedef std::list<url_t> ocsp_urls_t;
+
} //CCHECKER
#endif //CCHECKER_APP_H