Commit Graph

1978 Commits

Author SHA1 Message Date
Steven Fackler fd62d146ac Drop x86 macOS build
It's not supported by Homebrew anymore and it's not clear that anyone
really cares about that target at all.
2017-05-06 20:03:47 -07:00
Steven Fackler 1fa7397b88 Set LD_LIBRARY_PATH when using custom build 2017-05-06 18:50:44 -07:00
Steven Fackler 67b5fd1c97 Support public key decode from DER
Closes #629
2017-05-06 16:40:33 -07:00
Steven Fackler 0efef98848 Add a note to rename variant 2017-05-06 16:35:55 -07:00
Steven Fackler 78c82fa3ee Merge pull request #627 from jethrogb/patch-1
Clarify use of ssl::HandshakeError::Interrupted
2017-05-03 12:19:36 -07:00
jethrogb dd3896fdc5 Clarify use of ssl::HandshakeError::Interrupted 2017-05-03 12:03:18 -07:00
Steven Fackler 2fd7354c38 Merge pull request #618 from sfackler/sha
Expose the lower level SHA functions
2017-04-15 10:05:13 -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
Steven Fackler fd6a1f70bd Merge pull request #616 from sfackler/no-alloc
Don't force allocation for message digests
2017-04-13 19:37:11 -07:00
Steven Fackler 4cf9f6c4c0 Don't force allocation for message digests 2017-04-13 19:02:31 -07:00
Steven Fackler 174617340a Merge pull request #615 from ajroetker/issue-600/avoid_compiling_ec_code_against_no-ec2m_openssl
(issues-600) Avoid compiling ec code against no-ec2m openssl
2017-04-13 16:17:09 -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
Steven Fackler 3439ec6f41 Merge pull request #613 from aosmond/add_evp_pkey_derive
Add new EC/PKEY methods to permit deriving shared secrets.
2017-04-11 10:04:57 -07:00
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