]> WPIA git - cassiopeia.git/blobdiff - src/crypto/sslUtil.h
fix: Refine Error Management and note about further plces that need care
[cassiopeia.git] / src / crypto / sslUtil.h
index c4193fe46766f656f2f7757c7d00fc4ad2eed700..1327a17bd47367dd0113ce8dec984e1ca93ccb27 100644 (file)
@@ -18,7 +18,7 @@ public:
     std::shared_ptr<X509> ca;
     std::shared_ptr<EVP_PKEY> caKey;
     std::shared_ptr<ASN1_TIME> notBefore;
-    CAConfig( std::string name );
+    CAConfig( const std::string& name );
     bool crlNeedsResign();
 };
 
@@ -43,10 +43,10 @@ struct Profile {
 
 extern std::shared_ptr<int> ssl_lib_ref;
 
-std::shared_ptr<X509> loadX509FromFile( std::string filename );
-std::shared_ptr<EVP_PKEY> loadPkeyFromFile( std::string filename );
+std::shared_ptr<X509> loadX509FromFile( const std::string& filename );
+std::shared_ptr<EVP_PKEY> loadPkeyFromFile( const std::string& filename );
 
 std::shared_ptr<SSL_CTX> generateSSLContext( bool server );
-std::shared_ptr<BIO> openSerial( const std::string name );
+std::shared_ptr<BIO> openSerial( const std::string& name );
 std::string timeToString( std::shared_ptr<ASN1_TIME> time );
 void extractTimes( std::shared_ptr<X509> source, std::shared_ptr<SignedCertificate> cert );