]> jfr.im git - irc/znc/Csocket.git/log
irc/znc/Csocket.git
16 months agoUse C++11 steady clock for timers master origin/HEAD origin/master
Alexey Sokolov [Sat, 7 Jan 2023 17:50:05 +0000 (17:50 +0000)] 
Use C++11 steady clock for timers

To prevent possible issues with DST and leap seconds

16 months agoMerge commit 'refs/pull/77/head' of https://github.com/jimloco/Csocket into HEAD
Alexey Sokolov [Sat, 7 Jan 2023 17:26:38 +0000 (17:26 +0000)] 
Merge commit 'refs/pull/77/head' of https://github.com/jimloco/Csocket into HEAD

16 months agoMerge commit 'refs/pull/78/head' of https://github.com/jimloco/Csocket into HEAD
Alexey Sokolov [Sat, 7 Jan 2023 17:24:25 +0000 (17:24 +0000)] 
Merge commit 'refs/pull/78/head' of https://github.com/jimloco/Csocket into HEAD

2 years agoLibreSSL 3.5 opaqued structures
Charlie Li [Mon, 14 Mar 2022 21:36:36 +0000 (17:36 -0400)] 
LibreSSL 3.5 opaqued structures

3 years agoEnable use of Linux's abstract namespace for UDS.
Michael Mestnik [Fri, 21 Aug 2020 18:06:02 +0000 (13:06 -0500)] 
Enable use of Linux's abstract namespace for UDS.

5 years agoFix compilation without deprecated APIs in OpenSSL
Rosen Penev [Thu, 8 Nov 2018 18:59:30 +0000 (10:59 -0800)] 
Fix compilation without deprecated APIs in OpenSSL

6 years agoMerge pull request #73 from psychon/add_missing_ifdef
Jim Hull [Thu, 4 Jan 2018 20:52:10 +0000 (12:52 -0800)] 
Merge pull request #73 from psychon/add_missing_ifdef

Add a missing ifdef

6 years agoAdd a missing ifdef
Uli Schlachter [Thu, 4 Jan 2018 20:48:32 +0000 (21:48 +0100)] 
Add a missing ifdef

Thanks to @conradev for reporting this in
https://github.com/jimloco/Csocket/pull/71#issuecomment-353988037.

Signed-off-by: Uli Schlachter <redacted>
6 years agoMerge pull request #72 from DarthGandalf/unicode
Jim Hull [Fri, 22 Dec 2017 13:07:43 +0000 (05:07 -0800)] 
Merge pull request #72 from DarthGandalf/unicode

Add include ustring.h

6 years agoAdd include ustring.h
Alexey Sokolov [Fri, 22 Dec 2017 10:08:50 +0000 (10:08 +0000)] 
Add include ustring.h

which was missing from #71

6 years agoMerge pull request #71 from psychon/encoding
Jim Hull [Fri, 8 Dec 2017 13:02:22 +0000 (05:02 -0800)] 
Merge pull request #71 from psychon/encoding

Some encoding-related changes

6 years agoSimplify "is this utf8?"-check
Uli Schlachter [Fri, 8 Dec 2017 12:33:16 +0000 (13:33 +0100)] 
Simplify "is this utf8?"-check

Currently the code tries to convert from UTF-8 to UTF-8 in strict mode
to check if a given string is valid. As suggested in [1], just checking
if a given string is valid UTF-8 can be done in a simpler way via
u_strFromUTF8, a function that converts from UTF-8 to UTF-16, but
calling it in such a way that it does not actually produce any output.

[1]: https://sourceforge.net/p/icu/mailman/message/32802299/
Signed-off-by: Uli Schlachter <redacted>
6 years agoMake sockets inherit encoding from their parent socket
Uli Schlachter [Fri, 8 Dec 2017 12:15:11 +0000 (13:15 +0100)] 
Make sockets inherit encoding from their parent socket

Doing SetEncoding() on a listener is kind of pointless since no data is
transferred. This commit changes the code so that this encoding is
inherited by sockets accepted by the listener.

Signed-off-by: Uli Schlachter <redacted>
6 years agoMerge pull request #70 from KiNgMaR/win32-updates-2017-04
Jim Hull [Tue, 11 Jul 2017 21:58:58 +0000 (14:58 -0700)] 
Merge pull request #70 from KiNgMaR/win32-updates-2017-04

Woops, got busy and forgot about this. Sorry!

6 years agowin32: fix another failure if _WIN32_WINNT >= XPSP2
Ingmar Runge [Tue, 11 Jul 2017 14:39:40 +0000 (16:39 +0200)] 
win32: fix another failure if _WIN32_WINNT >= XPSP2

7 years agowin32: use own gettimeofday only in MSVC
Ingmar Runge [Wed, 5 Apr 2017 17:19:11 +0000 (19:19 +0200)] 
win32: use own gettimeofday only in MSVC

7 years agowin32: use safe strerror_s
Ingmar Runge [Wed, 5 Apr 2017 08:31:39 +0000 (10:31 +0200)] 
win32: use safe strerror_s

7 years agowin32: add inline implementation of gettimeofday
Ingmar Runge [Wed, 5 Apr 2017 08:23:28 +0000 (10:23 +0200)] 
win32: add inline implementation of gettimeofday

7 years agowin32: use non-deprecated API
Ingmar Runge [Wed, 5 Apr 2017 08:03:15 +0000 (10:03 +0200)] 
win32: use non-deprecated API

7 years agowin32: chat server example: fix library init
Ingmar Runge [Wed, 5 Apr 2017 07:55:09 +0000 (09:55 +0200)] 
win32: chat server example: fix library init

7 years agowin32: enable IPv6 in samples + fix std::min/max
Ingmar Runge [Wed, 5 Apr 2017 07:52:56 +0000 (09:52 +0200)] 
win32: enable IPv6 in samples + fix std::min/max

7 years agowin32: fix some header file includes
Ingmar Runge [Wed, 5 Apr 2017 07:41:04 +0000 (09:41 +0200)] 
win32: fix some header file includes

7 years agoMerge pull request #69 from psychon/unix-sockets
Jim Hull [Wed, 8 Feb 2017 17:15:40 +0000 (09:15 -0800)] 
Merge pull request #69 from psychon/unix-sockets

Add basic support for UNIX sockets

7 years agoAdd basic support for UNIX sockets
Uli Schlachter [Wed, 8 Feb 2017 16:11:24 +0000 (17:11 +0100)] 
Add basic support for UNIX sockets

This adds some basic support for listening on and connecting to UNIX
sockets. Since a lot of code assumes, for example, that an IP address
and a port number is present, this socket will behave weirdly in various
situations, for example when listing all sockets and their remote
address. However, transferring data does work.

This also adds a simple test program to demonstrate this new support.
This program is an echo server and client in one process. It listens on
a UNIX socket, connects to it and sends the string "Hello World!" back
and forth. When run, the output is:

    Incoming connection from localhost on port 0
    Echoing: Hello World!
    Client disconnected

We can already see in this output that the remote address is not
identified correctly.

Since this program leaves the socket behind (does not delete the
socket), running the sample program again results in:

    Listener error: Address already in use
    Failed to listen on 'echo'!

Addresses: https://github.com/jimloco/Csocket/issues/68
Signed-off-by: Uli Schlachter <redacted>
7 years agoMerge pull request #67 from psychon/master
Long Lam [Fri, 13 Jan 2017 00:18:08 +0000 (16:18 -0800)] 
Merge pull request #67 from psychon/master

Fix build without SSL

7 years agoFix build without SSL
Uli Schlachter [Thu, 12 Jan 2017 09:22:38 +0000 (10:22 +0100)] 
Fix build without SSL

Signed-off-by: Uli Schlachter <redacted>
7 years agoUpdate GetSSLCTX to a static
Long Lam [Wed, 9 Nov 2016 00:02:37 +0000 (16:02 -0800)] 
Update GetSSLCTX to a static

7 years agoAdd files via upload
Long Lam [Tue, 8 Nov 2016 23:41:03 +0000 (15:41 -0800)] 
Add files via upload

Refactor similar setup configurations and simplify some macros.

7 years agofix examples to compile with openssl 1.1
Jim Hull [Tue, 8 Nov 2016 19:27:09 +0000 (11:27 -0800)] 
fix examples to compile with openssl 1.1

7 years agoMerge pull request #64 from welwood08/openssl-1.1
Long Lam [Tue, 8 Nov 2016 18:58:01 +0000 (10:58 -0800)] 
Merge pull request #64 from welwood08/openssl-1.1

OpenSSL 1.1 compatibility

7 years agoMerge pull request #60 from majuscule/fix-chatserver-argument-parsing
Jim Hull [Sun, 11 Sep 2016 17:20:56 +0000 (10:20 -0700)] 
Merge pull request #60 from majuscule/fix-chatserver-argument-parsing

ChatServer --pem-file option requires an argument

7 years agoMerge branch 'master' into openssl-1.1
William Elwood [Sat, 3 Sep 2016 20:02:28 +0000 (21:02 +0100)] 
Merge branch 'master' into openssl-1.1

7 years agoFix use of features deprecated in OpenSSL 1.1
William Elwood [Sat, 3 Sep 2016 19:44:28 +0000 (20:44 +0100)] 
Fix use of features deprecated in OpenSSL 1.1

If OpenSSL 1.1 is configured in such a way that features deprecated in 1.1.0 are not built, then compile errors would result here.

If I'm reading the previous algorithm correctly then this changes the meaning of `m_iMethod` in `SSLClientSetup` and `SetupServerCTX`:
- By default, it uses the version-flexible SSLv23_*_method/TLS_*_method and trusts the SSL library to do the right thing. [unchanged]
- For non-default `m_iMethod` where the SSL library supports that version, then it uses that version only. [unchanged]
- For non-default `m_iMethod` where the SSL library does not support that version, now it always uses the version-flexible SSLv23_*_method/TLS_*_method and trusts the SSL library to do the right thing. [changed?]

It also looks like there's a minor bug in the old algorithm in `SetupServerCTX` where asking for TLS1 with an SSL library not supporting TLS1.1 would bypass the TLS1 case and fall through to the default case (`case TLS1:` is inside the TLS1_1_VERSION guard).

7 years agoFix use of a feature deprecated in OpenSSL 1.0
William Elwood [Sat, 3 Sep 2016 18:27:45 +0000 (19:27 +0100)] 
Fix use of a feature deprecated in OpenSSL 1.0

If OpenSSL 1.1 is configured in such a way that features deprecated in 1.0.0 are not built, then compile errors would result here.
If it is also configured in such a way that features deprecated in 1.1.0 are not built, then compile errors would result from the replacement API (which was of course deprecated in 1.1).

7 years agoOpenSSL 1.1 makes `RSA` and `DSA` opaque, fix GetPeerPubKey.
William Elwood [Sat, 3 Sep 2016 18:24:17 +0000 (19:24 +0100)] 
OpenSSL 1.1 makes `RSA` and `DSA` opaque, fix GetPeerPubKey.

7 years agoOpenSSL 1.1 makes `EVP_PKEY` opaque, fix GetPeerPubKey.
William Elwood [Sat, 3 Sep 2016 18:15:01 +0000 (19:15 +0100)] 
OpenSSL 1.1 makes `EVP_PKEY` opaque, fix GetPeerPubKey.

7 years agoOpenSSL 1.1 makes `SSL_SESSION` opaque, fix GetPeerPubKey.
William Elwood [Sat, 3 Sep 2016 17:56:34 +0000 (18:56 +0100)] 
OpenSSL 1.1 makes `SSL_SESSION` opaque, fix GetPeerPubKey.

7 years agoOpenSSL 1.1 makes `X509` opaque, fix GetPeerFingerprint.
William Elwood [Sat, 3 Sep 2016 17:25:29 +0000 (18:25 +0100)] 
OpenSSL 1.1 makes `X509` opaque, fix GetPeerFingerprint.

7 years agoOpenSSL 1.1 removes SSL2 but doesn't define `OPENSSL_NO_SSL2` by default.
William Elwood [Sat, 3 Sep 2016 17:23:16 +0000 (18:23 +0100)] 
OpenSSL 1.1 removes SSL2 but doesn't define `OPENSSL_NO_SSL2` by default.

...But does define it if configured with `no-ssl2`.

7 years agoAdd some #ifdef feature checks to fix compilation with BoringSSL
Edoardo Spadolini [Mon, 8 Feb 2016 13:01:51 +0000 (14:01 +0100)] 
Add some #ifdef feature checks to fix compilation with BoringSSL

8 years agoconfigure client SNI if hostname is not empty
Jim Hull [Thu, 31 Mar 2016 00:13:55 +0000 (17:13 -0700)] 
configure client SNI if hostname is not empty

8 years agoMerge pull request #63 from kerio92/fixboringssl
lll2086 [Mon, 8 Feb 2016 20:13:41 +0000 (12:13 -0800)] 
Merge pull request #63 from kerio92/fixboringssl

Add some #ifdef feature checks to fix compilation with BoringSSL

8 years agoAdd some #ifdef feature checks to fix compilation with BoringSSL
Edoardo Spadolini [Mon, 8 Feb 2016 13:01:51 +0000 (14:01 +0100)] 
Add some #ifdef feature checks to fix compilation with BoringSSL

8 years agoMerge pull request #62 from DarthGandalf/znc-1.6.x
Jim Hull [Mon, 8 Feb 2016 14:35:03 +0000 (06:35 -0800)] 
Merge pull request #62 from DarthGandalf/znc-1.6.x

Cherry-pick: Fix build with LibreSSL

8 years agoFix build with LibreSSL
Bernard Spil [Sat, 7 Mar 2015 13:55:51 +0000 (14:55 +0100)] 
Fix build with LibreSSL

LibreSSL does not include openssl/comp.h from openssl/ssl.h making build of Csocket fail. this patch fixes this error.
(cherry picked from commit 5494c125599fbe02e6d7839d1a8ebeffe3e77907)

8 years agoMerge pull request #61 from DarthGandalf/getter
Jim Hull [Sat, 9 Jan 2016 17:54:35 +0000 (09:54 -0800)] 
Merge pull request #61 from DarthGandalf/getter

Add GetEncoding()

8 years agoAdd GetEncoding()
Alexey Sokolov [Sat, 9 Jan 2016 17:52:10 +0000 (17:52 +0000)] 
Add GetEncoding()

8 years agoChatServer --pem-file option requires an argument
Dylan Lloyd [Sat, 28 Nov 2015 17:53:15 +0000 (09:53 -0800)] 
ChatServer --pem-file option requires an argument

switched to longform option struct syntax to avoid future errors

8 years agoMerge pull request #58 from nospampleasemam/support-separate-sslkeyfile
Jim Hull [Tue, 24 Nov 2015 19:32:01 +0000 (11:32 -0800)] 
Merge pull request #58 from nospampleasemam/support-separate-sslkeyfile

backwards compatible support for separate ssl keys and certs

8 years agobackwards compatible support for separate SSLDHParamFile configuration
Dylan Lloyd [Tue, 24 Nov 2015 16:38:32 +0000 (08:38 -0800)] 
backwards compatible support for separate SSLDHParamFile configuration

8 years agobackwards compatible support for separate SSLKeyFile configuration
Dylan Lloyd [Tue, 24 Nov 2015 04:35:06 +0000 (20:35 -0800)] 
backwards compatible support for separate SSLKeyFile configuration

8 years agoMerge pull request #57 from DarthGandalf/ssl
Jim Hull [Mon, 2 Nov 2015 00:02:18 +0000 (16:02 -0800)] 
Merge pull request #57 from DarthGandalf/ssl

Cherry-pick sslv3 fix to an older commit

8 years agoFix build when OpenSSL is built without SSLv3
Bernard Spil [Fri, 9 Oct 2015 07:04:43 +0000 (09:04 +0200)] 
Fix build when OpenSSL is built without SSLv3

If OpenSSL is built without SSLv3 support (configure --no-ssl3), this will fail to build. Patch fixes that. Please see https://github.com/pcbsd/freebsd-ports/blob/master/irc/znc/files/patch-src_Csocket.cpp as well. This is intended to be applied to the FreeBSD ports tree as well.

As a side note: You may wish to refactor the code to only use SSLv23_ methods and set SSL_OP_NO_* using SSL_CTX_set_options. This seems to be the canonical way to be able to negotiate any SSL/TLS version. In addition, OpenSSL 1.1 will be marking SSLv23_ methods as deprecated and replace them with TLS_ methods.
(cherry picked from commit 4dda6ada04fe334cf4a337d9138cc48fc346a992)

8 years agoMerge pull request #56 from Sp1l/master
Jim Hull [Fri, 9 Oct 2015 13:41:35 +0000 (06:41 -0700)] 
Merge pull request #56 from Sp1l/master

Fix build when OpenSSL is built without SSLv3

8 years agoFix build when OpenSSL is built without SSLv3
Bernard Spil [Fri, 9 Oct 2015 07:04:43 +0000 (09:04 +0200)] 
Fix build when OpenSSL is built without SSLv3

If OpenSSL is built without SSLv3 support (configure --no-ssl3), this will fail to build. Patch fixes that. Please see https://github.com/pcbsd/freebsd-ports/blob/master/irc/znc/files/patch-src_Csocket.cpp as well. This is intended to be applied to the FreeBSD ports tree as well.

As a side note: You may wish to refactor the code to only use SSLv23_ methods and set SSL_OP_NO_* using SSL_CTX_set_options. This seems to be the canonical way to be able to negotiate any SSL/TLS version. In addition, OpenSSL 1.1 will be marking SSLv23_ methods as deprecated and replace them with TLS_ methods.

8 years agoMerge pull request #54 from DarthGandalf/master
Jim Hull [Thu, 13 Aug 2015 23:27:42 +0000 (16:27 -0700)] 
Merge pull request #54 from DarthGandalf/master

Fix build on ancient openssl.

8 years agoMerge branch 'fix'
Alexey Sokolov [Thu, 13 Aug 2015 21:54:02 +0000 (22:54 +0100)] 
Merge branch 'fix'

8 years agoFix build on ancient openssl.
Alexey Sokolov [Thu, 13 Aug 2015 20:46:08 +0000 (21:46 +0100)] 
Fix build on ancient openssl.

Usage of SNI callback was protected already, but not its definition.

9 years agoMerge pull request #53 from DarthGandalf/master
Jim Hull [Sun, 3 May 2015 22:15:26 +0000 (15:15 -0700)] 
Merge pull request #53 from DarthGandalf/master

Various build fixes.

9 years agoFix build on latest versions of cygwin.
Alexey Sokolov [Sun, 3 May 2015 21:17:44 +0000 (22:17 +0100)] 
Fix build on latest versions of cygwin.

9 years agoFix build. I need to test my changes better.
Alexey Sokolov [Sun, 3 May 2015 21:14:39 +0000 (22:14 +0100)] 
Fix build. I need to test my changes better.

9 years agoMerge pull request #52 from DarthGandalf/icu
Jim Hull [Sat, 25 Apr 2015 22:11:24 +0000 (15:11 -0700)] 
Merge pull request #52 from DarthGandalf/icu

Switch to C API of libicu.

9 years agoSwitch to C API of libicu.
Alexey Sokolov [Sat, 25 Apr 2015 17:49:56 +0000 (18:49 +0100)] 
Switch to C API of libicu.

C++ API is not binary compatible between different versions of GCC :(

9 years agoMerge pull request #49 from Sp1l/master
Jim Hull [Tue, 7 Apr 2015 19:05:52 +0000 (12:05 -0700)] 
Merge pull request #49 from Sp1l/master

Fix build with LibreSSL

9 years agoMerge pull request #50 from jpnurmi/cstring
Jim Hull [Tue, 7 Apr 2015 19:05:31 +0000 (12:05 -0700)] 
Merge pull request #50 from jpnurmi/cstring

Do not hardcode CString, use CS_STRING instead

9 years agoMerge pull request #51 from DarthGandalf/master
Jim Hull [Tue, 7 Apr 2015 16:53:05 +0000 (09:53 -0700)] 
Merge pull request #51 from DarthGandalf/master

Fix compilation on Solaris 10

9 years agoFix compilation on Solaris 10
Alexey Sokolov [Sun, 5 Apr 2015 14:28:45 +0000 (15:28 +0100)] 
Fix compilation on Solaris 10

Reported by sigmund

9 years agoMerge pull request #46 from Alef-Burzmali/master+sslgetter
Jim Hull [Fri, 3 Apr 2015 23:43:27 +0000 (16:43 -0700)] 
Merge pull request #46 from Alef-Burzmali/master+sslgetter

Add a getter for the ssl object.

9 years agoDo not hardcode CString, use CS_STRING instead
J-P Nurmi [Mon, 16 Mar 2015 19:11:37 +0000 (20:11 +0100)] 
Do not hardcode CString, use CS_STRING instead

9 years agoFix build with LibreSSL
Bernard Spil [Sat, 7 Mar 2015 13:55:51 +0000 (14:55 +0100)] 
Fix build with LibreSSL

LibreSSL does not include openssl/comp.h from openssl/ssl.h making build of Csocket fail. this patch fixes this error.

9 years agoAdd a getter or the ssl object.
Thomas Fargeix [Wed, 11 Feb 2015 18:09:10 +0000 (19:09 +0100)] 
Add a getter or the ssl object.

9 years agoFix build on OS X Yosemite
Alexey Sokolov [Tue, 6 Jan 2015 08:07:58 +0000 (08:07 +0000)] 
Fix build on OS X Yosemite

znc/znc#652

9 years agoMake following the server-preferred order for TLS ciphers optional
Edoardo Spadolini [Fri, 2 Jan 2015 22:11:59 +0000 (23:11 +0100)] 
Make following the server-preferred order for TLS ciphers optional

9 years agoSelect the TLS ciphers in server-preferred order
Edoardo Spadolini [Fri, 2 Jan 2015 21:26:06 +0000 (22:26 +0100)] 
Select the TLS ciphers in server-preferred order

9 years agoECDH is optional
Jim Hull [Fri, 2 Jan 2015 17:34:54 +0000 (09:34 -0800)] 
ECDH is optional

9 years ago Change namespace for <fcntl.h>
James Taylor [Fri, 26 Dec 2014 10:25:16 +0000 (10:25 +0000)] 
 Change namespace for <fcntl.h>

* Fixes warnings under musl-libc.
* <fcntl.h> should be universal in the Unix world, it's more likely a system doesn't have <sys/fcntl.h> than if it doesn't have <fcntl.h> (and has <sys/fcntl.h>.)

9 years agoFix one more recently introduced SSL crash
Alexey Sokolov [Mon, 22 Dec 2014 12:51:53 +0000 (12:51 +0000)] 
Fix one more recently introduced SSL crash

9 years agoExpose encoding conversion error callbacks to subclasses
Alexey Sokolov [Sat, 20 Dec 2014 08:33:23 +0000 (08:33 +0000)] 
Expose encoding conversion error callbacks to subclasses

9 years agoAdd encoding mode which reads UTF-8 and something else, but sends UTF-8
Alexey Sokolov [Thu, 18 Dec 2014 22:13:30 +0000 (22:13 +0000)] 
Add encoding mode which reads UTF-8 and something else, but sends UTF-8

9 years agoCheck if __GLIBC__ is defined
James Taylor [Wed, 17 Dec 2014 11:41:43 +0000 (11:41 +0000)] 
Check if __GLIBC__ is defined

9 years agoDon't crash on SSL renegotiation if Csock object was swapped with another one
Alexey Sokolov [Sun, 14 Dec 2014 14:34:24 +0000 (14:34 +0000)] 
Don't crash on SSL renegotiation if Csock object was swapped with another one

9 years agoTest that SSL_OP_NO_COMPRESSION is defined
J-P Nurmi [Wed, 10 Dec 2014 08:59:58 +0000 (09:59 +0100)] 
Test that SSL_OP_NO_COMPRESSION is defined

https://github.com/znc/znc/issues/765

9 years agoHonor cipher settings for SSL client
Alexey Sokolov [Wed, 26 Nov 2014 21:25:29 +0000 (21:25 +0000)] 
Honor cipher settings for SSL client

9 years agoFix IsConnected() to return false when Disconnected() gets called
J-P Nurmi [Wed, 12 Nov 2014 19:09:29 +0000 (20:09 +0100)] 
Fix IsConnected() to return false when Disconnected() gets called

9 years agoExtend EDisableProtocol
J-P Nurmi [Thu, 6 Nov 2014 09:50:20 +0000 (10:50 +0100)] 
Extend EDisableProtocol

9 years agomissing ifdef for non-ssl
Jim Hull [Wed, 5 Nov 2014 14:29:17 +0000 (06:29 -0800)] 
missing ifdef for non-ssl

9 years agoadded ability to disable compression
Jim Hull [Thu, 30 Oct 2014 01:27:08 +0000 (18:27 -0700)] 
added ability to disable compression

9 years agoadded new callbacks for Certificate Verification and Handshake completion
Jim Hull [Mon, 27 Oct 2014 18:43:35 +0000 (11:43 -0700)] 
added new callbacks for Certificate Verification and Handshake completion

9 years agoadded SNI support for client and server, cleanup some of the certificate verification...
Jim Hull [Mon, 27 Oct 2014 05:54:53 +0000 (22:54 -0700)] 
added SNI support for client and server, cleanup some of the certificate verification callback code

9 years agoadd openssl's fix for POODLE bug in server mode. Give Csocket consumers the ability...
Jim Hull [Sat, 25 Oct 2014 21:28:42 +0000 (14:28 -0700)] 
add openssl's fix for POODLE bug in server mode. Give Csocket consumers the ability to disable less desirable protocols

9 years agoprefer tab spacing, tabstop=4 in vim
Jim Hull [Sat, 4 Oct 2014 18:53:55 +0000 (11:53 -0700)] 
prefer tab spacing, tabstop=4 in vim

9 years agoSupport ECDHE exchange if available in OpenSSL
Sam Lade [Sat, 4 Oct 2014 18:33:24 +0000 (19:33 +0100)] 
Support ECDHE exchange if available in OpenSSL

9 years agoFix const correctness
J-P Nurmi [Wed, 1 Oct 2014 16:37:25 +0000 (18:37 +0200)] 
Fix const correctness

NOTE: the signature of the following virtual methods has changed:
- GetPending()
- ConvertAddress()

9 years agoRemove unused variable
J-P Nurmi [Sat, 6 Sep 2014 11:04:22 +0000 (13:04 +0200)] 
Remove unused variable

The variable hasn't been used since 2a4f9b7. Throws a warning when
building ZNC:

Csocket.h:1115:34: warning:
private field 'm_bBLOCK' is not used [-Wunused-private-field]

9 years agoAllow specifying an export macro
J-P Nurmi [Sat, 30 Aug 2014 20:37:23 +0000 (22:37 +0200)] 
Allow specifying an export macro

9 years agoMerge branch 'namespace' of https://github.com/DarthGandalf/Csocket
Jim Hull [Mon, 11 Aug 2014 22:33:11 +0000 (15:33 -0700)] 
Merge branch 'namespace' of https://github.com/DarthGandalf/Csocket

9 years agoRemove "using namespace std"
Alexey Sokolov [Mon, 11 Aug 2014 22:15:06 +0000 (23:15 +0100)] 
Remove "using namespace std"

9 years agoremove old comments giving the illusion Csock can be used independant of CSocketManager
Jim Hull [Thu, 10 Jul 2014 21:18:20 +0000 (14:18 -0700)] 
remove old comments giving the illusion Csock can be used independant of CSocketManager

9 years agoFix leftover if()
Ingmar Runge [Tue, 17 Jun 2014 22:05:31 +0000 (00:05 +0200)] 
Fix leftover if()

9 years agoAdd Reset() CCron API
Alexander Færøy [Fri, 30 May 2014 11:10:19 +0000 (13:10 +0200)] 
Add Reset() CCron API