Bruno Silvestre
706e0f0281
New version of LibreSSL already implement these functions
2018-09-12 17:41:03 -03:00
Bruno Silvestre
d4ea2d12f3
Update reference to Lua state prior to handshake
...
The Lua thread that creates the context is saved to be used for
accessing callback related data. However that thread may become garbage
and its memory could be overwritten with anything if the handshake
happens later, in a different thread.
Fixes #75
Thanks @Zash
2018-09-10 10:49:18 -03:00
Bruno Silvestre
dea60edf4f
Add ALPN support based on PR #64 from xnyhps
2018-08-27 15:10:18 -03:00
Bruno Silvestre
fdb2fa5f59
Let the library choose the min and max versions
...
Some protocols can be disable with 'options'.
2018-07-26 11:25:57 -03:00
Bruno Silvestre
93e0e8cc64
Force a cipher that use DH parameter
2018-07-26 11:22:24 -03:00
Bruno Silvestre
d9d0cd620d
Free DH parameter right after handshake
2018-07-26 11:21:54 -03:00
Bruno Silvestre
953a363a59
Add timeout to https module
...
Glocal attribute https.TIMEOUT controls connection tiemout.
Sample:
https.TIMEOUT = 5 -- seconds
https.request()
2018-07-02 10:40:14 -03:00
Bruno Silvestre
28e247dbc5
Removing deprecated methods to select the protocol
...
Using TLS_method(), SSL_set_min_proto_version() and
SSL_set_max_proto_version().
2018-07-02 10:31:45 -03:00
Bruno Silvestre
89bdc6148c
Removing SSLv3 support
2018-06-29 14:06:51 -03:00
Bruno Silvestre
8212b89f1a
Using 'const SSL_METHOD*'
...
This change was introduced in OpenSSL 1.0.0.
Start droping 0.9.8 code.
2018-06-29 14:02:39 -03:00
Bruno Silvestre
879ba6d4f9
Merge pull request #116 from hishamhm/cross-windows
...
Use lowercase Windows header name
2018-06-29 13:49:01 -03:00
Hisham Muhammad
4d10a5a0c0
Use lowercase Windows header name
...
This is necessary for cross-compilation of Windows binaries on non-Windows
platforms (and harmless for Windows).
2018-06-29 10:21:22 -03:00
Bruno Silvestre
de63f21f63
Change version number to 0.7
2018-06-27 10:36:26 -03:00
Bruno Silvestre
fbbaa866c3
Missing defines in rockspec
2017-12-21 12:33:47 -02:00
Bruno Silvestre
bd87aafaaf
Using https instead of git protocol
2017-10-28 10:44:51 -02:00
Bruno Silvestre
be3c6d67e0
Make luaL_testudata() compat function visible for all files
2017-10-28 09:53:28 -02:00
Bruno Silvestre
2f562e1399
Put an error check back
2017-10-28 09:31:40 -02:00
Bruno Silvestre
7934e58b4b
Merge pull request #99 from daurnimator/luaossl-integration
...
Allow passing a luaossl context for socket creation/wrapping
2017-10-28 09:23:07 -02:00
Bruno Silvestre
3a8d6e71c4
Removing some VC files
2017-10-11 20:42:54 -03:00
Bruno Silvestre
3d170e9f9d
Add new source files to VC project, new libs name
2017-10-11 20:29:15 -03:00
Bruno Silvestre
ea6a65de84
Rockspec for LuaSec 0.7alpha
2017-09-26 18:24:16 -03:00
Bruno Silvestre
0d01b53461
Version number to 0.7alpha
2017-09-26 18:22:49 -03:00
Bruno Silvestre
8762441cd2
Add popular aliases for commonly used curves
2017-09-26 17:43:00 -03:00
Bruno Silvestre
60f02f7701
LuaJIT 2.1.0 added luaL_newlib() as extension
2017-09-26 17:39:32 -03:00
Bruno Silvestre
fe1fb0b350
Adding 'curveslist' parameter
...
LuaSec will try to set 'curveslist' parameter first.
If the parameter is not present or not supported, LuaSec will
try 'curve' parameter.
2017-08-04 17:00:12 -03:00
Bruno Silvestre
db42a5084a
Export configuration (protocols, options, curves, algorithms, capabilities)
2017-06-16 22:53:59 -03:00
Bruno Silvestre
0b99832ec7
Export configuration (protocols, options, curves, algorithms, capabilities)
2017-06-16 22:50:27 -03:00
Bruno Silvestre
fc757e1fd0
Discover curves dynamically
2017-06-16 21:03:10 -03:00
daurnimator
64f11f515d
Add example of luaossl integration
...
Based on 'info' sample
2017-04-04 13:07:48 +10:00
daurnimator
e90a264c93
Allow passing luaossl objects to meth_create()
2017-04-04 13:06:12 +10:00
Bruno Silvestre
5299803bef
Merge pull request #77 from kekstee/master
...
Make CC and LD configurable
2017-03-31 15:11:17 -03:00
Bruno Silvestre
9c41eaf09a
Merge pull request #74 from ka7/spelling
...
spelling fixes, as seen on lintian.debian.org
2017-03-31 14:50:19 -03:00
Bruno Silvestre
31b7a4744b
Merge pull request #63 from gleydsonsoares/tweak-OPENSSL_NO_COMP
...
simplify OPENSSL_NO_COMP guard
2017-03-31 14:48:19 -03:00
Bruno Silvestre
d9e7c5d466
Merge pull request #92 from robert-scheck/utf8
...
Convert CHANGELOG from ISO-8859-1 to UTF-8
2017-03-31 14:46:22 -03:00
Bruno Silvestre
6b82fa6104
LuaRocks workaround
2017-03-31 14:40:09 -03:00
Bruno Silvestre
9f6d623ccb
proper socket invalidation #70
2017-03-31 14:32:35 -03:00
Bruno Silvestre
67a2133e7d
Merge pull request #47 from wmark/curve-negotiation
...
Add TLS curve negotiation. (closes #42 )
2017-03-31 14:14:54 -03:00
W-Mark Kubacki
622ef3d6a6
Enable curve negotiation with #ifdef SSL_CTX_set1_curves_list
...
One of currently three definitions in the wild that indicate support for
SSL_CTX_set1_curves_list().
2017-02-26 00:16:25 +01:00
Mark Kubacki
231563682a
Add support for the new curve selection API.
...
Signed-off-by: W-Mark Kubacki <wmark@hurrikane.de>
2017-02-26 00:16:24 +01:00
Robert Scheck
3ec117667d
Convert CHANGELOG from ISO-8859-1 to UTF-8
2017-02-18 13:26:40 +01:00
Bruno Silvestre
98f8872743
Merge pull request #89 from greatwolf/sni_host
...
Fix for sni host issue #88 and #44 . Thanks to @TomasB
2016-12-22 16:21:40 -02:00
Greatwolf
77b88e0b0d
Fix for sni host issue #88 and #44 . Thanks to @TomasB
2016-12-15 16:46:59 -08:00
Bruno Silvestre
4889830d53
Compatibility with OpenSSL 1.1.0
...
Defining macros X509_up_ref() and SSL_is_server to use the same
API of OpenSSL 1.1.0.
2016-09-14 17:47:09 -03:00
Bruno Silvestre
80a527d630
Use EVP_PKEY_base_id() to recover the key's type
2016-09-13 13:30:44 -03:00
Bruno Silvestre
53db804b9d
Use X509_EXTENSION_get_object() to get the 'object' field from extension
2016-09-13 13:22:25 -03:00
Bruno Silvestre
22e6652d88
ASN1_STRING_data() is deprecated in OpenSSL 1.1.0
...
ASN1_STRING_get0_data() must be used instead.
2016-09-13 13:09:18 -03:00
Alexander Scheuermann
6bb007b75f
Make CC and LD configurable
2016-08-13 23:24:11 +02:00
Bruno Silvestre
3cfdb878dd
Merge pull request #76 from msva/patch-1
...
Return of DESTDIR support
2016-08-03 15:10:06 -03:00
Bruno Silvestre
4101af103e
Return the number of data read and remove a useless line.
2016-08-03 14:56:07 -03:00
Bruno Silvestre
9efa963e35
Merge pull request #73 from perry-clarke/master
...
Fix crash after dohandshake() fails (need some adjusts yet)
2016-08-03 14:53:53 -03:00