summaryrefslogtreecommitdiff
path: root/lib/cpp/src/thrift/transport/TSSLSocket.cpp
Commit message (Collapse)AuthorAgeFilesLines
* THRIFT-5666: lib: cpp: prefer poll.h over sys/poll.hChris Friedt2022-11-201-0/+3
| | | | | | | | | | | The `<sys/poll.h>` header is not actually where `poll(2)` must be defined according to the spec. However, it may be the case that some random UNIX-like OS uses `<sys/poll.h>` instead. Both use cases can be supported simply by including the proper header, if it exists. Signed-off-by: Chris Friedt <cfriedt@meta.com>
* THRIFT-5482: Fix memory leak during SSL handshake in C++ libraryAnshul M Gupta2021-12-061-0/+16
| | | | Client: C++
* Robustness improvements when loading OpenSSL certificatesMarco Schroeter2021-06-041-9/+24
|
* THRIFT-5237 Implement MAX_MESSAGE_SIZE and consolidate limits into a ↵zeshuai0072020-07-251-12/+17
| | | | | | | | | TConfiguration class Client: cpp Patch: Zezeng Wang This closes #2185
* THRIFT-5225: Use nullptr instead of NULLzeshuai0072020-06-141-10/+10
| | | | | | Patch: Zezeng Wang This closes #2168
* THRIFT-4977: Allow loading OpenSSL certificates from memoryMario Emmenlauer2019-10-151-0/+77
| | | | | Client: cpp This closes #1860.
* THRIFT-4776:Modernize c++11 code by clang-tidy (#1732)cyy2019-02-081-5/+7
| | | | | | | | | | | | | | * use override * use make_shared * use emplace * use range for * fix error on MSVC * replace boost functions with std functions * fix static analyzer warnings * check api return value * initialize member * check the return value of SSL_peek > 0 * add override
* THRIFT-4762: Applied some C++11 refactorings to the runtime library and ↵Sebastian Zenker2019-01-291-36/+36
| | | | | | | | | | | | compiler (#1719) * make use of C++11 override keyword * added const specifier to TTransport::getOrigin() * added more const correctness to the compiler * make use of auto keyword * replaced usage of NULL with nullptr * make use of explicitly-defaulted function definition * extended changelog
* remove stdcxx namespace and use std directlycyy2019-01-071-21/+21
|
* use noexcept instead of throw() in librarycyy2019-01-071-3/+3
|
* THRIFT-4559: TSSLSocket no longer prints incorrect error for SYSCALL (#1549)Sidneys12018-05-021-0/+16
| | | Client: cpp
* THRIFT-4515: cross server test improvement: graceful test server shutdownJames E. King III2018-03-191-0/+8
| | | | This closes #1509
* THRIFT-4465: Fix C++ TNonblockingServer and THRIFT_EAGAIN issuesBugra Gedik2018-03-121-0/+11
| | | | | | Client: cpp This closes #1497
* THRIFT-2013: add multiplex server and client test support to cpp languageJames E. King, III2017-11-181-22/+29
| | | | | | | | | add multiplex client test support to csharp and java languages fix a bug in the server-side header protocol factory fix a bug in the cpp SSL server socket implementation remove unnecessary sleep in cpp server testOneway This closes #1414
* THRIFT-4331: C++ TSSLSocket fixes for huge message handlingMartin Haimberger2017-10-061-5/+23
| | | | | | | | | | | | Client: C++ fixed issue with large messages, where waitForEvent was called mutliple times waiting for SSL_read() to get bytes and running in the retry timeout. fixed issue where poll was not using the right flags. This fixes #1363
* THRIFT-4248: Import cstring in TSSLSocketJosip Sokcevic2017-08-101-0/+1
| | | | | | | | | Client: C++ strncpy, memcmp, memset are used in TSSLSocket so cstring needs to be imported. This closes #1307
* THRIFT-2221: detect C++11 and use std namespace for memory operations ↵James E. King, III2017-08-101-22/+22
| | | | | | | | (smart_ptr) Client: C++ This closes #1328
* THRIFT-4276:Add SSL support to the C++ Nonblocking ServerDivya Thaluru2017-08-061-27/+146
| | | | | | | | | Client: C++ Lib Patch: Divya Thaluru Github Pull Request: This closes #1251
* THRIFT-4164: update openssl cleanup to match current requirements and ↵James E. King, III2017-04-041-16/+24
| | | | | | | | document TSSLSocketFactory lifetime requirements Client: cpp This closes #1235
* THRIFT-4138: Remove undefined behavior imported from BoostJim Apple2017-04-011-3/+3
| | | | | | | | | | | | | | Client: C++ There is undefined behavior in boost::lexical_cast that was fixed in https://github.com/boostorg/lexical_cast/issues/21, but that fix is only available in recent Boost releases. This patch removes all uses of lexical_cast instead. That removes the last undefined behavior, so this patch also makes ubsan.sh unconditionally fail on undefined behavior. This closes #1232
* THRIFT-3944 TSSLSocket has dead code in checkHandshaketpcwang2017-04-011-15/+0
| | | | | | Client: C++ This closes #1110
* THRIFT-3892 support OpenSSL before 0.9.8f during buildJames E. King, III2017-01-251-2/+5
| | | | | | | Client: C++ Patch: Udit Raikwar <udit043@users.noreply.github.com> This closes #1057
* THRIFT-3953 TSSLSocket::close should handle exceptions from waitForEvent ↵James E. King, III2016-11-141-24/+32
| | | | | | | | | because it is called by the destructor Client: C++ Patch: ted.wang@ni.com This closes #1118
* THRIFT-3942 Make TSSLSocket honor send and receive timeoutstpcwang2016-10-131-1/+9
| | | | | | | Client: C++ Patch: tpcwang <tpc.wang@gmail.com> This closes #1108
* THRIFT-3878: fix interop with newer OpenSSL librariesJames E. King, III2016-10-011-0/+5
| | | | This closes #1102
* THRIFT-3736 C++ library build fails if OpenSSL does not surrpot SSLv3Nobuaki Sukegawa2016-03-181-0/+2
| | | | This closes #944
* THRIFT-3667 C++: Add TLS SNI support to clientsTeddy Reed2016-02-271-0/+2
|
* THRIFT-3420 C++: TSSLSockets are not interruptableNobuaki Sukegawa2016-02-011-6/+6
| | | | | | Fix typo that prevented retrying on EAGAIN etc. This closes #815
* THRIFT-3206 Fix Visual Studio build failure due 'pthread_self': identifier ↵Roger Meier2015-11-291-0/+4
| | | | | | not found Patch: Paweł Janicki
* THRIFT-3420 C++: TSSLSockets are not interruptableMartin Haimberger2015-11-231-17/+242
| | | | | | | Client: C++ Patch: Martin Haimberger This closes #690
* THRIFT-2936:Minor memory leak in SSLjfarrell2015-09-241-2/+1
| | | | | | | | | Client: cpp Patch: James King Thrift clients that use SSL leak 64 bytes in two chunks. This is because the list of available compression methods is not freed. This closes #619
* THRIFT-3164: disable insecure SSLv3 protocol in cpp lib unless SSLv3 is ↵Jim King2015-07-301-3/+5
| | | | specifically asked for to make the defaults more secure; added a matrix security unit test for SSL in the cpp lib
* THRIFT-1844: Overwrite password string after passing it to openssl.Claudius Heine2015-07-081-0/+1
| | | | | Sponsored-by: Roger Meier <r.meier@siemens.com> Signed-off-by: Claudius Heine <ch@denx.de>
* THRIFT-2850 get windows cmake working again and building the unit tests for ↵Jim King2015-04-301-2/+2
| | | | lib/cpp, and pass make check through cmake - also resolve some compiler warnings
* THRIFT-3061 eliminate potential for client to hang SSLSocket closeRoger Meier2015-04-121-3/+0
| | | | | | | | This closes #423 commit 5cb13f25ee6d292f2fde0051a2b7ee56b7884055 Author: Jim King <jim.king@simplivity.com> Date: 2015-04-03T18:56:27Z
* THRIFT-2936 Minor memory leak in CPP SSLRandy Abernethy2015-01-091-0/+1
| | | | | Client: CPP Patch: Cristian Klein
* THRIFT-2849: spelling errors fixed using codespell toolKonrad Grochowski2014-11-241-1/+1
| | | | | | | Client: All Patch: Anatol Pomozov This closes #281
* THRIFT-2729: C++ - .clang-format created and appliedKonrad Grochowski2014-11-181-71/+53
| | | | | | | Client: C++ Patch: Konrad Grochowski make style command added
* Revert "THRIFT-2729: C++ - .clang-format created and applied"Konrad Grochowski2014-11-181-53/+71
| | | | This reverts commit 74260aa9099c3bb209bc8e524b0e8ba603f62c41.
* THRIFT-2729: C++ - .clang-format created and appliedKonrad Grochowski2014-11-181-71/+53
| | | | | | | Client: C++ Patch: Konrad Grochowski make style command added
* Add ability to take control of OpenSSL initializationAlan Dunn2014-07-261-2/+5
| | | | | Signed-off-by: Alan Dunn <amdunn@gmail.com> Signed-off-by: Roger Meier <roger@apache.org>
* Expose OpenSSL initialization functionsAlan Dunn2014-07-261-80/+81
| | | | | | | | | Otherwise, commit is a logical no-op; it keeps the same OpenSSL initialization behavior as before. Move the SSL initialization functionality to one place to make it easier to track. Signed-off-by: Alan Dunn <amdunn@gmail.com> Signed-off-by: Roger Meier <roger@apache.org>
* THRIFT-2489 Peer host name not provied when performing AccessManager common ↵Roger Meier2014-07-261-1/+1
| | | | | | | | | | | name verification. This closes #102 commit fd2afa58bff579c2a03281a34afda990e2f499e3 Author: Chris Stylianou <chris5287@gmail.com> Date: 2014-04-21T14:06:20Z THRIFT-2489 Pull Request Peer host name not provied when performing AccessManager common name verification.
* THRIFT-2258:Add TLS v1.1/1.2 support to TSSLSocket.cppjfarrell2014-03-311-4/+35
| | | | | | | Client: cpp Patch: Chris Stylianou Enables TSSLSocketFactory to set the required protocol.
* Revert "THRIFT-2258 cpp: Add TLS v1.1/1.2 support to TSSLSocket.cpp"jfarrell2014-02-211-35/+4
| | | | This reverts commit 01386c95a8f18d55cefc0ad0f33a1154e095f51a.
* THRIFT-2258 cpp: Add TLS v1.1/1.2 support to TSSLSocket.cppRoger Meier2014-02-191-4/+35
| | | | Patch: Chris Stylianou
* THRIFT-2367 Build failure: stdlib and boost both define uint64_tRoger Meier2014-02-191-4/+3
| | | | | Fix: remove "using namespace boost;" Patch: Roger Meier
* THRIFT-2224 cpp: TSSLSocket.h and TSSLServerSocket.h should use the ↵Roger Meier2014-02-031-2/+2
| | | | | | platfromsocket too Patch: soyer
* THRIFT-2225 cpp: SSLContext destroy before cleanupOpenSSLRoger Meier2014-02-021-0/+1
| | | | Patch: soyer
* THRIFT-2039 config.h --> thrift-config.hKonrad Grochowski2013-06-221-3/+2
| | | | Signed-off-by: Roger Meier <roger@apache.org>