Github user bitblender commented on a diff in the pull request: https://github.com/apache/drill/pull/809#discussion_r114775522 --- Diff: contrib/native/client/src/clientlib/drillClientImpl.cpp --- @@ -370,6 +453,33 @@ void DrillClientImpl::handleHShakeReadTimeout(const boost::system::error_code & return; } +/* + * Check's if client has explicitly expressed interest in encrypted connections only. It looks for USERPROP_ENCRYPTION + * connection string property. If set to true then returns true else returns false + */ +bool DrillClientImpl::clientNeedsEncryption(const DrillUserProperties* userProperties) { + bool needsEncryption = false; + // check if userProperties is null + if(!userProperties) { + return needsEncryption; + } + + // Loop through the property to find USERPROP_ENCRYPTION and it's value + for (size_t i = 0; i < userProperties->size(); i++) { --- End diff -- Not related to your change: I wonder why DrillUserProperties was not implemented as a map?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---