mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
19.11.2013 bc247971096268630f67130974fccbb3a6e23be5
opends/src/server/org/opends/server/extensions/StartTLSExtendedOperation.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 *      Portions Copyright 2013 ForgeRock AS
 */
package org.opends.server.extensions;
@@ -132,8 +133,6 @@
    if (clientConnection == null)
    {
      operation.setResultCode(ResultCode.UNAVAILABLE);
      operation.appendErrorMessage(ERR_STARTTLS_NO_CLIENT_CONNECTION.get());
      return;
    }
@@ -149,14 +148,12 @@
    else
    {
      operation.setResultCode(ResultCode.UNAVAILABLE);
      operation.appendErrorMessage(ERR_STARTTLS_NOT_TLS_CAPABLE.get());
      return;
    }
    MessageBuilder unavailableReason = new MessageBuilder();
    if (! tlsCapableConnection.isTLSAvailable(unavailableReason))
    if (! tlsCapableConnection.isStartTLSAvailable(unavailableReason))
    {
      operation.setResultCode(ResultCode.UNAVAILABLE);
      operation.setErrorMessage(unavailableReason);