Skip to content

Commit

Permalink
doc: remove OpenSSL from build instructions and licensing info
Browse files Browse the repository at this point in the history
also cleanup some stray comments
  • Loading branch information
Fuzzbawls committed May 11, 2021
1 parent 9b2e35d commit 9660aec
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion doc/build-osx.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Then install [Homebrew](https://brew.sh).
Dependencies
----------------------

brew install autoconf automake berkeley-db4 libtool boost miniupnpc openssl pkg-config python3 qt5 zmq libevent qrencode gmp libsodium rust
brew install autoconf automake berkeley-db4 libtool boost miniupnpc pkg-config python3 qt5 zmq libevent qrencode gmp libsodium rust

See [dependencies.md](dependencies.md) for a complete overview.

Expand Down
5 changes: 2 additions & 3 deletions doc/build-unix.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ These dependencies are required:

Library | Purpose | Description
------------|--------------------|----------------------
libssl | Crypto | Random Number Generation, Elliptic Curve Cryptography
libboost | Utility | Library for threading, data structures, etc
libevent | Networking | OS independent asynchronous networking
libgmp | Bignum Arithmetic | Precision arithmetic
Expand Down Expand Up @@ -72,7 +71,7 @@ Build requirements:

Now, you can either build from self-compiled [depends](/depends/README.md) or install the required dependencies:

sudo apt-get install libssl-dev libgmp-dev libevent-dev libboost-all-dev libsodium-dev cargo
sudo apt-get install libgmp-dev libevent-dev libboost-all-dev libsodium-dev cargo

BerkeleyDB is required for the wallet.

Expand Down Expand Up @@ -124,7 +123,7 @@ built by default.

Build requirements:

sudo dnf install which gcc-c++ libtool make autoconf automake compat-openssl10-devel libevent-devel boost-devel libdb4-devel libdb4-cxx-devel gmp-devel libsodium-devel cargo python3
sudo dnf install which gcc-c++ libtool make autoconf automake libevent-devel boost-devel libdb4-devel libdb4-cxx-devel gmp-devel libsodium-devel cargo python3

Optional:

Expand Down
1 change: 0 additions & 1 deletion doc/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ These are the dependencies currently used by PIVX Core. You can find instruction
| libpng | | | | | [Yes](https://github.com/pivx-project/pivx/blob/master/depends/packages/qt.mk#L64) |
| librsvg | | | | | |
| MiniUPnPc | [2.2.2](https://miniupnp.tuxfamily.org/files) | | No | | |
| OpenSSL | [1.0.1k](https://www.openssl.org/source) | | Yes | | |
| GMP | [6.1.2](https://gmplib.org/) | | No | | |
| PCRE | | | | | [Yes](https://github.com/pivx-project/pivx/blob/master/depends/packages/qt.mk#L66) |
| Python (tests) | | [3.5](https://www.python.org/downloads) | | | |
Expand Down
1 change: 0 additions & 1 deletion libbitcoinconsensus.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ Description: Library for the Bitcoin consensus protocol.
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lbitcoinconsensus
Cflags: -I${includedir}
Requires.private: libcrypto
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ std::string LicenseInfo()
"\n" +
FormatParagraph(_("Distributed under the MIT software license, see the accompanying file COPYING or <http://www.opensource.org/licenses/mit-license.php>.")) + "\n" +
"\n" +
FormatParagraph(_("This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit <https://www.openssl.org/> and cryptographic software written by Eric Young and UPnP software written by Thomas Bernard.")) +
FormatParagraph(_("This product includes UPnP software written by Thomas Bernard.")) +
"\n";
}

Expand Down
4 changes: 2 additions & 2 deletions src/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class CKey
//! Check whether the public key corresponding to this private key is (to be) compressed.
bool IsCompressed() const { return fCompressed; }

//! Initialize from a CPrivKey (serialized OpenSSL private key data).
//! Initialize from a CPrivKey (serialized secp256k1 private key data).
bool SetPrivKey(const CPrivKey& vchPrivKey, bool fCompressed);

//! Generate a new private key using a cryptographic PRNG.
Expand All @@ -106,7 +106,7 @@ class CKey
uint256 GetPrivKey_256();

/**
* Convert the private key to a CPrivKey (serialized OpenSSL private key data).
* Convert the private key to a CPrivKey (serialized secp256k1 private key data).
* This is expensive.
*/
CPrivKey GetPrivKey() const;
Expand Down
2 changes: 1 addition & 1 deletion src/libzerocoin/bignum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ CBigNum::CBigNum(const std::vector<unsigned char>& vch)
setvch(vch);
}

/** PRNGs use OpenSSL for consistency with seed initialization **/
/** PRNGs use GMP for consistency with seed initialization **/

/** Generates a cryptographically secure random number between zero and range-1 (inclusive)
* i.e. 0 <= returned number < range
Expand Down
2 changes: 1 addition & 1 deletion src/test/sanity_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BOOST_AUTO_TEST_CASE(basic_sanity)
{
BOOST_CHECK_MESSAGE(glibc_sanity_test() == true, "libc sanity test");
BOOST_CHECK_MESSAGE(glibcxx_sanity_test() == true, "stdlib sanity test");
BOOST_CHECK_MESSAGE(ECC_InitSanityCheck() == true, "openssl ECC test");
BOOST_CHECK_MESSAGE(ECC_InitSanityCheck() == true, "secp256k1 sanity test");
}

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit 9660aec

Please sign in to comment.