Commit Graph

2898 Commits

Author SHA1 Message Date
Atul Bhosale 784978bad0
Format code using 'cargo fmt' 2019-11-14 21:00:53 +05:30
Adam Reichold 86db2315d4 Avoid initialization overhead for base64 coding 2019-11-14 10:09:44 +01:00
Adam Reichold bcbebbcace Expose EVP_{Encode,Decode}Block interfaces for base64 coding 2019-11-14 10:06:24 +01:00
Steven Fackler 34c2b69118
Merge pull request #1180 from PrismaPhonic/master
Added clonability for sha hash state.  Useful for incremental hashing
2019-11-11 21:01:19 -05:00
Peter Farr 5991f425fa Added unit test to test that new cloning feature works as intended 2019-11-11 16:40:05 -08:00
Peter Farr 8fae1115a4 Changed all sha objects to be clonable per PR review suggestion. 2019-11-11 16:31:47 -08:00
Steven Fackler efd7915c32
Merge pull request #1179 from lukaslihotzki/master
Add EC_GROUP_order_bits
2019-11-11 19:10:30 -05:00
Lukas Lihotzki 258c49a581 Add #[cfg(ossl110)] 2019-11-11 23:03:40 +01:00
Lukas Lihotzki 6d6429237d Add EC_GROUP_order_bits 2019-11-11 22:04:14 +01:00
Peter Farr 22f029064a Added clonability for sha hash state. Useful for incremental hashing 2019-11-11 11:09:49 -08:00
Steven Fackler dc72a8e2c4
Merge pull request #1173 from griff/rework-673
Add methods for comparing Asn1TimeRef and creating Asn1Time from Unix time
2019-10-21 20:37:41 -04:00
Steven Fackler 0e72e5d27f Release openssl-sys v0.9.52 2019-10-19 07:35:52 -07:00
Steven Fackler b29c7eacb1
Merge pull request #1176 from vishwin/master
Support LibreSSL 3.0.2
2019-10-19 10:34:40 -04:00
Charlie Li f66c860fce Support LibreSSL 3.0.2
3.0.2 is the first stable release, so support the rest of the series.
2019-10-19 09:56:56 -04:00
Brian Olsen 80e0dd03ba
Add method to create Asn1Time from time_t value
This is mostly just a rework of the earlier work done by @illegalprime
in his PR #673 and credit should go to him.
2019-10-13 23:10:16 +02:00
Brian Olsen 14a6a98ebf
Add diff method and comparisons to Asn1TimeRef
This implements a `diff` method on `Asn1TimeRef` using `ASN1_TIME_diff`
and uses this new method to implement combinations of `PartialEq` and
`PartialOrd` for `Asn1Time` and `Asn1TimeRef`.

This is mostly just a rework of the earlier work done by @illegalprime
in his PR #673 and credit should go to him.
2019-10-13 23:09:12 +02:00
Steven Fackler ff14649daf Fix changelog links 2019-10-09 18:04:54 -07:00
Steven Fackler 79fd645c75 Release openssl-sys v0.9.51 2019-10-09 18:03:13 -07:00
Steven Fackler a87636f452
Note openssl-sys support
Closes #1169
2019-10-09 21:01:48 -04:00
Steven Fackler 815aab772b
Merge pull request #1171 from mvertescher/fix-warnings
Fix rustc warnings
2019-10-08 09:44:56 -04:00
Matt Vertescher b771738a3a Fix rustc warnings
- Use `..=` for inclusive ranges
- Add the `dyn` keyword for trait objects
- Switch from `ONCE_INIT` to `std::sync::Once::new()`
2019-10-08 08:35:35 -04:00
Steven Fackler 7c2a68c719
Merge pull request #1166 from vishwin/master
Support LibreSSL 3.0.1
2019-10-03 19:50:21 -04:00
Charlie Li e2b51a8705 Support LibreSSL 3.0.1 2019-10-03 09:21:11 -04:00
Steven Fackler bb3e0f474b Release openssl v0.10.25 2019-10-02 17:52:36 -07:00
Steven Fackler 02c3262be8 Release openssl-sys v0.9.50 2019-10-02 17:46:57 -07:00
Steven Fackler 55f1fc5a73
Merge pull request #1163 from sfackler/pkey-clone
Implement Clone for PKey
2019-10-01 22:11:52 -04:00
Steven Fackler 7ce0835b74 Implement Clone for PKey 2019-10-01 18:45:10 -07:00
Steven Fackler c295fce45c Upgrade CI versions 2019-10-01 15:34:33 -07:00
Steven Fackler 79d6d1ff2b
Merge pull request #1153 from sturmsebastian/eddsa
Added support for Ed25519 and Ed448 signatures
2019-09-08 20:49:41 -04:00
Sebastian Sturm cf9978bc0e Ensure Signer::len has documentation
Applied conditional compilation to internal helpers
2019-09-08 14:45:06 +02:00
Steven Fackler 22e80b8c71 Bump MSRV again 2019-09-07 06:02:03 -07:00
Steven Fackler 2260363648
Bump MSRV 2019-09-06 09:21:42 -04:00
Steven Fackler 9780fd6ba2
Merge pull request #1152 from thomaswhiteway/ecdsa_sig_set0_leak
Free r and s on ECDSA_SIG before overwriting them in ECDSA_SIG_set0
2019-09-06 09:20:33 -04:00
Thomas Whiteway 106d613805 Free r and s on ECDSA_SIG before overwriting them in ECDSA_SIG_set0 2019-09-06 10:52:15 +01:00
Sebastian Sturm bdede43afe Added support for Ed25519 and Ed448 signatures 2019-08-16 11:15:04 +02:00
Steven Fackler 8b2c370b86 Release openssl-sys v0.9.49 2019-08-15 22:19:46 -04:00
Steven Fackler 0e2cd8219a
Merge pull request #1149 from sfackler/libressl-3
Support LibreSSL 3.0.0
2019-08-06 19:36:20 -07:00
Steven Fackler 749f837d36 Fix minimal version build 2019-08-06 19:29:06 -07:00
Steven Fackler 8d521bacbb Support LibreSSL 3.0.0
Closes #1121
2019-08-06 18:36:04 -07:00
Steven Fackler dbe0672dc4 Release openssl v0.10.24 2019-07-19 07:45:32 -07:00
Steven Fackler 45c83e2772 Release openssl-sys v0.9.48 2019-07-19 07:30:11 -07:00
Steven Fackler 6af4f91674
Merge pull request #1142 from sfackler/fix-ex-data-bs
Hack around an unpatched OpenSSL issue
2019-07-18 22:56:00 -04:00
Steven Fackler 8d2e9e783d Hack around an unpatched OpenSSL issue
Why backport fixes to your LTS version? Seems like a lot of work, I
guess!

Closes #1133
2019-07-18 22:44:02 -04:00
Steven Fackler 5f0e5e2e51
Merge pull request #1140 from Leo1003/aes-192
Expose AES-192 and OFB mode
2019-07-06 21:11:40 -07:00
Leo d598f156a7 Add AES-192 tests in CTR, CFB, and OFB modes 2019-07-07 11:07:20 +08:00
Leo 88c5bd81c7 Add AES-192 and OFB mode 2019-07-06 17:11:37 +08:00
Steven Fackler 01fc84f5e0
Merge pull request #1136 from Leo1003/dsa_priv_pem
Expose pem serialize function for DSA private key
2019-06-30 09:14:52 -07:00
Leo a02a962f7d Expose pem serialize function for DSA private key
Expose private_key_to_pem() & private_key_to_pem_passphrase() for DsaRef
2019-06-30 23:35:50 +08:00
Steven Fackler 9ba802ad43
Merge pull request #1135 from sfackler/mozilla-5
Add mozilla v5 configurations
2019-06-29 07:32:59 -07:00
Steven Fackler 850e93ee85 Don't depend on NO_SSL_MASK 2019-06-28 20:07:22 -07:00