1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

45 Commits

Author SHA1 Message Date
Jens Mueller
36e8b497ba Merge branch upstream into axtls-upgrade 2016-05-13 23:40:49 +02:00
Ivan Grokhotkov
139914f312 Add option for blocking reads 2016-05-10 23:17:44 +08:00
Ivan Grokhotkov
69c757f2a3 Allow plain buffer size increase during handshake 2016-04-19 09:30:50 +03:00
Ivan Grokhotkov
fe4518da8d Make SNI host name an ssl_client_new argument
ssl_set_hostname was mostly useless, because it allowed setting host name of an existing SSL object. However SNI was sent as part of client_hello, which was done in ssl_client_new. So it wasn't possible to actually set host name before connection would start.
2016-04-19 08:23:15 +03:00
Ivan Grokhotkov
324c2fdade Terminate connection if increase_bm_data_size fails
As suggested in https://github.com/igrr/axtls-8266/issues/2#issuecomment-188544798
2016-02-26 17:53:19 +03:00
Ivan Grokhotkov
9eaeca3a03 Postpone freeing of X509 context to the first data exchange after handshake
X509 context contains certificate fingerprint and various names which may be used to verify the certificate.
Previously we would free it right after the handshake completion, which prevented the client from actually using any information from X509 context.
Postponing this to the first ssl_read/ssl_write call after the handshake, we give the client a chance to verify the certificate.

Also added logging to ssl_match_fingerprint function in case fingerprint doesn't match expected value.
2016-02-26 16:21:09 +03:00
Slavey Karadzhov
1154d0a985 Changed the code to reserve bytes for hostname only if needed. 2016-02-22 10:16:01 +01:00
Slavey Karadzhov
63da8991c2 Added SNI ( https://en.wikipedia.org/wiki/Server_Name_Indication ) support. 2016-02-19 16:48:58 +01:00
Ivan Grokhotkov
10b41c811a Increase plaintext buffer size after handshake is complete 2015-11-17 01:50:35 +03:00
Ivan Grokhotkov
4e0ccaf9b2 Import axTLS 1.4.9 2015-08-30 13:34:00 +03:00
cameronrich
a5f7ede493 * Fixed client certificate issue where there is no client certificate and a certificate verify msg was still being sent.
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@250 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2015-07-28 02:44:52 +00:00
cameronrich
82a7638efa * Added SHA256
* Return code checked for get_random()
* MD2 code removed.

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@238 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2014-11-19 03:51:22 +00:00
cameronrich
cd28f3caae Fixed issue with non-blocking client mode.
Added php mime type.


git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@219 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2011-09-30 09:41:05 +00:00
cameronrich
70a8f79fa6 TLSv1.1 feature added.
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@207 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2011-05-06 12:35:32 +00:00
cameronrich
2ae9a3ec83 Started to implement TLS1.1 (but disabled for now)
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@204 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2011-04-26 20:33:55 +00:00
cameronrich
2c092baa28 Name change to SSL_CONNECT_IN_PARTS as last name was ambiguous.
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@198 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2011-01-16 21:59:50 +00:00
cameronrich
529d87ba09 Added Visual Studio 2010 support and fixed some VS compilation issues.
Removed code to force blocking mode.


git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@196 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2011-01-14 23:25:33 +00:00
cameronrich
e68581f0c2 Small code factoring improvement to do_client_connect()
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@195 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2011-01-14 14:10:36 +00:00
cameronrich
f2dabd56b7 Allow non-blocked ssl_client_new() operation.
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@194 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2011-01-14 13:57:34 +00:00
cameronrich
7ddde6ec6b Some fixes after scan-build.
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@193 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2011-01-09 22:19:05 +00:00
cameronrich
0d2e75b9c7 fixed regular_square. Some scan-build tweaks. Made os_port.h "private".
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@181 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2010-12-29 11:49:30 +00:00
cameronrich
7e570e3943 Fixed 3132700 (close_notify), 3078672 (regular_square), 3072881
(process_server_hello). Using Montgomery until q_dash issue solved.


git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@180 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2010-12-27 09:40:51 +00:00
cameronrich
c69b6901fb removed redundant x509_free() in do_client_connect()
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@176 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2010-08-07 07:34:41 +00:00
cameronrich
13dee95d97 Fix for ssl client renotiation SSL error
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@166 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2009-12-12 04:11:56 +00:00
cameronrich
785380660e finishing touches to cert generation
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@144 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-12-02 08:01:12 +00:00
cameronrich
70ed44946e changed to BSD style license
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@140 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-11-05 02:28:37 +00:00
cameronrich
fa0bf09b86 some more memory tweaks
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@135 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-10-04 11:25:28 +00:00
cameronrich
6afb2ce28b made inc ms5/sha1 a tmp
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@134 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-10-03 22:10:21 +00:00
cameronrich
5094c5e81c fixed memory leak in renegotiation
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@133 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-10-03 22:00:33 +00:00
cameronrich
b717f94bd0 fixed server buffer issue
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@121 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-09-05 13:44:56 +00:00
cameronrich
114fff4077 fixed some of the bindings for the new API changes
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@120 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-08-30 02:55:46 +00:00
cameronrich
2bbf4cfd92 fixed win32 build
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@117 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-08-29 13:22:46 +00:00
cameronrich
f9ee197cff dir changes - things are broken at the moment
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@116 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-08-29 09:15:39 +00:00
cameronrich
013b3c1a7e Lua bindings now complete
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@111 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-06-17 00:59:02 +00:00
cameronrich
8438e9fd7f fixed client session size, empty certificate list
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@88 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-04-25 11:09:32 +00:00
cameronrich
55d6b77f70 tx/rx hmac records separated. fixed gnu tls issue
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@80 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-03-30 23:57:28 +00:00
cameronrich
73dfbb7568 new trunk
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@78 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-03-14 12:03:51 +00:00
cameronrich
dd470db956 resurrected this trunk branch
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@68 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-03-14 11:34:36 +00:00
cameronrich
61fd249441 added aborts to malloc and other system calls
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@62 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-02-17 00:42:57 +00:00
cameronrich
f616c74150 added versioning/fragmentation
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@56 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-02-01 08:31:32 +00:00
cameronrich
3d2f9ac3fd adjusted version checking mechanism
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@46 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2006-12-01 03:57:08 +00:00
cameronrich
d521a68821 Added my name to the copyright
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@42 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2006-11-28 02:05:07 +00:00
cameronrich
da46383ade More LGPL license changes
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@13 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2006-07-05 08:16:26 +00:00
cameronrich
f8e703ed65 Updated LGPL licenses
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@12 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2006-07-04 21:47:18 +00:00
cameronrich
fa18d60b98 Initial 1.0.0
git-svn-id: svn://svn.code.sf.net/p/axtls/code/axTLS@2 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2006-07-01 00:39:15 +00:00