set use_ssl flag

This commit is contained in:
Alexandra 2021-05-18 20:48:16 +00:00
parent b7a0f2db57
commit f71e97511b
6 changed files with 32 additions and 2 deletions

View File

@ -1,4 +1,9 @@
#include <Common/config.h>
#if !defined(ARCADIA_BUILD)
# include <Common/config.h>
#endif
#if USE_SSL
#include <Interpreters/Context.h>
#include "Disks/DiskFactory.h"
@ -179,3 +184,6 @@ void registerDiskEncrypted(DiskFactory & factory)
}
}
#endif

View File

@ -1,5 +1,7 @@
#pragma once
#if USE_SSL
#include <Disks/IDisk.h>
#include <Disks/DiskDecorator.h>
#include <IO/ReadBufferFromFileBase.h>
@ -242,3 +244,6 @@ private:
};
}
#endif

View File

@ -13,7 +13,9 @@ void registerDiskMemory(DiskFactory & factory);
#if USE_AWS_S3
void registerDiskS3(DiskFactory & factory);
#endif
#if USE_SSL
void registerDiskEncrypted(DiskFactory & factory);
#endif
void registerDisks()
{
@ -24,7 +26,9 @@ void registerDisks()
#if USE_AWS_S3
registerDiskS3(factory);
#endif
#if USE_SSL
registerDiskEncrypted(factory);
#endif
}
}

View File

@ -1,6 +1,6 @@
#pragma once
#include <fstream>
#if USE_SSL
#include <openssl/evp.h>
#include <openssl/engine.h>
@ -326,3 +326,6 @@ private:
};
}
#endif

View File

@ -1,5 +1,7 @@
#pragma once
#if USE_SSL
#include <IO/ReadBufferFromFileBase.h>
#include <IO/WriteBufferFromFileBase.h>
#include <Functions/FileEncryption.h>
@ -116,3 +118,6 @@ private:
};
}
#endif

View File

@ -1,5 +1,7 @@
#pragma once
#if USE_SSL
#include <IO/WriteBufferFromFileBase.h>
#include <Functions/FileEncryption.h>
@ -78,3 +80,6 @@ private:
};
}
#endif