Commit Graph

3515 Commits

Author SHA1 Message Date
Steven Fackler f22cdfb594 Merge pull request #118 from vhbit/oibit-fix
Update to nightly: explicit Copy trait
2014-12-11 11:53:25 -05:00
Chris Cole 7a4fbc1567 Added BigNum::one(). 2014-12-11 11:04:29 -05:00
Valerii Hiora c922090075 Update to nightly: explicit Copy trait 2014-12-11 13:44:37 +02:00
Chris Cole f0de773888 Use "ffi" namespace. 2014-12-10 22:11:29 -05:00
Chris Cole fb1c815274 Merge remote-tracking branch 'upstream/master' 2014-12-10 22:09:20 -05:00
Chris Cole 33f3c966ac Added mod_word. 2014-12-10 22:08:32 -05:00
Steven Fackler ae9e2b1e25 Merge pull request #117 from Ummon/master
Add the openssl function prototype 'HMAC_CTX_cleanup'.
2014-12-10 13:37:03 -08:00
Ummon 6d2f8d67f2 Add the openssl function prototype 'HMAC_CTX_cleanup'. 2014-12-10 22:25:32 +01:00
Bruno Bigras 8c255d6dc4 Add rustlib 64-bit path in README 2014-12-10 10:07:11 -05:00
Steven Fackler 7f9658248f Merge pull request #114 from DiamondLovesYou/master
Don't forget to bump the openssl-sys dep version!
2014-12-10 01:14:40 -05:00
Richard Diamond 93c6c867e0 Don't forget to bump the openssl-sys dep version! 2014-12-10 00:04:21 -06:00
Steven Fackler 6d6ef3e747 Merge pull request #113 from DiamondLovesYou/nacl-crosses
Now that pkg-config 0.1.1 has been published, delegate bailout detection to pkg-config.
2014-12-10 00:23:10 -05:00
Richard Diamond 10e8a8f8e3 Now that pkg-config 0.1.1 has been published, delegate to bailout detection to pkg-config.
Also bump version minors for publishing. :)
2014-12-09 23:15:04 -06:00
Steven Fackler 43c9a43e2d Merge pull request #108 from DiamondLovesYou/nacl-crosses
Use locally built libreSSL if targeting NaCl instead of the host's versions.
2014-12-09 02:13:09 -05:00
Richard Diamond 0dff5268de Add a feature to openssl-sys to cause it to build a local copy of libressl for
use instead of whatever pkg-config says (which in the case of crosses, is almost
certainly incorrect). This is for PNaCl.
2014-12-09 00:04:06 -06:00
Steven Fackler 6cdd2cf577 Speed up SslStream initialization a bit 2014-12-06 11:17:46 -08:00
Steven Fackler b8a41f79a1 Merge pull request #110 from Manishearth/patch-1
Directly substitute $OPENSSL_PATH
2014-12-05 10:50:40 -05:00
Manish Goregaokar 31d188e313 Directly substitute $OPENSSL_PATH 2014-12-05 06:43:18 -08:00
Steven Fackler b91a267082 Merge pull request #109 from Manishearth/android
Allow passing in Android paths
2014-12-03 12:57:49 -08:00
Manish Goregaokar 82db54c822 Allow passing in Android paths 2014-12-03 12:49:53 -08:00
Steven Fackler 2901c279ab Fix doc test and stop doc upload 2014-12-03 09:18:53 -08:00
Steven Fackler fd680e8a33 Release v0.2.2 2014-12-01 13:23:43 -08:00
Chris Cole 5f76f1cb62 Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/bn/mod.rs
2014-11-29 19:47:09 -05:00
Chris Cole ff04805497 Added mod_mul. 2014-11-29 19:40:48 -05:00
Steven Fackler c3603b0db0 Make SslStream Cloneable
Closes #6
2014-11-29 11:06:16 -08:00
Steven Fackler ad109a25be Release 0.2.1 2014-11-28 15:49:12 -08:00
Steven Fackler 72ca8433f5 Add MaybeSslStream 2014-11-28 15:43:58 -08:00
Steven Fackler 08d1f2e629 Drop execute bit on file 2014-11-28 14:04:33 -08:00
Steven Fackler 4bf953bc2b Bump to 0.2
Also removed the PNaCl support. It hasn't worked anyway in a while since
the pnacl-libressl-sys library doesn't have any of the FFI bindings and
makes openssl's Cargo.toml a mess.

This is a minor version bump since Hasher's API changed
2014-11-27 21:35:39 -08:00
Steven Fackler f1e37f477c Fix windows dependencies 2014-11-27 21:25:19 -08:00
Steven Fackler 74171f6bd0 Add openssl-sys dependency on windows 2014-11-27 20:03:19 -08:00
Steven Fackler 4e379ec84a Fix to pkg-config 0.1 2014-11-27 15:37:07 -08:00
Steven Fackler 5340344a5c Merge pull request #99 from gkoz/context_reuse
Hasher: static contract checking, context reuse
2014-11-26 11:44:16 -08:00
Gleb Kozyrev 5fafe4fc60 Hasher: static contract checking, context reuse
- Store EVP_MD_CTX in a separate struct.
- Add with_context() constructor that uses an existing context.
- Switch to EVP_Digest(Init|Final)_ex for efficient context reuse.
- Make update() borrow &mut self.
- Make finalize() consume self. Add finalize_reuse() that also returns the
context which can be passed to from_context() constructor for reuse.

These changes let the type system prevent illegal calls to update() and
finalize().
2014-11-26 21:38:06 +02:00
Steven Fackler d1a733dfaa Bump to 0.1.1 2014-11-26 08:49:50 -08:00
Steven Fackler ccb134e320 Merge pull request #105 from andor44/master
Sync is now part of the standard library
2014-11-26 08:45:47 -08:00
Andor Uhlár 762331eb2b Sync is now part of the standard library 2014-11-26 16:04:10 +01:00
Steven Fackler 525394d308 Bump to 0.1.0 2014-11-25 16:46:57 -08:00
Steven Fackler a7a9ef7eaa Allow access to the underlying stream
The use case here is to allow methods like `set_read_timeout` to be
called.
2014-11-25 16:44:42 -08:00
Steven Fackler f71555e820 Fix deprecation warning 2014-11-24 13:09:16 -08:00
Steven Fackler e87639893d Merge pull request #104 from jmesmon/sys
Add get_peer_certificate() and a few ffi methods
2014-11-24 16:05:10 -05:00
Cody P Schafer fd14cc77f3 ssl: add get_peer_certificate() 2014-11-24 15:48:08 -05:00
Cody P Schafer c6696eb029 sys: add SSL_get_peer_certificate() 2014-11-24 15:40:48 -05:00
Cody P Schafer 9951cb2bda sys: add some methods for dealing with x509 certs 2014-11-24 15:38:25 -05:00
Cody P Schafer 381a9b6e51 sys (and bn): make CRYPTO_free() take a *mut c_void insead of a *const c_char
CRYPTO_free() ends up being used for a variety of types of data, not just
c_char. And it essentially takes full ownership of the type, making
*mut appropriate.

With this change it also more closely (exactly) matches the C defintion:
	void CRYPTO_free(void *ptr);
2014-11-24 15:38:04 -05:00
Steven Fackler b7c88101f5 Add more crate metadata 2014-11-22 15:46:11 -08:00
Steven Fackler 178d0f0c8e Update stuff for upload to registry 2014-11-22 14:57:13 -08:00
Steven Fackler b084ddc7b0 Add license and description 2014-11-21 22:21:37 -08:00
Steven Fackler efa7121243 Merge pull request #102 from vhbit/fix-neg-serials
Fix negative serials on generated certs
2014-11-21 09:08:24 -08:00
Valerii Hiora e9e60fe3f3 Fix negative serials on generated certs
required for compatibility with Go crypto
2014-11-21 18:34:10 +02:00