aboutsummaryrefslogtreecommitdiffstats
path: root/src/openssl.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * windows doesn't have strings.h for strcasecmp, however it does have _stricmpLibravatarLibravatar daurnimator 2017-09-021-2/+12
| |
| * Implement a thread-safe strerror for windowsLibravatarLibravatar daurnimator 2017-09-021-4/+3
| |
| * Implement randL_stir for win32, reorder includesLibravatarLibravatar daurnimator 2017-09-021-21/+68
| |
| * Add win32 implementation of lockingLibravatarLibravatar daurnimator 2017-09-021-2/+42
| |
| * Implement dl_anchor for win32LibravatarLibravatar daurnimator 2017-09-021-1/+9
| |
| * Start of windows supportLibravatarLibravatar daurnimator 2017-09-021-31/+55
| | | | | | | | Only thing not working with this commit is inet_pton/inet_ntop
* | Remove lua 5.1 code that's taken care of by compat-5.3LibravatarLibravatar daurnimator 2017-09-031-14/+0
| |
* | Fix pkey.new failing when generating RSA keysLibravatarLibravatar daurnimator 2017-09-031-3/+5
| |
* | Don't reset metamethods when reset is 0LibravatarLibravatar daurnimator 2017-09-031-0/+3
|/ | | | | | Fixes issue where interposed methods were discarded if any more C modules were loaded Closes #104
* Fix warnings about discarding constLibravatarLibravatar daurnimator 2017-09-021-3/+3
|
* Fix warning about incorrect number of macro argumentsLibravatarLibravatar daurnimator 2017-09-021-1/+1
|
* Only use lua-compat-5.3 if running < 5.3LibravatarLibravatar daurnimator 2017-09-011-0/+2
|
* openssl >=1.1.0 doesn't need to have locking initialised, nor config ↵LibravatarLibravatar daurnimator 2017-08-311-2/+10
| | | | | | manually loaded Part of #96
* Merge remote-tracking branch 'daurnimator/less-locks'LibravatarLibravatar daurnimator 2017-08-311-32/+14
|\
| * Remove mutex from dl_anchorLibravatarLibravatar daurnimator 2017-08-101-6/+1
| | | | | | | | All call sites already hold a single mutex
| * Use a single lock across multiple init functionsLibravatarLibravatar daurnimator 2017-08-101-26/+13
| |
* | In compat_init we only need to anchor if we use CRYPTO_get_ex_new_indexLibravatarLibravatar daurnimator 2017-08-311-1/+1
| |
* | Move away from deprecated X509_CRL_get_* functions when setting valuesLibravatarLibravatar daurnimator 2017-08-311-21/+44
| | | | | | | | | | | | Use X509_CRL_set1_* instead which perform a copy (which means we have to allocate and destroy an ASN1_TIME) Part of #96
* | Move to key generation *_ex functions.LibravatarLibravatar daurnimator 2017-08-311-8/+29
| | | | | | | | | | | | The old functions were deprecated in OpenSSL 1.1.0. Part of #96
* | Use 'generator' parameter for picking generator for DH keys (rather than ↵LibravatarLibravatar daurnimator 2017-08-311-4/+6
| | | | | | | | | | | | 'exp'). Change default value to 2. 2 is the default generator for openssl; the number is a mostly arbitrary choice, and smaller values are faster.
* | Add branch for each key type in pk_new field marshallingLibravatarLibravatar daurnimator 2017-08-311-14/+32
| |
* | Use X509_CRL_get0_*Update when not modifying ASN1_TIMELibravatarLibravatar daurnimator 2017-08-311-9/+25
| |
* | Fix most 'expansion-to-defined' warningsLibravatarLibravatar daurnimator 2017-08-311-12/+29
| |
* | Use single method constructor and disable unwanted protocols via optionsLibravatarLibravatar daurnimator 2017-08-311-31/+61
| | | | | | | | | | - In OpenSSL 1.1.0 the individual constructors are deprecated - The removal of __typeof__ fixes an issue with MSVC
* | Fix openssl 0.9.8 compat (missing sk_OPENSSL_STRING_* functions)LibravatarLibravatar daurnimator 2017-08-311-0/+10
| |
* | Merge branch 'curves_list'LibravatarLibravatar daurnimator 2017-08-301-0/+57
|\ \
| * | openssl.ssl: Bind SSL_set1_curves_list as ssl:setCurvesList()LibravatarLibravatar daurnimator 2017-04-121-0/+22
| | |
| * | openssl.ssl.context.new: Turn on ecdh_auto in OpenSSL 1.0.2LibravatarLibravatar daurnimator 2017-04-031-0/+13
| | | | | | | | | | | | | | | It's on by default in 1.1.0, and supported in < 1.0.2. Suggestion taken from ruby openssl implementation: https://github.com/ruby/openssl/blob/a7bbd590c66d40bd662502df9c65474e85b5f03f/ext/openssl/ossl_ssl.c#L135
| * | openssl.ssl.context: Add ctx:setCurvesListLibravatarLibravatar daurnimator 2017-04-031-0/+22
| | |
* | | Move over to using lua-compat-5.3LibravatarLibravatar daurnimator 2017-08-301-1/+1
| | |
* | | Fix capitalisation (Hostname vs HostName)LibravatarLibravatar daurnimator 2017-05-311-7/+7
| | |
* | | Fix incorrect error prefixesLibravatarLibravatar daurnimator 2017-04-191-2/+2
| | |
* | | Reintroduce context:setTLSextStatusType() accidently removed in ↵LibravatarLibravatar daurnimator 2017-04-061-0/+3
| | | | | | | | | | | | 59766e63abfeb30342d413777b507940a739cc97
* | | Add ssl_pushsafe function to avoid panic on OOMLibravatarLibravatar daurnimator 2017-04-041-7/+41
| | |
* | | Bind SSL_CTX_set_tlsext_servername_callbackLibravatarLibravatar daurnimator 2017-04-041-4/+81
| | | | | | | | | | | | Closes #84
* | | Add methods ssl:setVerify(), ssl:getVerify(), ssl:getCertificate() and ↵LibravatarLibravatar daurnimator 2017-04-041-0/+69
| |/ |/| | | | | | | | | ssl:setPrivateKey() Similar to same methods that already exist on ssl.context object
* | Remove need for LUA_COMPAT_APIINTCASTSLibravatarLibravatar daurnimator 2017-04-031-23/+15
| |
* | Fix warning about pointer signednessLibravatarLibravatar daurnimator 2017-04-031-1/+1
| |
* | Fix warning about pointer signednessLibravatarLibravatar daurnimator 2017-04-031-1/+1
| |
* | Bind SSL_set_SSL_CTXLibravatarLibravatar daurnimator 2017-04-031-0/+13
| | | | | | | | For #84
* | Don't leak ctx on errorLibravatarLibravatar daurnimator 2017-04-031-8/+5
| | | | | | | | Fixes #72
* | Bind SSL_get_client_randomLibravatarLibravatar daurnimator 2017-04-031-0/+42
| | | | | | | | For #86
* | Merge branch 'ocsp'LibravatarLibravatar daurnimator 2017-04-031-0/+347
|\ \
| * | Have (empty) openssl.ocsp.response moduleLibravatarLibravatar daurnimator 2017-04-031-2/+19
| | |
| * | Export constants for openssl.ocsp.basic:verify() with via moduleLibravatarLibravatar daurnimator 2017-04-031-0/+25
| | |
| * | Allow unsetting ocsp responseLibravatarLibravatar daurnimator 2017-04-031-4/+8
| | |
| * | Add cert:getOCSP() to retreive OCSP URI from a certificateLibravatarLibravatar daurnimator 2016-12-201-0/+35
| | |
| * | Add ssl:setTLSextStatusOCSPResp()LibravatarLibravatar daurnimator 2016-12-201-0/+21
| | | | | | | | | | | | Currently useless without a way to set a callback for tlsext
| * | OCSP functions required for basic client validationLibravatarLibravatar daurnimator 2016-12-201-0/+245
| |/
* | Remove extraneous parenthesisLibravatarLibravatar daurnimator 2017-04-031-1/+1
| |