I assume this is going to be a compile/configure time option ?

What about using a different approach - generate multiple .so files, one with common/base/non-optional functionality, and one for each optional library. Compile time options makes it hard to distribute compiled binaries and add more requirements.



Costin

[EMAIL PROTECTED] wrote:
mturk       2005/02/02 23:47:49

Added: jni/native/src ssl.c
Log:
Add OpenSSL support.
Revision Changes Path
1.1 jakarta-tomcat-connectors/jni/native/src/ssl.c
Index: ssl.c
===================================================================
/* Copyright 2000-2004 The Apache Software Foundation


   *

   * Licensed 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.

   */



  #include "apr.h"

  #include "apr_pools.h"

  #include "apr_file_io.h"



  #include "tcn.h"



  #ifdef HAVE_OPENSSL



  /* OpenSSL headers */

  #include <openssl/ssl.h>

  #include <openssl/err.h>

  #include <openssl/x509.h>

  #include <openssl/pem.h>

  #include <openssl/crypto.h>

  #include <openssl/evp.h>

  #include <openssl/rand.h>

  #include <openssl/x509v3.h>

  /* Avoid tripping over an engine build installed globally and detected

   * when the user points at an explicit non-engine flavor of OpenSSL

   */

  #if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ENGINE_INIT)

  #include <openssl/engine.h>

  #endif

















  #else





#endif


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to