aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* bignum: Add fromBinary constructorLibravatarLibravatar daurnimator 2016-01-041-0/+12
| | | | Closes #44
* bignum.new: Allow initialisation from hex stringsLibravatarLibravatar daurnimator 2016-01-041-5/+10
|
* Merge branch 'fix-wrong-type' of git://github.com/daurnimator/luaossl into ↵LibravatarLibravatar William Ahern 2016-01-041-3/+3
|\ | | | | | | daurnimator-fix-wrong-type
| * Fix incorrect type check in ssl:{set,get,clear}OptionsLibravatarLibravatar daurnimator 2016-01-031-3/+3
| | | | | | | | Was checking for SSL_CTX instead of SSL
* | bignum: Add generatePrime as new constructorLibravatarLibravatar daurnimator 2016-01-031-3/+26
| |
* | bignum: Add :isPrimeLibravatarLibravatar daurnimator 2016-01-031-15/+30
| |
* | bignum: bugfix: unm shouldn't modify it's operandsLibravatarLibravatar daurnimator 2016-01-031-1/+2
| |
* | bignum: Bind sqr, nnmod and gcdLibravatarLibravatar daurnimator 2016-01-031-0/+39
| |
* | bignum: Use openssl function namesLibravatarLibravatar daurnimator 2016-01-031-12/+12
|/
* for now, don't be so harsh and break any existing codeLibravatarLibravatar William Ahern 2015-12-211-0/+1
|
* bignum: Move div operator to idiv operator (breaks API)LibravatarLibravatar daurnimator 2015-12-211-8/+8
|
* bignum: Add tohex functionLibravatarLibravatar daurnimator 2015-12-211-0/+30
|
* bignum: Rename tostring function to todec. Expose as ":todec" methodLibravatarLibravatar daurnimator 2015-12-211-4/+5
|
* bignum: Add shl (lshift), shr (rshift) functionsLibravatarLibravatar daurnimator 2015-12-211-0/+34
|
* bignum: exposing existing math operators as methodsLibravatarLibravatar daurnimator 2015-12-211-0/+6
|
* Merge branch 'remove-warnings' of git://github.com/daurnimator/luaossl into ↵LibravatarLibravatar William Ahern 2015-12-211-15/+15
|\ | | | | | | daurnimator-remove-warnings
| * Give auxL_getref NOTUSED attributeLibravatarLibravatar daurnimator 2015-12-181-1/+1
| |
| * remove trailing whitespaceLibravatarLibravatar daurnimator 2015-12-181-12/+12
| |
| * removed unused warning across #ifLibravatarLibravatar daurnimator 2015-12-181-0/+1
| |
| * remove unused variables in xn__nextLibravatarLibravatar daurnimator 2015-12-181-2/+1
| |
* | fix Solaris buildLibravatarLibravatar William Ahern 2015-12-181-0/+4
|/
* return value list instead of table if parameter names specified explicitlyLibravatarLibravatar William Ahern 2015-12-181-64/+208
|
* bn_dup only returns on success, so remove error handling from bn_dup callsLibravatarLibravatar William Ahern 2015-12-181-34/+26
|
* put EC variable declarations inside OPENSSL_NO_EC preprocessor guard (unable ↵LibravatarLibravatar William Ahern 2015-12-181-5/+8
| | | | to confirm which, if any, of our platforms still don't support EC natively
* Merge branch '36-private-key-inspection' of ↵LibravatarLibravatar William Ahern 2015-12-181-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 ↵LibravatarLibravatar daurnimator 2015-12-101-0/+8
| | | | | | | | | | | | parameters Should possibly a string/table instead?
| * Add bn_dup function to make sure BN_FLG_SECURE is kept in copiesLibravatarLibravatar daurnimator 2015-12-071-14/+24
| |
| * Add 'pkey:getParameters()' function that returns private key parameters as a ↵LibravatarLibravatar daurnimator 2015-12-071-0/+99
| | | | | | | | table of bignums
* | set empty key when creating cipher object to prevent SEGV if caller fails to ↵LibravatarLibravatar William Ahern 2015-12-171-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 ↵LibravatarLibravatar William Ahern 2015-12-171-1/+2
| | | | | | | | | | | | | | | | the multiple argument form caused the next PEM text to be appended. closes issue #34
* | free result of BN_bn2dec()LibravatarLibravatar William Ahern 2015-12-171-3/+21
| | | | | | | | fixes issue #38
* | Merge branch 'master' of git://github.com/daurnimator/luaossl into ↵LibravatarLibravatar William Ahern 2015-12-171-0/+2
|\ \ | | | | | | | | | daurnimator-no-ssl3
| * | Guard SSLv3_server_method with #ifndef OPENSSL_NO_SSL3LibravatarLibravatar daurnimator 2015-11-151-0/+2
| |/ | | | | | | Related to https://github.com/wahern/cqueues/issues/113
* | fixed char buffer signedness issueLibravatarLibravatar William Ahern 2015-12-171-2/+6
| |
* | column-align field initializersLibravatarLibravatar William Ahern 2015-12-171-1/+1
| |
* | Merge branch 'bn-tobin' of git://github.com/daurnimator/luaossl into ↵LibravatarLibravatar William Ahern 2015-12-171-0/+11
|\ \ | | | | | | | | | daurnimator-bn-tobin
| * | Add :tobin method to bignumsLibravatarLibravatar daurnimator 2015-12-071-0/+11
| |/
* | Merge branch '19-bignum-modulo' of git://github.com/daurnimator/luaossl into ↵LibravatarLibravatar William Ahern 2015-12-171-0/+6
|\ \ | | | | | | | | | daurnimator-19-bignum-modulo
| * | Implement lua rounding style for __mod operatorLibravatarLibravatar daurnimator 2015-11-151-0/+6
| |/
* | Fix not passing through first cipher argument in vararg formLibravatarLibravatar daurnimator 2015-11-151-1/+1
| |
* | Allow passing openssl.ssl.context:setCipherList a vararg of ciphers, or an arrayLibravatarLibravatar daurnimator 2015-08-091-0/+13
|/
* refactor ex_newstate fix, which left nil on the stackLibravatarLibravatar william 2015-07-251-6/+11
|
* Don't recreate an exdata state singleton object when one already exists, ↵LibravatarLibravatar William Ahern 2015-07-241-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 libcLibravatarLibravatar Linux User 2015-06-161-3/+7
|
* add extension:text methoLibravatarLibravatar william 2015-06-041-1/+44
|
* permit getting extension by index (1-based indexing), and add ↵LibravatarLibravatar william 2015-06-041-34/+86
| | | | x509:getExtensionCount and crl:getExtensionCount methods
* add extension:getID, extension:getName, extension:getShortName, ↵LibravatarLibravatar william 2015-06-041-33/+220
| | | | extension:getLongName, extension:getCritical, and crl:getExtension
* clarify ownership semantics of new extension features, some consistency ↵LibravatarLibravatar william 2015-06-041-16/+35
| | | | work, and a little bit of refactoring to help me understand how the new code works
* Merge branch 'ext' of git://github.com/kunkku/luaossl into kunkku-extLibravatarLibravatar william 2015-06-041-2/+80
|\
| * initialize extension data in DER format without intermediate hex encodingLibravatarLibravatar Kaarle Ritvanen 2015-05-181-1/+26
| |