Permalink
Switch branches/tags
Nothing to show
Commits on Sep 25, 2013
  1. Merge branch 'fix-compiler-warning' of https://github.com/racker/luac…

    mkottman committed Sep 25, 2013
    …rypto into racker-fix-compiler-warning
    
    Conflicts:
    	src/lcrypto.c
Commits on Apr 25, 2013
  1. Updated readme and docs

    mkottman committed Apr 25, 2013
  2. AStyle code formatting

    mkottman committed Apr 25, 2013
  3. Build with Lua 5.2.

    moteus committed Apr 25, 2013
    Test pass (Lua 5.1 / Lua 5.2)
Commits on Mar 21, 2013
  1. Merge pull request #26 from acss/master

    mkottman committed Mar 21, 2013
    Change needed to build luacrypto with recent OpenSSL
Commits on Feb 15, 2013
  1. Created a new version of pkey_generate() that uses OpenSSl's RSA_gene…

    Alexandre Silva committed Feb 15, 2013
    …rate_key_ex() and DSA_generate_parameters_ex() instead of their deprecated counterpats (to use the new version you need to define DONT_USE_OPENSSL_DEPRECATED_FUNCTIONS, otherwise you still get the original one)
Commits on Oct 16, 2012
  1. src: lcrypto: fix compiler warning

    Brandon Philips committed Oct 16, 2012
    ../deps/luacrypto/src/lcrypto.c:1064:11: warning: comparison of integers of different signs: 'int'
          and 'size_t' (aka 'unsigned long') [-Wsign-compare]
      if (ret != strlen(key)) {
          ~~~ ^  ~~~~~~~~~~~
    1 warning generated.
Commits on Sep 26, 2012
  1. Merge pull request #23 from racker/fix-verify-leaving-an-error

    mkottman committed Sep 26, 2012
    lcrypto: check for errors in fverify and friends
  2. lcrypto: check for errors in fverify and friends

    Brandon Philips committed Sep 25, 2012
    In luvit we were encountering a problem where crypto.verify was leaving
    an openssl error lying around and that was causing our TLS code to freak
    out since it found an error in SSL_get_error().
    
    So, make sure we check for all cases and in the case of VerifyFinal that
    if the verify fails we clear the crypto errors too.
Commits on Apr 20, 2012
  1. Merge pull request #16 from racker/x509_cert-fix-windows

    mkottman committed Apr 20, 2012
    x509_cert_pubkey: windows build fix
  2. Merge pull request #19 from hasufell/master

    mkottman committed Apr 20, 2012
    Revised build system - autotools
  3. autoreconf

    hasufell committed Apr 20, 2012
  4. add pkgconfig file

    hasufell committed Apr 20, 2012
    luvit needs the header file being installed when not using bundled sources
    this makes it easier for us to patch the luvit build system and point it
    to the correct lib/header
  5. fix test.lua

    hasufell committed Apr 20, 2012
  6. add autotools generated files

    hasufell committed Apr 20, 2012
    libtoolize --copy --force --install --automake && aclocal -I m4 && autoconf && autoheader && automake --add-missing --copy
  7. add autotools build system

    hasufell committed Apr 20, 2012
    base files added
  8. add docs

    hasufell committed Apr 20, 2012
  9. add cmake build system from LuaDist

    hasufell committed Apr 20, 2012
    dist.cmake patched to work with autotools
    added EXCLUDE patterns for Makefile* in install-rules
  10. remove old build systems

    hasufell committed Apr 20, 2012
Commits on Mar 21, 2012
  1. x509_cert_pubkey: windows build fix

    philips committed Mar 21, 2012
    move declaration to the top to fix windows
Commits on Mar 20, 2012
  1. Merge pull request #15 from racker/fix-rsa-openssl-mismatch

    mkottman committed Mar 20, 2012
    Fix rsa openssl mismatch
  2. pkey: to_pem: check return codes

    Brandon Philips committed Mar 20, 2012
    check the return codes of wrote_bio_PrivateKey for any error.
  3. pkey: use DSA and RSA PrivateKey functions in to_pem

    Brandon Philips committed Mar 19, 2012
    Detect what type of key we are dealing with and use the right to_pem
    function. This way we match the enconding that the openssl dsa|rsa apps
    use for certificates.
Commits on Mar 14, 2012
  1. docs: add x509_cert and x509_ca

    Brandon Philips committed Mar 14, 2012
    add docs for the x509_cert and x509_ca objects.
  2. x509_cert: add x509_cert to read out pubkey

    Brandon Philips committed Mar 8, 2012
    With this patch we can now do things like verify a x509 cert against a x509_ca
    then extract its pubkey and test a message signature.
    
        cert = crypto.x509_cert()
        cert:from_pem(server_cert)
        kpub = cert:pubkey()
        message = 'Hello world'
        verified = crypto.verify('md5', message, signature, kpub)
Commits on Mar 6, 2012
Commits on Mar 1, 2012
  1. Bump version to 0.3.0

    mkottman committed Mar 1, 2012
Commits on Feb 29, 2012
Commits on Feb 8, 2012
  1. lcrypto: make it build under windows

    Brandon Philips committed Feb 8, 2012
    Move all of the variable definitions to the top.
Commits on Feb 4, 2012
  1. lcrypto.c: return true if x509_ca:add_pem is OK

    Brandon Philips committed Feb 4, 2012
    return a boolean instead of nothing on success
  2. lcrypto.c: remove inlines

    Brandon Philips committed Feb 4, 2012
    inlines at best are a micro optimization and all modern compilers figure
    it out. On GCC 4.4 the exact same code is output with and without the
    inline. And as a bonus this all should compile under Windows now.
Commits on Feb 3, 2012
  1. Merge pull request #2 from racker/add-x509-ca-verify

    philips committed Feb 3, 2012
    Add x509 ca verify
  2. x509_ca: initial commit

    Brandon Philips committed Feb 3, 2012
    Initial commit of code to verify an x509 cert against a CA.
    
    Here is an example usage of the API:
    
    ca = assert(crypto.x509_ca())
    ca:add_pem(ca_cert)
    assert(ca:verify_pem(cert_to_verify) == true, "failed to verify good cert")