Steven Fackler
f2ecdbe709
Fix support for LibreSSL versions other than 2.5.0
2017-05-12 11:16:25 -07:00
Steven Fackler
67b5fd1c97
Support public key decode from DER
...
Closes #629
2017-05-06 16:40:33 -07:00
Steven Fackler
7e8a0a0dad
Expose the lower level SHA functions
...
These don't allocate so they're both infallible and significantly
faster.
2017-04-14 23:03:17 -07:00
Steven Fackler
429f7c869e
Release v0.9.11
2017-04-14 16:56:21 -07:00
Andrew Roetker
b21046375a
(issues-600) Avoid compiling ec2m code against no-ec2m openssl
...
This commit avoids defining code that leads to undefined references when
compiling against an openssl built with no-ec2m.
2017-04-11 15:42:05 -07:00
Andrew Osmond
e6a6ebb87d
Add new EC/PKEY methods to permit deriving shared secrets.
2017-04-10 15:40:36 -04:00
Jay Lee
7c24224394
show help message when pkg-config is missing
2017-03-29 19:25:00 +08:00
Steven Fackler
42ad50ae67
Release v0.9.10
2017-03-26 10:49:04 -07:00
Steven Fackler
c8d1698f27
Logic to support client-side session reuse
2017-03-25 19:30:01 -07:00
Peter Gerber
f82f650953
Panic if lock managed by `locking_function` is doubly unlocked
...
Trying to unlock an unlocked lock is always an error and should
be treated as such.
This is related to #597 .
2017-03-16 22:14:58 +00:00
Steven Fackler
bf63f35dfb
Release v0.9.9
2017-03-14 12:55:36 -07:00
Andrew Roetker
663547a758
(maint) Recreate ability to pass in OPENSSL_LIBS variable
...
Prior to this commit in 43c951f743 the
ability to pass OPENSSL_LIBS was removed from the build.rs of
openssl-sys. This commit adds the ability to pass custom names for the
OPENSSL_LIBS back in. This is useful for when building openssl across
linux and windows with the same lib names (ssl:crypto) and the default
names provided by the build script are not valid.
2017-03-13 19:18:54 -06:00
Steven Fackler
06b10a5753
Release v0.9.8
2017-03-09 20:33:17 +11:00
Steven Fackler
81362a4e79
scrypt support
...
Closes #586
2017-02-21 21:15:52 -08:00
Steven Fackler
268288337b
Expose more error information
2017-02-19 16:05:58 -08:00
Benjamin Fry
ce2cfc56a6
fix versions for sys as well
2017-02-16 19:49:14 -08:00
Benjamin Fry
f8298882a4
add set_verify_cert_store() to ssl ctx
2017-02-16 19:49:14 -08:00
Steven Fackler
19f3b8a11a
Support PKCS#8 private key deserialization
...
Closes #581
2017-02-14 19:37:25 -08:00
Steven Fackler
06065ddcee
Release v0.9.7
2017-02-11 14:34:37 -08:00
Steven Fackler
980a71a008
Fix for libressl
2017-02-11 10:42:25 -08:00
Steven Fackler
f2c69ae7e9
Merge remote-tracking branch 'origin/master' into x509-builder
2017-02-11 10:13:00 -08:00
Steven Fackler
1c25336520
Merge branch 'master' into x509_req_version_subject
2017-02-11 09:11:25 -08:00
Steven Fackler
03fe3015dc
X509 signature algorithm access
2017-02-10 21:37:33 -08:00
Steven Fackler
8e5735d84c
X509 signature access
2017-02-10 19:59:11 -08:00
Steven Fackler
a1d7956f82
Add Asn1BitString
2017-02-10 19:38:51 -08:00
mredlek
30a634c877
Merge branch 'master' into x509_req_version_subject
2017-02-07 20:41:27 +01:00
Steven Fackler
5e3dd07ee4
Clean up pkg-config logic
...
Now that we're letting the C compiler track down headers this is no
longer necessary.
2017-02-03 20:17:22 -08:00
Brian Chin
4900d3fe5d
Fixed constant names from openssl/rsa.h
...
Fixed PKeyCtxRef method that didn't need to be mutable.
Added non-mutable accessors for PKeyCtxRef for Signer and Verifier.
2017-01-31 11:59:59 -08:00
Brian Chin
302ee77d32
Adding suggestions from review.
2017-01-30 16:51:10 -08:00
Brian Chin
20eed1e762
Simplify code, so that openssl-sys really doesn't contain anything aside
...
from bindings
2017-01-30 15:04:44 -08:00
Brian Chin
588fd33552
Testing first version that works with signer.
2017-01-30 15:04:44 -08:00
Brian Chin
ddc0066211
Add the necessary constants to access the pkey ctx stuff.
2017-01-30 15:04:44 -08:00
Steven Fackler
0598561f0e
Macro-expand OpenSSL headers for feature checks
...
Closes #564
2017-01-28 20:22:18 -08:00
mredlek
f5149eac5a
Add setters to new getter-functions in X509ReqRef
2017-01-27 20:55:40 +01:00
mredlek
6a8f6f425f
Style changes according to review
2017-01-27 19:13:36 +01:00
mredlek
557b936e27
Added X509ReqRef.subject_name and X509ReqRef.version
2017-01-26 21:05:33 +01:00
Steven Fackler
01e4667175
Make sure to not add system dirs to linkage
...
cc #447
2017-01-24 21:31:41 +01:00
Benjamin Fry
591022a7fa
fix multi-version compat
2017-01-23 22:12:11 -08:00
Benjamin Fry
540387d5ee
fix ptr types
2017-01-22 22:43:27 -08:00
Benjamin Fry
225552b823
Merge branch 'master' of github.com:sfackler/rust-openssl
2017-01-22 22:24:45 -08:00
Benjamin Fry
fbfecd63ae
add some documentation
2017-01-22 22:23:21 -08:00
Benjamin Fry
52c7868bb6
add pkcs12_create and to_der funcs
2017-01-22 21:27:31 -08:00
Steven Fackler
722bdb6a4c
Merge pull request #550 from Keruspe/master
...
LibreSSL support improvements
2017-01-22 18:39:34 +00:00
Steven Fackler
54900976bb
Support EC_GROUP_set_asn1_flag
...
Closes #561
2017-01-22 10:44:59 +00:00
Steven Fackler
26e159a5f0
Support chacha20 and chacha20_poly1305
2017-01-21 11:12:02 +00:00
Steven Fackler
d353b36681
Support AES IGE
...
This is a special snowflake used only by Telegram apparently.
Closes #523
2017-01-21 09:41:13 +00:00
Steven Fackler
a1122197f8
Add categories
...
Closes #557
2017-01-20 16:35:43 +00:00
Steven Fackler
920ab0d6fb
OCSP functionality
2017-01-14 21:09:38 -08:00
Steven Fackler
9942643ab6
Release v0.9.6
2017-01-09 20:52:20 -08:00
Steven Fackler
192c08cdee
Adjust minimum pkg-config version
...
Closes #551
2017-01-07 13:13:53 -08:00
Marc-Antoine Perennou
524e8e3c5a
libressl: mark unavailable flags as such
...
These flags are not available in libressl (at least for version 2.4.4 which is the last stable version)
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-01-05 16:15:25 +01:00
Steven Fackler
c6ea4f3e2a
Fix time type
2017-01-04 23:04:26 -08:00
Steven Fackler
404e0341d8
Provide master key access
2017-01-04 22:01:30 -08:00
Steven Fackler
5d53405597
Provide access to the session ID
2017-01-04 21:11:06 -08:00
Steven Fackler
1ffe574298
Add SSL_SESSION functions
2017-01-04 20:57:50 -08:00
Steven Fackler
336175990c
Add SSL_SESSION
2017-01-04 20:54:53 -08:00
Steven Fackler
cdf388e3f4
Release v0.9.5
2017-01-03 16:09:24 -08:00
Steven Fackler
6291407b17
Add X509::stack_from_pem
...
Implementation is a clone of SSL_CTX_use_certificate_chain_file
2017-01-03 14:56:00 -08:00
Tomasz Drwięga
d9e3d6ea21
Improving missing OpenSSL message on Linux
2017-01-03 11:56:32 +01:00
Josh Triplett
9ff3ce4687
Use metadeps to specify pkg-config dependencies declaratively
...
This makes it easier for distribution packaging tools to generate
appropriate package dependencies.
2016-12-24 02:38:51 -08:00
Steven Fackler
762510a5fa
Release v0.9.4
2016-12-23 13:38:52 -05:00
Steven Fackler
7e035a7fd1
Merge pull request #538 from semarie/libressl
...
Add LibreSSL support
2016-12-22 11:59:19 -05:00
Sébastien Marie
b3526cbd2b
Add LibreSSL 2.5.0 support
2016-12-21 09:27:12 +01:00
Sébastien Marie
53c470c71a
duplicate ossl10x.rs to libressl.rs
2016-12-21 08:39:25 +01:00
Steven Fackler
3cfcf13880
Merge branch 'master' of github.com:sfackler/rust-openssl
2016-12-20 14:30:56 -08:00
Aidan Hobson Sayers
b090804227
Allow OPENSSL_{LIB,INCLUDE}_DIR to override OPENSSL_DIR
2016-12-12 17:51:35 +00:00
Steven Fackler
791f2c8f4d
Release v0.9.3
2016-12-09 21:54:06 -08:00
Steven Fackler
26cefe7d97
Switch to docs.rs for docs
2016-12-09 21:52:43 -08:00
0xa
0850f605b1
Use EVP_bf_cfb64 instead of EVP_bf_cfb
2016-12-09 18:42:10 +00:00
0xa
0081665339
Add Blowfish support
2016-12-09 17:06:15 +00:00
Steven Fackler
0602712bf4
Release v0.9.2
2016-11-27 22:23:32 -08:00
Steven Fackler
e929e09216
Add EcPoint::invert
2016-11-14 22:02:47 +01:00
Steven Fackler
e9e58b27dc
Remove EC_METHOD functions
...
Some appear not to be defined anywhere and they're not used anyway
2016-11-13 22:14:10 +00:00
Steven Fackler
82eb3c4f51
Add EcKey::check_key
2016-11-13 22:10:52 +00:00
Steven Fackler
35f11d555e
More functionality
2016-11-13 22:06:18 +00:00
Steven Fackler
1a52649516
More functionality
2016-11-13 20:46:01 +00:00
Steven Fackler
b2de36049a
Add Some more elliptic curve functionality
2016-11-13 20:19:38 +00:00
Steven Fackler
48c0009418
Macroise from_der
2016-11-13 17:06:50 +00:00
Steven Fackler
b0415f466c
Macroise to_der
2016-11-13 16:52:19 +00:00
Steven Fackler
387e78257b
Support serialization of encrypted private keys
...
Switch to PEM_write_bio_PKCS8PrivateKey since the other function outputs
nonstandard PEM when encrypting.
2016-11-13 16:09:52 +00:00
Steven Fackler
08e0c4ca90
Some serialization support for EcKey
2016-11-13 15:02:38 +00:00
Steven Fackler
796d7b4deb
Add constructors for various standard primes
2016-11-12 14:20:43 +00:00
Steven Fackler
96d24c8957
Add SslRef::set_{tmp_dh,tmp_ecdh,ecdh_auto}
2016-11-12 13:45:54 +00:00
Steven Fackler
563754fb08
Add SslContextBuilder::set_tmp_{ec,}dh_callback
2016-11-12 12:43:44 +00:00
Steven Fackler
9b5c62b053
Add PKey::bits
2016-11-12 11:00:15 +00:00
Steven Fackler
7c9afd8c99
Fix function signature
2016-11-12 10:29:31 +00:00
Steven Fackler
26a3358a2b
Add basic X509_STORE access
...
There's more to do here, but this enabled addition of trusted CAs from
X509 objects.
Closes #394
2016-11-12 00:24:12 +00:00
Steven Fackler
6b7279eb52
Consistently support both PEM and DER encodings
...
Closes #500
2016-11-11 20:10:10 +00:00
Steven Fackler
15490a43e3
Add EcKey <-> PKey conversions
...
Closes #499
2016-11-11 19:17:38 +00:00
Steven Fackler
32cbed0782
PKey <-> DH conversions
...
Closes #498
2016-11-11 19:04:54 +00:00
Steven Fackler
609a09ebb9
Add PKey::dsa
...
Closes #501
2016-11-11 18:52:37 +00:00
Steven Fackler
0d2d4865e5
Release v0.9.1
2016-11-11 16:45:22 +00:00
Steven Fackler
203a02c3e6
Actually support AES GCM
...
This is an AEAD cipher, so we need some extra functionality. As another
bonus, we no longer panic if provided an IV with a different length than
the cipher's default.
2016-11-08 20:35:21 +00:00
Steven Fackler
d78acc729b
Add an X509ReqBuilder
2016-11-07 20:42:43 +00:00
Steven Fackler
597d05b8f8
Add stack creation and push
2016-11-06 23:46:42 -08:00
Steven Fackler
5f18ffa4b3
Start of extension support
2016-11-06 21:58:43 -08:00
Steven Fackler
1939e6fd78
Add conf module
2016-11-06 14:49:26 -08:00
Steven Fackler
b83edbad0d
Start on an X509Builder
2016-11-06 14:07:34 -08:00
Steven Fackler
1edb6f682e
Support client CA advertisement
2016-11-06 12:17:14 -08:00
Steven Fackler
a4e0581e4f
Fix build on 1.0.1
2016-11-06 11:57:50 -08:00