aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/crypto/pkey.rs
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revert "impl Clone for PKey and X509 by using their 'references' ↵Steven Fackler2016-01-311-0/+14
| | | | member""
* Fix PKey RSA constructorsSteven Fackler2016-01-301-22/+7
| | | | | | | | `set1` functions bump the object's refcount so we were previously leaking the RSA object. Split the decode from PEM part out to a method on RSA and use that in the PKey constructors. Also make RSA a pointer and actually free it.
* Revert "impl Clone for PKey and X509 by using their 'references' member"Steven Fackler2016-01-281-14/+0
|
* Merge branch 'master' of https://github.com/sfackler/rust-opensslDaniel Albert2016-01-201-0/+85
|\
| * crypto/pkey: impl Clone for PKey using openssl's ref countingCody P Schafer2016-01-191-0/+14
| |
| * Merge pull request #328 from Cyberunner23/PemRSASteven Fackler2016-01-091-0/+68
| |\ | | | | | | Add support for RSA PEM files.
| | * Added tests for private_rsa_key_from_pem() and public_rsa_key_from_pem()Cyberunner232016-01-091-0/+20
| | |
| | * Added private_rsa_key_from_pem and public_rsa_key_from_pem.Cyberunner232016-01-051-0/+48
| | |
| * | Mark PKey as `Send` and `Sync`Will Tange2016-01-071-0/+3
| |/ | | | | | | | | Provided that the locking function is set, the underlying `ffi::EVP_KEY` type should be safe to use across threads.
* / Add RSA structsDaniel Albert2016-01-011-2/+2
|/
* RustfmtSteven Fackler2015-12-151-115/+144
|
* Fix a leak when using `EVP_PKEY_get1_RSA`.Overmind JIANG2015-11-181-0/+1
| | | | | | `EVP_PKEY_get1_RSA` returns a RSA structure with its reference count increased by 1 and therefore we need to call `RSA_free` after finishing using that value.
* Provide public_decrypt, private_encrypt for PKEYThom May2015-10-281-12/+115
|
* Add public key PEM read function.Nathan Lilienthal2015-10-011-0/+26
|
* Merge pull request #270 from mvdnes/crypto_segvSteven Fackler2015-09-111-7/+67
|\ | | | | Check if public/private RSA key is properly loaded
| * Fix one call to RSA_size found by testsMathijs van de Nes2015-09-111-1/+1
| |
| * Add tests to ensure a panic occurs instead of segvMathijs van de Nes2015-09-111-0/+32
| |
| * Check rsa.is_null() before passing it to RSA_sizeMathijs van de Nes2015-09-101-1/+22
| | | | | | | | RSA_size will cause an segmentation fault if it is null
| * Check _fromstr function for successMathijs van de Nes2015-09-101-6/+13
| |
* | Make the docs say that load_pub/save_pub methods take DER bytesAlex Gaynor2015-09-091-2/+2
|/
* Add function to write RSA public key as PEMAndrew Dunham2015-07-231-0/+32
|
* Correction on sign and verify documentation to be more explicit of rightEmeric Chevalier2015-05-301-8/+17
| | | | behaviour (no hash done by the functions).
* Move PKey comparison func to public_eq()Manuel Schölling2015-05-011-14/+14
|
* Add comparison for PKeysManuel Schölling2015-04-161-0/+30
|
* Add X509::public_key()Manuel Schölling2015-04-151-1/+11
|
* Add SslContext::add_extra_chain_cert()Manuel Schölling2015-04-031-1/+0
|
* Add ability to load private keys from files and use raw keys and ↵Manuel Schölling2015-04-031-0/+30
| | | | certificates for SslContext
* Fixup for betaAlex Crichton2015-04-021-3/+3
| | | | Add derive(Clone) and don't negate unsigned numbers
* Fix deprecation warningsSteven Fackler2015-03-251-15/+15
|
* Convert to new IO.Steven Fackler2015-02-241-3/+5
|
* Move docs to this repo and auto buildSteven Fackler2015-02-071-0/+423