From d11aba2e55323bb5a6a9deb5bb09fd87470dcedf Mon Sep 17 00:00:00 2001 From: Sorabh Hamirwasia Date: Mon, 6 Mar 2017 00:19:50 -0800 Subject: 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 --- contrib/native/client/src/include/drill/common.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contrib/native/client/src/include') 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 -- cgit v1.2.3