Commit Graph

1764 Commits

Author SHA1 Message Date
Andrew Osmond e6a6ebb87d Add new EC/PKEY methods to permit deriving shared secrets. 2017-04-10 15:40:36 -04:00
Steven Fackler fc1bcecfc1 Don't exclude test data from package
Closes #612
2017-04-04 09:06:32 -07:00
Steven Fackler 73d4743a80 Merge pull request #611 from ignatenkobrain/patch-1
bump bitflags to 0.8
2017-04-03 14:47:15 -07:00
Igor Gnatenko af25627fdf bump bitflags to 0.8 2017-04-03 23:04:23 +02:00
Steven Fackler 4f9da8dfc9 Merge pull request #608 from BusyJay/master
show help message when pkg-config is missing
2017-03-29 09:16:13 -07: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 ba2460d38d Merge pull request #606 from cjcole/master
Fix order of arguments to BN_rand_range and BN_pseudo_rand_range
2017-03-26 05:01:29 +01:00
Steven Fackler d66d84b2f5 Merge pull request #607 from sfackler/set-session
Logic to support client-side session reuse
2017-03-26 04:35:02 +01:00
Steven Fackler c8d1698f27 Logic to support client-side session reuse 2017-03-25 19:30:01 -07:00
Chris Cole d239e04c70 Fix order of arguments to BN_rand_range and BN_pseudo_rand_range 2017-03-25 12:29:18 -04:00
Steven Fackler 3aec0a38bf Merge pull request #601 from pgerber/double_unlock
Panic if lock managed by `locking_function` is doubly unlocked
2017-03-17 11:32:02 -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
Steven Fackler 7f2a8671d8 Merge pull request #598 from ajroetker/maint/recreate_ability_to_pass_in_OPENSSL_LIBS
(maint) Recreate ability to pass in OPENSSL_LIBS variable
2017-03-14 10:30:08 -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 efe96396ad Merge pull request #592 from Byron/master
Fix for len() == isize::max() for stacks that are unallocated
2017-03-09 20:28:42 +11:00
Sebastian Thiel 463db85110 Don't allow Stacks to be allocated with a null-ptr
The latter must be seen as undefined behaviour, as it will cause
the `sk_num` function to return -1 to indicate the error, which
causes all kinds of issues.

Thus there now is a panic to abort the program if stacks are initialized
with a null-ptr, and special handling of that case when decoding
a Pkcs file.
2017-03-07 07:39:25 +01:00
Steven Fackler 97536a9b82 Merge pull request #585 from bluejekyll/master
some helpful documentation and example on set_subject_name()
2017-03-07 13:19:52 +11:00
Sebastian Thiel ec2685347c Fix for empty stacks
The culprit is that `sk_num(stack)` can return -1
as c_int if there is no stack allocated.

Previously, thanks to unsafe casts, this would result in
a isize::max() for len() and iteration size if there was no stack.

Now this case is handled specifically, which fixes the issue.
2017-03-06 10:14:39 +01:00
Sebastian Thiel f92ac2477b Add test to run into issue with stack.len() 2017-03-06 09:59:00 +01:00
Steven Fackler 357b994fac Merge pull request #591 from cjcole/master
Fix Shr trait impl for BigNum: was using shl
2017-03-01 08:55:38 -08:00
Chris Cole bf21ff5f80 Fix Shr trait impl for BigNum: was using shl 2017-03-01 11:24:11 -05:00
Steven Fackler 509d0a3102 Fix dangling reference 2017-02-25 16:00:16 -08:00
Steven Fackler 7d9039c37b License all future contributions properly 2017-02-25 15:58:13 -08:00
Benjamin Fry b431896057 mention the common fields 2017-02-22 22:05:39 -08:00
Steven Fackler e936301edd Merge pull request #587 from sfackler/scrypt
scrypt support
2017-02-22 15:19:30 -08:00
Steven Fackler 81362a4e79 scrypt support
Closes #586
2017-02-21 21:15:52 -08:00
Benjamin Fry 9b24698aee some helpful documentation and example. 2017-02-20 14:48:49 -08:00
Steven Fackler b5b0a2ec66 Merge pull request #584 from sfackler/more-error-info
Expose more error information
2017-02-19 16:34:56 -08:00
Steven Fackler 268288337b Expose more error information 2017-02-19 16:05:58 -08:00
Steven Fackler 618cc70d19 Add a fixme to drop const prefixes 2017-02-19 14:24:05 -08:00
Steven Fackler e42f3a5d91 Merge pull request #583 from SilverWingedSeraph/patch-1
Add note about needing pkg-config
2017-02-19 13:07:32 -08:00
Leo Tindall 3266e143ce Add note about needing pkg-config
I didn't have it and it took me a bit to figure out what the problem was.
2017-02-19 15:02:31 -06:00
Steven Fackler 710a30bb40 Tweaks 2017-02-18 21:58:38 -08:00
Steven Fackler 5122b92f56 Merge pull request #582 from bluejekyll/master
add set_verify_cert_store() to ssl ctx
2017-02-16 21:26:26 -08:00
Benjamin Fry 88740c1374 add Ok to result 2017-02-16 19:59:02 -08:00
Benjamin Fry 933f660c69 Merge branch 'master' of github.com:bluejekyll/rust-openssl 2017-02-16 19:52:29 -08:00
Benjamin Fry 323a646383 only forget in non-error condition 2017-02-16 19:50:58 -08:00
Benjamin Fry eef5b5d2ac review fixes: reorder forget() 2017-02-16 19:49:14 -08:00
Benjamin Fry ce2cfc56a6 fix versions for sys as well 2017-02-16 19:49:14 -08:00
Benjamin Fry d080c10910 fix cfg options for v102 and v110 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 e18d000f32 Update 1.1.0 version 2017-02-16 08:55:31 -08:00
Benjamin Fry b2e150bf3c review fixes: reorder forget() 2017-02-16 08:14:03 -08:00
Benjamin Fry 2c3a4a4497 fix versions for sys as well 2017-02-14 23:58:05 -08:00
Benjamin Fry c3957bf6fb fix cfg options for v102 and v110 2017-02-14 23:50:34 -08:00
Benjamin Fry a3ea99672b add set_verify_cert_store() to ssl ctx 2017-02-14 23:19:30 -08:00
Steven Fackler 8d290a5371 De-quote README line 2017-02-14 21:34:43 -08:00