Add tqca-tls plugin to the tqca package.

Signed-off-by: gregory guy <gregory-tde@laposte.net>
remotes/origin/feat/add_tls_plugin
gregory guy 4 years ago
parent 367a857d89
commit 386aaaa57d
No known key found for this signature in database
GPG Key ID: 3BCCA0F7AB4536F4

@ -50,6 +50,12 @@ option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
##### user requested modules
option( BUILD_ALL "Build all" ON )
option( BUILD_TQCA_TLS "Build tqca-tls plugin" ${BUILD_ALL} )
##### configure checks
include( ConfigureChecks.cmake )

@ -31,3 +31,26 @@ execute_process(
OUTPUT_VARIABLE TQT_HEADERS_DIRS
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if( BUILD_TQCA_TLS )
##### check for openssl
find_package( OpenSSL )
if( NOT OPENSSL_FOUND )
tde_message_fatal( "OpenSSL is required but was not found on your system" )
endif()
##### look for tqt3 plugins path
execute_process(
COMMAND ${PKG_CONFIG_EXECUTABLE}
--variable=pluginsdir tqt-mt
OUTPUT_VARIABLE TQT_PLUGINS_DIR
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if( TQT_PLUGINS_DIR )
set( TQT_PLUGINS_CRYPTO_DIR "${TQT_PLUGINS_DIR}/crypto" )
endif()
endif( BUILD_TQCA_TLS )

@ -26,6 +26,24 @@ tde_add_library( ${PROJECT_NAME} SHARED AUTOMOC
)
if( BUILD_TQCA_TLS )
add_definitions( -DOSSL_097 -DTQCA_PLUGIN )
##### tqca-tls (shared)
tde_add_library( tqca-tls SHARED NO_LIBTOOL_FILE AUTOMOC
SOURCES
tqca-tls.cpp
LINK
${TQT_LIBRARIES}
${OPENSSL_LIBRARIES}
DESTINATION ${TQT_PLUGINS_CRYPTO_DIR}
)
endif( BUILD_TQCA_TLS )
##### headers
install(

File diff suppressed because it is too large Load Diff

@ -0,0 +1,35 @@
/*
* qca-tls.h - TLS plugin for TQCA
* Copyright (C) 2003 Justin Karneges
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef TQCA_TLS_H
#define TQCA_TLS_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "tqcaprovider.h"
#ifdef TQCA_PLUGIN
TQCA_PLUGIN_EXPORT TQCAProvider *createProvider();
#else
TQCAProvider *createProviderTLS();
#endif
#endif
Loading…
Cancel
Save