Commit graph

52 commits

Author SHA1 Message Date
eed791dff1
Conform to OFTLSSocket
This also introduces automatic certificate verification and enables it
by default, as required by OFTLSSocket.

There are still TODOs until OFTLSSocket is fully implemented.
2015-05-24 21:33:09 +02:00
f5b340106d
Adjust to ObjFW changes 2015-05-07 23:29:53 +02:00
ba8365204b
Adjust to ObjFW changes 2015-03-01 20:49:50 +01:00
bffab74530 Adjust to ObjFW changes 2015-01-05 22:43:09 +01:00
5031d03707 Adjust to ObjFW changes 2014-06-03 21:33:29 +02:00
Florian Zeitz
89630e5a13 Adapt to ObjFW changes 2014-02-03 18:31:57 +01:00
bdd815ec47 Adjust to reworked exception API. 2013-06-23 13:10:33 +02:00
ecbaa8ed20 Conform to OFTLSSocket.
Still a few FIXMEs / TODOs.
2013-03-31 12:04:53 +02:00
89c705d9ed Replace BOOL with bool. 2013-03-04 18:37:09 +01:00
8eeb6a72d1 Update to recent ObjFW changes. 2013-02-22 00:41:11 +01:00
80b2cd676d Don't class-swizzle to call close on super. 2013-02-14 00:27:13 +01:00
bb240ea8aa Prefix all ivars with an underscore. 2013-02-12 18:49:20 +01:00
fa191aa0dd Update copyright. 2013-01-19 01:36:16 +01:00
380d99c7dc Make it possible to request client certificates. 2013-01-19 00:33:51 +01:00
Florian Zeitz
9ce891d19b Adjust to recent ObjFW changes. 2013-01-12 23:46:13 +01:00
20253c05c6 Adjust to recent ObjFW changes. 2012-12-19 22:59:32 +01:00
dd6076f1af Set of_tls_socket_class. 2012-12-13 21:55:31 +01:00
ce3b9a11cd Use the thread object's address as thread id.
This at least works inside OFThreads. The previous solution to use a
pthread_t was not portable, as on many systems, pthread_t is a struct.
2012-11-08 14:19:44 +01:00
34b09ca864 Adjust to latest ObjFW changes. 2012-09-20 02:14:04 +02:00
efbe329768 Indention. 2012-09-17 17:51:40 +02:00
Florian Zeitz
1ef41f4eb6 Fix uninitialized access (random error message) in certificate verification 2012-09-17 16:50:33 +02:00
Florian Zeitz
1aa89e25dd Return 0 on reads where the SSL layer needs more data to proceed 2012-09-17 16:27:16 +02:00
430bde693e Don't access isa directly. 2012-07-12 05:09:43 +02:00
edadc4878b Adjust to latest ObjFW API changes. 2012-06-10 15:34:06 +02:00
935b6558f3 Fix copyright. 2012-03-20 22:53:57 +01:00
c089411ad3 Change URL in copyright to Git repository. 2012-03-20 22:45:01 +01:00
309b16bf5d Update Xcode project. 2012-01-26 12:42:05 +01:00
8ab05e111a Fix a missing copy. 2012-01-25 20:33:40 +01:00
Florian Zeitz
38cd6bd401 Allow initializing with private key and certificate 2012-01-25 16:42:23 +01:00
Florian Zeitz
4852272bcf Rename initWithStruct: to initWithX509Struct: to avoid potential conflicts 2011-10-24 02:06:41 +02:00
Florian Zeitz
8a7c60fe1c Add methods enabling certificate verification 2011-10-24 01:39:48 +02:00
Jos Kuijpers
a4ab82d900 Register helpers for thread-safety with OpenSSL. 2011-10-22 18:36:08 +02:00
d8b6916fe9 Only call SSL_shutdown if we have an SSL context.
This would otherwise cause trouble for listening sockets.
2011-10-22 18:33:04 +02:00
af7fcc1aa4 Use -[pendingBytes] of the superclass if we have no SSL context.
This happens if we are a listening socket.
2011-10-22 17:46:02 +02:00
Florian Zeitz
58d01946d9 Fix copyright 2011-10-07 03:15:00 +02:00
250d2452dd Adjust to recent ObjFW changes. 2011-09-23 01:28:48 +02:00
0972f8ee36 Fix type conflict. 2011-09-22 15:52:17 +02:00
02fc41d7ae Adjust to recent ObjFW changes. 2011-09-19 18:37:49 +02:00
2152c84f3a Update to recent ObjFW changes. 2011-09-12 22:05:19 +02:00
59a56bca2a Correctly check return value of SSL_write. 2011-09-11 04:07:08 +02:00
0185f9bc7b Fix forgotten change. 2011-09-11 04:03:48 +02:00
Florian Zeitz
ace7324c7f Support for getting channel binding data 2011-09-09 20:01:44 +02:00
2c6ef4d969 Use certificate / key in client mode if set. 2011-06-13 18:14:19 +02:00
1137a93d7a Add copyright and license. 2011-06-08 23:24:36 +02:00
f322a37f75 Adjust to API changes in ObjFW. 2011-06-08 23:17:25 +02:00
36b485e48f Don't free the context. 2011-04-28 20:02:19 +02:00
0b7a6fdac0 Adjust to recent ObjFW changes. 2011-04-23 21:54:28 +02:00
22d29b2a53 Add the number of bytes returned by SSL_pending to -[pendingBytes]. 2011-04-03 21:53:14 +02:00
d8095cf714 Implement setting the private key and certificate. 2011-03-29 00:23:32 +02:00
6e5b389529 Have one global ctx. 2011-03-28 23:38:09 +02:00