Steven Fackler
2ece5b1039
Release v0.7.5
2016-01-22 15:57:21 -08:00
Steven Fackler
b7d3357f37
Fix connect and accept error reporting
...
We were previously trying to create an error twice so the second
wouldn't be correct.
2016-01-22 15:34:31 -08:00
Steven Fackler
3640edd17a
Merge pull request #339 from jimmycuadra/allow-raw-pointer-derive
...
Remove raw_pointer_derive lint
2016-01-22 10:14:53 -08:00
Jimmy Cuadra
d30d1aa277
Remove raw_pointer_derive lint.
2016-01-22 04:45:52 -08:00
Daniel Albert
3ee2bf9310
Fix up RSA integration
2016-01-20 20:29:06 +00:00
Daniel Albert
74db7db560
Merge branch 'master' of https://github.com/sfackler/rust-openssl
2016-01-20 19:59:41 +00:00
Steven Fackler
95a83c477c
Merge pull request #334 from jmesmon/ssl-context
...
ssl: fix refcounting of SslContext when set_ssl_context is used
2016-01-19 20:04:44 -08:00
Steven Fackler
50bf7a933b
Merge pull request #336 from jmesmon/x509-pky-clone
...
impl Clone for PKey and X509 by using their 'references' member
2016-01-19 19:59:00 -08:00
Cody P Schafer
36a667be49
x509: impl Clone using references & CRYPTO_add()
2016-01-19 22:04:51 -05:00
Cody P Schafer
3c51f159a7
crypto/pkey: impl Clone for PKey using openssl's ref counting
2016-01-19 22:04:51 -05:00
Cody P Schafer
d1825c7a86
openssl/ssl/context: test that we are refcounting correctly
...
Not a perfect test, on failure it _might_ exit with this output:
Process didn't exit successfully:
`/home/cody/g/rust-openssl/openssl/target/debug/openssl-8e712036e3aac4fe`
(signal: 11)
But unclear if we can do any better.
2016-01-18 16:40:14 -05:00
Cody P Schafer
dacde211c3
ssl: fix refcounting of SslContext when set_ssl_context is used
...
Additionally impl Clone for SslContext to both allow us to use it &
allow external users to take advantage of SslContext's internal
refcount.
Maintain the existing signature for set_ssl_context(), but
add inline comments recommending changing it.
Fixes #333
2016-01-18 15:37:13 -05:00
Daniel Albert
1f45723b39
Fix incorrect unsafe declaration
2016-01-12 20:57:01 +00:00
Daniel Albert
7e8df9febd
Adhere to rust conventions
2016-01-12 18:15:07 +00:00
Daniel Albert
6ae8298f2c
Make all ffi structs' fields public
2016-01-12 17:46:35 +00:00
Steven Fackler
86e2f81f43
Fix should_panic check
2016-01-11 23:45:12 -08:00
Steven Fackler
1865dd7374
Test nightly on travis
2016-01-11 22:38:06 -08:00
Steven Fackler
fd6454f625
Add stream panic propagation behind a nightly feature gate
2016-01-11 22:36:58 -08:00
Daniel Albert
1238405637
Make the BigNum generation from a native pointer unsafe
2016-01-09 22:09:38 +00:00
Steven Fackler
b32a50797c
Merge pull request #328 from Cyberunner23/PemRSA
...
Add support for RSA PEM files.
2016-01-09 13:08:00 -08:00
Cyberunner23
c0b9a4c8ec
Added tests for private_rsa_key_from_pem() and public_rsa_key_from_pem()
2016-01-09 14:36:01 -05:00
Steven Fackler
83ef18922f
Merge pull request #329 from bheart/send-sync-pkey
...
Mark PKey as `Send` and `Sync`
2016-01-06 21:51:39 -08:00
Will Tange
89e88727ff
Mark PKey as `Send` and `Sync`
...
Provided that the locking function is set, the underlying `ffi::EVP_KEY`
type should be safe to use across threads.
2016-01-07 06:33:25 +01:00
Cyberunner23
1d3277fbee
Added private_rsa_key_from_pem and public_rsa_key_from_pem.
2016-01-05 13:22:56 -05:00
Cyberunner23
be23ff3dce
Added PEM_read_bio_RSAPrivateKey and PEM_read_bio_RSA_PUBKEY
2016-01-05 11:23:14 -05:00
Daniel Albert
578fac7e80
Add public interface to access BigNums from RSA keys
2016-01-01 19:46:03 +00:00
Daniel Albert
5e5d24ee25
Implement the possibility to create BigNums from their ffi counterpart
2016-01-01 19:36:29 +00:00
Daniel Albert
5813ca371d
Add RSA structs
2016-01-01 19:33:49 +00:00
Marius Seritan
a7f60f4683
Update README.md.
...
Use the brew --prefix command instead of hardcoding paths.
2015-12-24 10:12:13 -08:00
Marius
bd738fa5d8
Update README.md
2015-12-24 10:12:13 -08:00
Marius
1b580e2e8d
Update README with OSX 10.11 instructions
...
These instructions are from one of the open issues on the project. They are working for me, I am not sure if there are some possible side effects from the brew link --force.
2015-12-24 10:12:13 -08:00
Steven Fackler
84c1880ed5
Update README doc link
2015-12-18 22:45:30 -08:00
Steven Fackler
ef4bfb4d5e
Merge branch 'release'
2015-12-18 22:43:05 -08:00
Steven Fackler
3fdfe56f25
Merge branch 'release-v0.7.4' into release
2015-12-18 22:41:57 -08:00
Steven Fackler
926c8167be
Release v0.7.4
2015-12-18 22:41:46 -08:00
Steven Fackler
11129aa521
Rustfmt
2015-12-18 22:34:30 -08:00
Steven Fackler
a31acdbb93
Fix deprecation location
2015-12-18 22:21:23 -08:00
Steven Fackler
4f0a7e24d1
Drop verbose flag
2015-12-18 22:20:57 -08:00
Steven Fackler
2a66e858ba
Add a script to build docs with all features enabled
2015-12-18 22:14:32 -08:00
Steven Fackler
e85b49d375
Work around the worst of clone bogusness
...
SslStream::{clone,try_clone} are inherently broken since the Ssl object
shared by both streams is only going to be talking to one stream. Stuff
like hyper depends on try_clone, so we'll leave it here for now but
minimize the brokenness to "no worse than what it used to be like".
They'll be removed in 0.8.
cc #325
2015-12-18 21:20:47 -08:00
Steven Fackler
93b388d637
Merge pull request #324 from gentoo90/deps
...
Fix Cargo.toml to actually depend on gdi32-sys and user32-sys
2015-12-18 14:10:33 -08:00
gentoo90
9436027866
Fix Cargo.toml to actually depend on gdi32-sys and user32-sys
2015-12-18 23:18:03 +02:00
Steven Fackler
8ea2c76d02
Merge branch 'release'
2015-12-17 21:26:46 -08:00
Steven Fackler
6195bd4fd8
Merge branch 'release-v0.7.3' into release
2015-12-17 21:26:06 -08:00
Steven Fackler
5fa46d428d
Release v0.7.3
2015-12-17 21:25:48 -08:00
Steven Fackler
e077ed0b4d
Disable cross compilation for now
2015-12-17 21:13:44 -08:00
Steven Fackler
053c924d5a
Fix nonblocking behavior
...
A new nonblocking socket may not have finished connecting yet, so reads
and writes can return ENOTCONNECTED which we should reinterpret into a
WantRead or WantWrite
Closes #323
2015-12-17 16:54:11 -08:00
Steven Fackler
ccab187f5a
Travis fixes
2015-12-16 23:51:19 -08:00
Steven Fackler
2cf65fc68d
Stop using manifest-path for now
...
Some ssl tests depend on the working directory being openssl
2015-12-16 23:39:29 -08:00
Steven Fackler
e7744874f4
Try cross compiling
2015-12-16 23:25:19 -08:00