-
Notifications
You must be signed in to change notification settings - Fork 83
Bumped secrecy crate from 0.8.0 to 0.10.3 #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bumped secrecy crate from 0.8.0 to 0.10.3 #287
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like the update was quite easy in the end. Ack for the change. Inline comment only for the readme, but I am not a mac user.
INSTALL_NOTES.md
Outdated
```bash | ||
$ cd ~/code | ||
$ gh repo clone softhsm/SoftHSMv2 | ||
$ brew install automake cppunit | ||
$ brew reinstall autoconf automake | ||
$ export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/cppunit/include" | ||
$ export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib -L/opt/homebrew/opt/cppunit/lib" | ||
$ mkdir -p ~/softhsm2/tokens | ||
$ echo "directories.tokendir = $HOME/softhsm2/tokens" > ~/softhsm2/softhsm2.conf | ||
$ export SOFTHSM2_CONF=$HOME/softhsm2/softhsm2.conf | ||
$ ./src/bin/util/softhsm2-util --init-token --slot 0 --label "TestToken" --so-pin abcdef --pin fedcba --module ./src/lib/.libs/libsofthsm2.so | ||
$ vi openssl.cnf | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes me wonder whey the softhsm was not installed directly from brew? Is the package there broken in some way? Or what would be the reason not to use the brew provided version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha! @Jakuje , I didn't even thing about installing from brew! I just tried to build it from source. Damn, that probably would have saved me some time.
You can fix the sign-off via |
- Modified cryptoki/Cargo.toml to bump version. - Added INSTALL_NOTES.md to start capturing installation notes for specific development environments. - Changed deprecated SecretVec<u8> to SecretBox<Vec<u8>>. - Grammar fixes. Signed-off-by: Todd Decker <[email protected]>
707a7b2
to
b29c6a5
Compare
To clarify, I am ok with the changes to the code, but I am not sure if we need the documentation, given that it can be replaced with a oneliner "install softhsm from brew". |
No worries, @Jakuje . I'll drop that file |
Signed-off-by: Todd Decker <[email protected]>
70a9105
to
e783630
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Thanks!
Bumped secrecy crate from 0.8.8 to 0.10.3.
Addresses issue Update Secrecy Crate.
The change secrecy from 0.8.0 to 0.10.3 is a minor breaking change. To correct for this, a single line change was needed in
cryptoki/src/types.rs
L283 to change:to
The other changes included in this PR are mainly cosmetic. Specifically: