]> WPIA git - cassiopeia.git/blobdiff - src/crypto/remoteSigner.h
fix: better choose CAcert if multiple are available
[cassiopeia.git] / src / crypto / remoteSigner.h
index 09331bbacd9cff5567fce1ef7d8b3b9be298d0a7..79fabae4c1bc156909fe00fbd31a66596c988d89 100644 (file)
@@ -1,4 +1,5 @@
 #pragma once
+
 #include <memory>
 #include <openssl/ssl.h>
 
@@ -20,7 +21,7 @@ public:
     RemoteSigner( std::shared_ptr<BIO> target, std::shared_ptr<SSL_CTX> ctx );
     ~RemoteSigner();
     std::shared_ptr<SignedCertificate> sign( std::shared_ptr<TBSCertificate> cert );
-    std::shared_ptr<X509_CRL> revoke( std::shared_ptr<CAConfig> ca, std::string serial );
+    std::pair<std::shared_ptr<CRL>, std::string> revoke( std::shared_ptr<CAConfig> ca, std::vector<std::string> serial );
 
     void setLog( std::shared_ptr<std::ostream> target );
 };