mike-jumper commented on a change in pull request #492:
URL: https://github.com/apache/guacamole-client/pull/492#discussion_r441064626



##########
File path: 
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/org/apache/guacamole/auth/mysql/conf/MySQLSSLMode.java
##########
@@ -0,0 +1,89 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.guacamole.auth.mysql.conf;
+
+import org.apache.guacamole.properties.EnumGuacamoleProperty.PropertyValue;
+
+/**
+ * Possible values for enabling SSL within the MySQL Driver.
+ */
+public enum MySQLSSLMode {
+    
+    /**
+     * Do not use SSL at all.
+     */
+    @PropertyValue("disabled")
+    DISABLED("disabled"),

Review comment:
       According to 
https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-configuration-properties.html:
   
   > ... The following values are allowed: "DISABLED" - Establish unencrypted 
connections; "PREFERRED" - (default) Establish encrypted connections if the 
server enabled them, otherwise fall back to unencrypted connections; "REQUIRED" 
- Establish secure connections if the server enabled them, fail otherwise; 
"VERIFY_CA" - Like "REQUIRED" but additionally verify the server TLS 
certificate against the configured Certificate Authority (CA) certificates; 
"VERIFY_IDENTITY" - Like "VERIFY_CA", but additionally verify that the server 
certificate matches the host to which the connection is attempted.
   
   Are the current strings for `driverValue` listed here ("disabled", 
"verify-ca", etc.) correct?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to