Commit graph

83 commits

Author SHA1 Message Date
Florian Zeitz
5e38932ed3 Add missing autorelease call 2011-10-24 02:04:22 +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
6ed58f5e6e Add support for fetching some SAN types from X509 certificates
Note: valgrind complains about uninitialized data when UTF8Strings are passed to
ASN1_STRING_to_UTF8(), however the result is fine. Accessing the same data by
other means does not yield the error, I therefore suspect it a false positive.
2011-10-08 05:44:36 +02:00
Florian Zeitz
cf45a92e0b Break out some ASN.1 to OFString conversion functionality 2011-10-08 01:56:55 +02:00
Florian Zeitz
c804feb98b Very basic X509 class 2011-10-08 01:13:14 +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
527e49fc21 Ignore deprecation warnings as OpenSSL is deprecated as a whole on OS X. 2011-09-10 22:41:45 +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
d7c5829f45 Add .hgignore. 2011-06-08 23:23:21 +02:00
a3346ec215 Add ObjOpenSSL.h so it can be properly used as a MacOS X framework. 2011-06-08 23:20:49 +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
bbce7d7ed1 Fix stupid typo in Makefile. 2011-03-29 01:59:25 +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
2323d59613 Fix a typo that only affects case-sensitive file systems. 2011-03-28 22:46:54 +02:00
89edd05180 Add Xcode project. 2011-03-28 22:41:36 +02:00
5d0b05aac0 Move sources to src and add install and clean targets to Makefile. 2011-03-28 22:32:48 +02:00
a4158274c3 Add -[initWithSocket:]. 2011-03-28 22:26:45 +02:00
47f4dd4fdb Initial import. 2011-03-28 22:05:36 +02:00