bin_SCRIPTS = curl-config
SUBDIRS = lib src include
-if USE_TIZEN_FEATURE_DLP
-SUBDIRS += extensions
-endif
DIST_SUBDIRS = $(SUBDIRS) tests packages docs scripts
pkgconfigdir = $(libdir)/pkgconfig
dnl http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/ \
dnl genprogc/thread_quick_ref.htm
-dnl **********************************************************************
-dnl Check for DLP
-dnl **********************************************************************
-
-AC_ARG_ENABLE([dlp],
- AS_HELP_STRING([--enable-dlp], [Enable DLP usage]))
-
-AS_IF([test "x$enable_dlp" = "xyes"], [
- CPPFLAGS+=" -DUSE_TIZEN_FEATURE_DLP"
-])
-
-AM_CONDITIONAL(USE_TIZEN_FEATURE_DLP, test "x$enable_dlp" = "xyes")
dnl **********************************************************************
include/curl/Makefile \
src/Makefile \
lib/Makefile \
- extensions/Makefile \
scripts/Makefile \
lib/libcurl.vers \
tests/Makefile \
+++ /dev/null
-lib_LTLIBRARIES = libcurl_extension_dlp.la
-
-libcurl_extension_dlp_la_SOURCES = tizen_dlp.c
-libcurl_extension_dlp_la_LDFLAGS = -lprivacy-guard-client
+++ /dev/null
-/**
- * @file tizen_dlp.cpp
- * @brief external API functions for DLP
- */
-
-#include <privacy_guard/privacy_guard_dlp.h>
-
-/**
- * @fn void tizen_dlp_init(void)
- * @brief Initialize the DLP creating the Load Rules and Logging threads
- * @callgraph
- */
-void tizen_dlp_init(void)
-{
- privacy_guard_dlp_init();
-}
-
-/**
- * @fn void tizen_dlp_check_leak(const char *hostname, char * const mem, size_t len)
- * @brief Checks for information leak on a given request string
- *
- * @param[in] hostname The hostname of the server to which the request will be sent
- * @param[in] mem Text that we are going to validate for info leak
- * @param[in] len Size of len in bytes
- *
- * @return either PRIV_GUARD_DLP_RESULT_ALLOW or PRIV_GUARD_DLP_RESULT_DENY
- * @callgraph
- */
-void tizen_dlp_check_leak(const char *hostname, char * const mem, size_t len)
-{
- /**
- * Send data to Tizen DLP verification
- */
- privacy_guard_dlp_check_leak(hostname, mem, len);
-}
vtls/cyassl.h vtls/schannel.h vtls/darwinssl.h vtls/gskit.h \
vtls/mbedtls.h
-if USE_TIZEN_FEATURE_DLP
-LIB_EXTENSIONS_CFILES = extensions/curl_extensions.c
-LIB_EXTENSIONS_HFILES = extensions/curl_extensions.h
-endif
-
LIB_CFILES = file.c timeval.c base64.c hostip.c progress.c formdata.c \
cookie.c http.c sendf.c ftp.c url.c dict.c if2ip.c speedcheck.c \
ldap.c version.c getenv.c escape.c mprintf.c telnet.c netrc.c \
LIB_RCFILES = libcurl.rc
-CSOURCES = $(LIB_CFILES) $(LIB_VAUTH_CFILES) $(LIB_VTLS_CFILES) $(LIB_EXTENSIONS_CFILES)
-HHEADERS = $(LIB_HFILES) $(LIB_VAUTH_HFILES) $(LIB_VTLS_HFILES) $(LIB_EXTENSIONS_HFILES)
+CSOURCES = $(LIB_CFILES) $(LIB_VAUTH_CFILES) $(LIB_VTLS_CFILES)
+HHEADERS = $(LIB_HFILES) $(LIB_VAUTH_HFILES) $(LIB_VTLS_HFILES)
#include "curl_printf.h"
#include "curl_memory.h"
#include "memdebug.h"
-#ifdef USE_TIZEN_FEATURE_DLP
-#include "extensions/curl_extensions.h"
-#endif
void Curl_version_init(void);
if(initialized++)
return CURLE_OK;
-#ifdef USE_TIZEN_FEATURE_DLP
- /**
- * Initialize Tizen DLP
- */
- curl_extensions_tizen_dlp_init();
-#endif
-
if(memoryfuncs) {
/* Setup the default memory functions here (again) */
Curl_cmalloc = (curl_malloc_callback)malloc;
+++ /dev/null
-/***************************************************************************
- * _ _ ____ _
- * Project ___| | | | _ \| |
- * / __| | | | |_) | |
- * | (__| |_| | _ <| |___
- * \___|\___/|_| \_\_____|
- *
- * Copyright (C) 2014 - 2016, Steve Holme, <steve_holme@hotmail.com>.
- *
- * This software is licensed as described in the file COPYING, which
- * you should have received as part of this distribution. The terms
- * are also available at https://curl.haxx.se/docs/copyright.html.
- *
- * You may opt to use, copy, modify, merge, publish, distribute and/or sell
- * copies of the Software, and permit persons to whom the Software is
- * furnished to do so, under the terms of the COPYING file.
- *
- * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
- * KIND, either express or implied.
- *
- ***************************************************************************/
-
-/**
- * @file curl_extensions.cpp
- * @brief external API functions for DLP
- */
-
-#ifdef USE_TIZEN_FEATURE_DLP
-#include <dlfcn.h>
-#include <extensions/curl_extensions.h>
-
-#define LIBRARY_PATH "/usr/lib/libcurl_extension_dlp.so.0"
-
-static int first_run = 1;
-static void (*tizen_dlp_init)(void) = NULL;
-static void (*tizen_dlp_check_leak)(const char *, char * const, size_t) = NULL;
-
-/**
- * @fn void curl_extensions_init(void)
- * @brief Load the extension shared library looking for the function call
- * symbols it going to use
- * @callgraph
- */
-static void curl_extensions_init(void)
-{
- if (first_run) {
- void *handle = dlopen(LIBRARY_PATH, RTLD_LAZY);
- if (handle) {
- tizen_dlp_init = dlsym(handle, "tizen_dlp_init");
- tizen_dlp_check_leak = dlsym(handle, "tizen_dlp_check_leak");
- }
- first_run = 0;
- }
-}
-
-/**
- * @callgraph
- */
-void curl_extensions_tizen_dlp_init(void)
-{
- curl_extensions_init();
-
- if (tizen_dlp_init)
- tizen_dlp_init();
-}
-
-/**
- * @callgraph
- */
-void curl_extensions_tizen_dlp_check_leak(const char *hostname, char * const mem, size_t len)
-{
- if(tizen_dlp_check_leak)
- tizen_dlp_check_leak(hostname, mem, len);
-}
-#endif /* USE_TIZEN_FEATURE_DLP */
+++ /dev/null
-/***************************************************************************
- * _ _ ____ _
- * Project ___| | | | _ \| |
- * / __| | | | |_) | |
- * | (__| |_| | _ <| |___
- * \___|\___/|_| \_\_____|
- *
- * Copyright (C) 2014 - 2016, Steve Holme, <steve_holme@hotmail.com>.
- *
- * This software is licensed as described in the file COPYING, which
- * you should have received as part of this distribution. The terms
- * are also available at https://curl.haxx.se/docs/copyright.html.
- *
- * You may opt to use, copy, modify, merge, publish, distribute and/or sell
- * copies of the Software, and permit persons to whom the Software is
- * furnished to do so, under the terms of the COPYING file.
- *
- * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
- * KIND, either express or implied.
- *
- ***************************************************************************/
-
-/**
- * @file curl_extensions.h
- * @brief API for privacy-guard-dlp
- */
-
-#ifdef USE_TIZEN_FEATURE_DLP
-#ifndef HEADER_CURL_EXTENSIONS_H
-#define HEADER_CURL_EXTENSIONS_H
-
-#include <stddef.h>
-
-/**
- * @fn void curl_extensions_tizen_dlp_init(void)
- * @brief Initialize the DLP creating the Load Rules and Logging threads
- * @callgraph
- */
-void curl_extensions_tizen_dlp_init(void);
-
-/**
- * @fn void curl_extensions_tizen_dlp_check_leak(const char *hostname, char * const mem, size_t len)
- * @brief Checks for information leak on a given request string
- *
- * @param[in] hostname The hostname of the server to which the request will be sent
- * @param[in] mem Text that we are going to validate for info leak
- * @param[in] len Size of len in bytes
- *
- * @return either PRIV_GUARD_DLP_RESULT_ALLOW or PRIV_GUARD_DLP_RESULT_DENY
- * @callgraph
- */
-void curl_extensions_tizen_dlp_check_leak(const char *hostname, char * const mem, size_t len);
-
-#endif /* HEADER_CURL_EXTENSIONS_H */
-#endif /* USE_TIZEN_FEATURE_DLP */
#include <curl/curl.h>
-#ifdef USE_TIZEN_FEATURE_DLP
-#include "extensions/curl_extensions.h"
-#endif
#include "urldata.h"
#include "sendf.h"
#include "connect.h"
CURLcode result = CURLE_OK;
int num = (sockfd == conn->sock[SECONDARYSOCKET]);
-#ifdef USE_TIZEN_FEATURE_DLP
- /**
- * Send data to Tizen DLP verification
- */
- curl_extensions_tizen_dlp_check_leak(conn->host.dispname, (char *const)mem,
- len);
-#endif
-
bytes_written = conn->send[num](conn, num, mem, len, &result);
*written = bytes_written;
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(libcares)
BuildRequires: pkgconfig(libnghttp2)
-BuildRequires: pkgconfig(privacy-guard-client)
Provides: webclient
libcurl is the core engine of curl; this packages contains all the libs,
headers, and manual pages to develop applications using libcurl.
-%package -n libcurl-extension-dlp
-Summary: Extensions for Tizen OS
-Provides: libcurl-extension-dlp = %{version}-%{release}
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
-
-%description -n libcurl-extension-dlp
-libcurl extensions for Tinen OS.
-
%prep
%setup -q
cp %{SOURCE1001} .
--disable-static \
--with-nghttp2 \
--without-zsh-functions-dir \
---enable-dlp \
#--with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt
make DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" install
-rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl{,_extension_dlp}.la
+rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
install -d $RPM_BUILD_ROOT/%{_datadir}/aclocal
install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT/%{_datadir}/aclocal
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/libcurl.m4
-%files -n libcurl-extension-dlp
-%manifest %{name}.manifest
-%{_libdir}/libcurl_extension_dlp.so.*
-%license COPYING