Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bignum: Don't allow empty numbers/strings to pass | daurnimator | 2016-01-04 | 1 | -5/+5 |
| | | | | | Previously, "-" would pass the len>0 check; and end up as "0" The `*str` check was redundant, the switch/case already ensures the object at the given stack index is a string | ||||
* | bignum: validate hex and decimal strings before feeding to openssl | daurnimator | 2016-01-04 | 1 | -2/+11 |
| | | | | OpenSSL doesn't throw an error on invalid numbers | ||||
* | bignum: handle negative hex numbers | daurnimator | 2016-01-04 | 1 | -2/+11 |
| | |||||
* | bignum: Add fromBinary constructor | daurnimator | 2016-01-04 | 1 | -0/+12 |
| | | | | Closes #44 | ||||
* | bignum.new: Allow initialisation from hex strings | daurnimator | 2016-01-04 | 1 | -5/+10 |
| | |||||
* | Merge branch 'fix-wrong-type' of git://github.com/daurnimator/luaossl into ↵ | William Ahern | 2016-01-04 | 1 | -3/+3 |
|\ | | | | | | | daurnimator-fix-wrong-type | ||||
| * | Fix incorrect type check in ssl:{set,get,clear}Options | daurnimator | 2016-01-03 | 1 | -3/+3 |
| | | | | | | | | Was checking for SSL_CTX instead of SSL | ||||
* | | bignum: Add generatePrime as new constructor | daurnimator | 2016-01-03 | 1 | -3/+26 |
| | | |||||
* | | bignum: Add :isPrime | daurnimator | 2016-01-03 | 1 | -15/+30 |
| | | |||||
* | | bignum: bugfix: unm shouldn't modify it's operands | daurnimator | 2016-01-03 | 1 | -1/+2 |
| | | |||||
* | | bignum: Bind sqr, nnmod and gcd | daurnimator | 2016-01-03 | 1 | -0/+39 |
| | | |||||
* | | bignum: Use openssl function names | daurnimator | 2016-01-03 | 1 | -12/+12 |
|/ | |||||
* | for now, don't be so harsh and break any existing code | William Ahern | 2015-12-21 | 1 | -0/+1 |
| | |||||
* | bignum: Move div operator to idiv operator (breaks API) | daurnimator | 2015-12-21 | 1 | -8/+8 |
| | |||||
* | bignum: Add tohex function | daurnimator | 2015-12-21 | 1 | -0/+30 |
| | |||||
* | bignum: Rename tostring function to todec. Expose as ":todec" method | daurnimator | 2015-12-21 | 1 | -4/+5 |
| | |||||
* | bignum: Add shl (lshift), shr (rshift) functions | daurnimator | 2015-12-21 | 1 | -0/+34 |
| | |||||
* | bignum: exposing existing math operators as methods | daurnimator | 2015-12-21 | 1 | -0/+6 |
| | |||||
* | Merge branch 'remove-warnings' of git://github.com/daurnimator/luaossl into ↵ | William Ahern | 2015-12-21 | 1 | -15/+15 |
|\ | | | | | | | daurnimator-remove-warnings | ||||
| * | Give auxL_getref NOTUSED attribute | daurnimator | 2015-12-18 | 1 | -1/+1 |
| | | |||||
| * | remove trailing whitespace | daurnimator | 2015-12-18 | 1 | -12/+12 |
| | | |||||
| * | removed unused warning across #if | daurnimator | 2015-12-18 | 1 | -0/+1 |
| | | |||||
| * | remove unused variables in xn__next | daurnimator | 2015-12-18 | 1 | -2/+1 |
| | | |||||
* | | fix Solaris build | William Ahern | 2015-12-18 | 1 | -0/+4 |
|/ | |||||
* | return value list instead of table if parameter names specified explicitly | William Ahern | 2015-12-18 | 1 | -64/+208 |
| | |||||
* | bn_dup only returns on success, so remove error handling from bn_dup calls | William Ahern | 2015-12-18 | 1 | -34/+26 |
| | |||||
* | put EC variable declarations inside OPENSSL_NO_EC preprocessor guard (unable ↵ | William Ahern | 2015-12-18 | 1 | -5/+8 |
| | | | | to confirm which, if any, of our platforms still don't support EC natively | ||||
* | Merge branch '36-private-key-inspection' of ↵ | William Ahern | 2015-12-18 | 1 | -0/+117 |
|\ | | | | | | | git://github.com/daurnimator/luaossl into daurnimator-36-private-key-inspection | ||||
| * | pk_getParameters: Add 'public_only' flag to only export the public key ↵ | daurnimator | 2015-12-10 | 1 | -0/+8 |
| | | | | | | | | | | | | parameters Should possibly a string/table instead? | ||||
| * | Add bn_dup function to make sure BN_FLG_SECURE is kept in copies | daurnimator | 2015-12-07 | 1 | -14/+24 |
| | | |||||
| * | Add 'pkey:getParameters()' function that returns private key parameters as a ↵ | daurnimator | 2015-12-07 | 1 | -0/+99 |
| | | | | | | | | table of bignums | ||||
* | | set empty key when creating cipher object to prevent SEGV if caller fails to ↵ | William Ahern | 2015-12-17 | 1 | -1/+7 |
| | | | | | | | | | | | | initialize with a key before calling :update or :final. closes issue #31. | ||||
* | | forgot to call BIO_reset after pushing the private key PEM text, which in ↵ | William Ahern | 2015-12-17 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | the multiple argument form caused the next PEM text to be appended. closes issue #34 | ||||
* | | free result of BN_bn2dec() | William Ahern | 2015-12-17 | 1 | -3/+21 |
| | | | | | | | | fixes issue #38 | ||||
* | | Merge branch 'master' of git://github.com/daurnimator/luaossl into ↵ | William Ahern | 2015-12-17 | 1 | -0/+2 |
|\ \ | | | | | | | | | | daurnimator-no-ssl3 | ||||
| * | | Guard SSLv3_server_method with #ifndef OPENSSL_NO_SSL3 | daurnimator | 2015-11-15 | 1 | -0/+2 |
| |/ | | | | | | | Related to https://github.com/wahern/cqueues/issues/113 | ||||
* | | fixed char buffer signedness issue | William Ahern | 2015-12-17 | 1 | -2/+6 |
| | | |||||
* | | column-align field initializers | William Ahern | 2015-12-17 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'bn-tobin' of git://github.com/daurnimator/luaossl into ↵ | William Ahern | 2015-12-17 | 1 | -0/+11 |
|\ \ | | | | | | | | | | daurnimator-bn-tobin | ||||
| * | | Add :tobin method to bignums | daurnimator | 2015-12-07 | 1 | -0/+11 |
| |/ | |||||
* | | Merge branch '19-bignum-modulo' of git://github.com/daurnimator/luaossl into ↵ | William Ahern | 2015-12-17 | 1 | -0/+6 |
|\ \ | | | | | | | | | | daurnimator-19-bignum-modulo | ||||
| * | | Implement lua rounding style for __mod operator | daurnimator | 2015-11-15 | 1 | -0/+6 |
| |/ | |||||
* | | Fix not passing through first cipher argument in vararg form | daurnimator | 2015-11-15 | 1 | -1/+1 |
| | | |||||
* | | Allow passing openssl.ssl.context:setCipherList a vararg of ciphers, or an array | daurnimator | 2015-08-09 | 1 | -0/+13 |
|/ | |||||
* | refactor ex_newstate fix, which left nil on the stack | william | 2015-07-25 | 1 | -6/+11 |
| | |||||
* | Don't recreate an exdata state singleton object when one already exists, ↵ | William Ahern | 2015-07-24 | 1 | -0/+9 |
| | | | | otherwise we wrongly invalidate any data already installed. Because ex_newstate is invoked from every submodule, this can easily happen if code loads one submodule, attaches some data to a new OpenSSL object, then loads some other submodule for the first time. | ||||
* | quick fix to make it easier to build against musl libc | Linux User | 2015-06-16 | 1 | -3/+7 |
| | |||||
* | add extension:text metho | william | 2015-06-04 | 1 | -1/+44 |
| | |||||
* | permit getting extension by index (1-based indexing), and add ↵ | william | 2015-06-04 | 1 | -34/+86 |
| | | | | x509:getExtensionCount and crl:getExtensionCount methods | ||||
* | add extension:getID, extension:getName, extension:getShortName, ↵ | william | 2015-06-04 | 1 | -33/+220 |
| | | | | extension:getLongName, extension:getCritical, and crl:getExtension |