]> WPIA git - cassiopeia.git/blobdiff - src/database.h
add: Add support for Subject Alternative Names (SANs)
[cassiopeia.git] / src / database.h
index 46aed6c012ba0fec675371e1fb4890347008359f..a80b73ed69f2703f9292329d90dd9a068f4b9ab8 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <string>
 #include <memory>
+#include <vector>
 
 struct Job {
     std::string id;
@@ -10,6 +11,12 @@ struct Job {
     std::string from;
     std::string to;
 };
+
+struct SAN {
+    std::string content;
+    std::string type;
+};
+
 struct TBSCertificate {
     std::string CN;
     std::string subj;
@@ -18,6 +25,7 @@ struct TBSCertificate {
     std::string csr;
     std::string csr_type;
     std::string csr_content;
+    std::vector<std::shared_ptr<SAN>> SANs;
 };
 
 class JobProvider {