Skip to content

Commit 426dfd4

Browse files
author
StefanoBelli
committed
Final commit, project abandoned
1 parent fdd72b7 commit 426dfd4

5 files changed

Lines changed: 4 additions & 20 deletions

File tree

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ addons:
1515
packages:
1616
- cmake
1717
- doxygen
18-
- libgcrypt-dev
1918
- pkg-config
2019
- libjsoncpp1
2120
- libjsoncpp-dev
2221

2322
before_script:
24-
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew update && brew install pkg-config jsoncpp doxygen curl && brew upgrade cmake libgcrypt; fi
23+
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew update && brew install pkg-config jsoncpp doxygen curl; fi
2524

2625
script:
27-
- pkg-config --variable pc_path pkg-config
2826
- cmake . -DCMAKE_BUILD_TYPE="Release" -DCMAKE_CXX_FLAGS="-Wall -Wextra -O2 -finline-functions" -DXXTELEBOT_PKG_CONFIG="not_needed_here"
2927
- make -j3
3028

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.2)
22

33
project(xxtelebot
44
LANGUAGES CXX
5-
VERSION 1.4.1.0)
5+
VERSION 1.4.1.1)
66

77
# M.m
88
set(TGBOTAPI_VER_MAJOR 4)

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "xxtelebot"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 1.4.1.0
41+
PROJECT_NUMBER = 1.4.1.1
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

src/CMakeLists.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
cmake_minimum_required(VERSION 3.2)
22

33
find_package(PkgConfig REQUIRED)
4-
find_package(CURL REQUIRED VERSION 7.56.0)
4+
find_package(CURL 7.56.0 REQUIRED)
55
find_package(Threads REQUIRED)
6-
#find_library(GCRYPT_LIBRARY NAMES gcrypt libgcrypt)
7-
8-
#if(NOT GCRYPT_LIBRARY)
9-
# message(FATAL_ERROR "Could not find gcrypt library")
10-
#endif()
116

127
pkg_check_modules(JSONCPP QUIET jsoncpp)
138

@@ -42,7 +37,6 @@ target_link_libraries(xxtelebot
4237
PRIVATE
4338
${CURL_LIBRARIES}
4439
${JSONCPP_LIBRARIES}
45-
# ${GCRYPT_LIBRARY}
4640
Threads::Threads
4741
)
4842

src/https.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <errno.h>
2-
//#include <gcrypt.h>
32
#include <tgbot/utils/https.h>
43
#include <sstream>
54
#include <stdexcept>
@@ -9,8 +8,6 @@
98
#define SEPARATE(k, sstr) \
109
if (k) sstr << ','
1110

12-
//GCRY_THREAD_OPTION_PTHREAD_IMPL; /*deprecated*/
13-
1411
using namespace tgbot::utils::http;
1512

1613
static size_t write_data(const char *ptr, unused size_t nbs, size_t count,
@@ -19,16 +16,11 @@ static size_t write_data(const char *ptr, unused size_t nbs, size_t count,
1916
return count;
2017
}
2118

22-
//static void __GnuTLS_ProvideLockingMethod() {
23-
// gcry_control(GCRYCTL_SET_THREAD_CBS);
24-
//}
25-
2619
void tgbot::utils::http::__internal_Curl_GlobalInit() {
2720
if(curl_global_sslset(CURLSSLBACKEND_GNUTLS, NULL, NULL) != CURLSSLSET_OK)
2821
throw std::runtime_error("curl_global_sslset() error: libcurl does not support GnuTLS");
2922

3023
curl_global_init(CURL_GLOBAL_SSL);
31-
// __GnuTLS_ProvideLockingMethod();
3224
}
3325

3426
CURL *tgbot::utils::http::curlEasyInit() {

0 commit comments

Comments
 (0)