aboutsummaryrefslogtreecommitdiff
path: root/contrib/native/client/src/include
diff options
context:
space:
mode:
authorSorabh Hamirwasia <shamirwasia@maprtech.com>2017-03-06 00:19:50 -0800
committerAman Sinha <asinha@maprtech.com>2017-05-20 16:17:19 -0700
commitd11aba2e55323bb5a6a9deb5bb09fd87470dcedf (patch)
tree60e61ce8fa7db70deeaeb09733a7f86864434516 /contrib/native/client/src/include
parentce8bbc01cfde7d714185919be2ca2923d19ea890 (diff)
DRILL-4335: Apache Drill should support network encryption.
NOTE: This pull request provides support for on-wire encryption using SASL framework. Communication channel covered is: 1) C++ Drill Client and Drillbit channel. close apache/drill#809
Diffstat (limited to 'contrib/native/client/src/include')
-rw-r--r--contrib/native/client/src/include/drill/common.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/native/client/src/include/drill/common.hpp b/contrib/native/client/src/include/drill/common.hpp
index ed0a1ed32..5401c75a9 100644
--- a/contrib/native/client/src/include/drill/common.hpp
+++ b/contrib/native/client/src/include/drill/common.hpp
@@ -56,6 +56,7 @@
#define LENGTH_PREFIX_MAX_LENGTH 5
#define LEN_PREFIX_BUFLEN LENGTH_PREFIX_MAX_LENGTH
+#define ENCRYPT_LEN_PREFIX_BUFLEN 4
#define MAX_CONNECT_STR 4096
#define MAX_SOCK_RD_BUFSIZE 1024
@@ -169,6 +170,7 @@ typedef enum{
#define USERPROP_AUTH_MECHANISM "auth"
#define USERPROP_SERVICE_NAME "service_name"
#define USERPROP_SERVICE_HOST "service_host"
+#define USERPROP_SASL_ENCRYPT "sasl_encrypt"
// Bitflags to describe user properties
// Used in DrillUserProperties::USER_PROPERTIES