diff options
author | Jack Lloyd <[email protected]> | 2016-10-12 16:25:19 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-10-12 16:25:19 -0400 |
commit | 60fc0ebf44e746b17d46a9d53054064808476495 (patch) | |
tree | 27a90a6574a7ba05e6a55b334ac28fbcf4a80877 /src/lib/cert/x509 | |
parent | 7a40d6c03012bde4e06d65b92bf06ccab2b73d93 (diff) |
More no-filesystem fixes
Diffstat (limited to 'src/lib/cert/x509')
-rw-r--r-- | src/lib/cert/x509/certstor.cpp | 2 | ||||
-rw-r--r-- | src/lib/cert/x509/pkcs10.h | 2 | ||||
-rw-r--r-- | src/lib/cert/x509/x509_crl.h | 2 | ||||
-rw-r--r-- | src/lib/cert/x509/x509cert.h | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/cert/x509/certstor.cpp b/src/lib/cert/x509/certstor.cpp index 28b46ef1a..24cd84de7 100644 --- a/src/lib/cert/x509/certstor.cpp +++ b/src/lib/cert/x509/certstor.cpp @@ -114,6 +114,7 @@ Certificate_Store_In_Memory::Certificate_Store_In_Memory(const X509_Certificate& add_certificate(cert); } +#if defined(BOTAN_TARGET_OS_HAS_FILESYSTEM) Certificate_Store_In_Memory::Certificate_Store_In_Memory(const std::string& dir) { if(dir.empty()) @@ -131,6 +132,7 @@ Certificate_Store_In_Memory::Certificate_Store_In_Memory(const std::string& dir) } } } +#endif std::shared_ptr<const X509_Certificate> Certificate_Store_Overlay::find_cert(const X509_DN& subject_dn, diff --git a/src/lib/cert/x509/pkcs10.h b/src/lib/cert/x509/pkcs10.h index 8c9f49d84..c7a9ec300 100644 --- a/src/lib/cert/x509/pkcs10.h +++ b/src/lib/cert/x509/pkcs10.h @@ -86,12 +86,14 @@ class BOTAN_DLL PKCS10_Request final : public X509_Object */ explicit PKCS10_Request(DataSource& source); +#if defined(BOTAN_TARGET_OS_HAS_FILESYSTEM) /** * Create a PKCS#10 Request from a file. * @param filename the name of the file containing the DER or PEM * encoded request file */ explicit PKCS10_Request(const std::string& filename); +#endif /** * Create a PKCS#10 Request from binary data. diff --git a/src/lib/cert/x509/x509_crl.h b/src/lib/cert/x509/x509_crl.h index 2e05f98fb..25749acf1 100644 --- a/src/lib/cert/x509/x509_crl.h +++ b/src/lib/cert/x509/x509_crl.h @@ -82,6 +82,7 @@ class BOTAN_DLL X509_CRL final : public X509_Object */ X509_CRL(DataSource& source, bool throw_on_unknown_critical = false); +#if defined(BOTAN_TARGET_OS_HAS_FILESYSTEM) /** * Construct a CRL from a file containing the DER or PEM encoded CRL. * @param filename the name of the CRL file @@ -90,6 +91,7 @@ class BOTAN_DLL X509_CRL final : public X509_Object */ X509_CRL(const std::string& filename, bool throw_on_unknown_critical = false); +#endif /** * Construct a CRL from a binary vector diff --git a/src/lib/cert/x509/x509cert.h b/src/lib/cert/x509/x509cert.h index d64d8fd2b..c7ce8aaa1 100644 --- a/src/lib/cert/x509/x509cert.h +++ b/src/lib/cert/x509/x509cert.h @@ -265,12 +265,14 @@ class BOTAN_DLL X509_Certificate : public X509_Object */ explicit X509_Certificate(DataSource& source); +#if defined(BOTAN_TARGET_OS_HAS_FILESYSTEM) /** * Create a certificate from a file containing the DER or PEM * encoded certificate. * @param filename the name of the certificate file */ explicit X509_Certificate(const std::string& filename); +#endif explicit X509_Certificate(const std::vector<byte>& in); |