Skip to content

Commit d91af47

Browse files
committed
Merge #17165: Remove BIP70 support
8c6081a compat: remove bswap_* check on macOS (fanquake) 2cba35a build: skip building OpenSSL lib_ssl (fanquake) 45a2d3c build: remove OpenSSL from Qt build (fanquake) befbc40 build: remove EVP_MD_CTX_new detection (fanquake) fcee10c build: remove SSL lib detection (fanquake) c7f30db gui: Update BIP70 support message (fanquake) a3e8103 build: remove BIP70 entries from macOS Info.plist (fanquake) 72fe13a gui: remove payment request file handling from OpenURI dialog (fanquake) 3548e4a Remove BIP70 Support (fanquake) 1cb9a4e docs: remove protobuf from docs (fanquake) 67328bb build: remove protobuf from depends (fanquake) Pull request description: This removes [BIP70](https://github.com/bitcoin/bips/blob/master/bip-0070.mediawiki) support. It also removes OpenSSL linking from Qt and building OpenSSLs `lib_ssl` in depends, as well as SSL lib detection from the build system. It's something that I'd optimistically like to do for `0.20.0`. ACKs for top commit: laanwj: Code review ACK 8c6081a MarcoFalke: ACK 8c6081a fjahr: ACK 8c6081a Tree-SHA512: 9dd9153afa4eca1a795f983e5b31f5fee9fa9a064c2a95d2f98810689add3ad0bf221c4608282299e66e4d1ec31cd556d4b16eea55de7912c3b9931f64735883
2 parents 25d7e2e + 8c6081a commit d91af47

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+38
-2114
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
FILE_ENV="./ci/test/00_setup_env_win64.sh"
105105
106106
- stage: test
107-
name: '32-bit + dash [GOAL: install] [GUI: BIP70 enabled]'
107+
name: '32-bit + dash [GOAL: install] [gui]'
108108
env: >-
109109
FILE_ENV="./ci/test/00_setup_env_i686.sh"
110110
@@ -145,7 +145,7 @@ jobs:
145145
FILE_ENV="./ci/test/00_setup_env_mac.sh"
146146
147147
- stage: test
148-
name: 'macOS 10.14 native [GOAL: install] [GUI: BIP70 enabled] [no depends]'
148+
name: 'macOS 10.14 native [GOAL: install] [GUI] [no depends]'
149149
os: osx
150150
# Use the most recent version:
151151
# Xcode 11, macOS 10.14, JDK 12.0.1

build_msvc/bitcoin_config.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@
9898
*/
9999
#define HAVE_DECL_DAEMON 0
100100

101-
/* Define to 1 if you have the declaration of `EVP_MD_CTX_new', and to 0 if
102-
you don't. */
103-
//#define HAVE_DECL_EVP_MD_CTX_NEW 1
104-
105101
/* Define to 1 if you have the declaration of `htobe16', and to 0 if you
106102
don't. */
107103
#define HAVE_DECL_HTOBE16 0

ci/test/00_setup_env_i686.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
export LC_ALL=C.UTF-8
88

99
export HOST=i686-pc-linux-gnu
10-
export DEP_OPTS="PROTOBUF=1"
1110
export PACKAGES="g++-multilib python3-zmq"
1211
export GOAL="install"
13-
export BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-bip70 --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++"
12+
export BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++"
1413
export CONFIG_SHELL="/bin/dash"

ci/test/00_setup_env_mac_host.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
export LC_ALL=C.UTF-8
88

99
export HOST=x86_64-apple-darwin14
10-
export BREW_PACKAGES="automake berkeley-db4 libtool boost miniupnpc pkg-config protobuf qt qrencode python3 ccache zeromq"
10+
export BREW_PACKAGES="automake berkeley-db4 libtool boost miniupnpc pkg-config qt qrencode python3 ccache zeromq"
1111
export PIP_PACKAGES="zmq"
1212
export RUN_CI_ON_HOST=true
1313
export RUN_UNIT_TESTS=true
1414
export RUN_FUNCTIONAL_TESTS=false
1515
export GOAL="install"
16-
export BITCOIN_CONFIG="--enable-gui --enable-bip70 --enable-reduce-exports --enable-werror"
16+
export BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --enable-werror"
1717
# Run without depends
1818
export NO_DEPENDS=1
1919
export OSX_SDK=""

configure.ac

Lines changed: 5 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,16 @@ AC_ARG_ENABLE([zmq],
226226
[disable ZMQ notifications])],
227227
[use_zmq=$enableval],
228228
[use_zmq=yes])
229+
229230
AC_ARG_ENABLE([bip70],
230231
[AS_HELP_STRING([--enable-bip70],
231-
[enable BIP70 (payment protocol) support in the GUI (default is to disable)])],
232+
[BIP70 (payment protocol) support in the GUI (no longer supported)])],
232233
[enable_bip70=$enableval],
233234
[enable_bip70=no])
234235

235-
AC_ARG_WITH([protoc-bindir],[AS_HELP_STRING([--with-protoc-bindir=BIN_DIR],[specify protoc bin path])], [protoc_bin_path=$withval], [])
236+
if test x$enable_bip70 != xno; then
237+
AC_MSG_ERROR([BIP70 is no longer supported!])
238+
fi
236239

237240
AC_ARG_ENABLE(man,
238241
[AS_HELP_STRING([--disable-man],
@@ -1237,11 +1240,7 @@ if test x$use_pkgconfig = xyes; then
12371240
m4_ifdef(
12381241
[PKG_CHECK_MODULES],
12391242
[
1240-
PKG_CHECK_MODULES([SSL], [libssl],, [AC_MSG_ERROR(openssl not found.)])
12411243
PKG_CHECK_MODULES([CRYPTO], [libcrypto],,[AC_MSG_ERROR(libcrypto not found.)])
1242-
if test x$enable_bip70 != xno; then
1243-
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([PROTOBUF], [protobuf], [have_protobuf=yes], [have_protobuf=no])])
1244-
fi
12451244
if test x$use_qr != xno; then
12461245
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([QR], [libqrencode], [have_qrencode=yes], [have_qrencode=no])])
12471246
fi
@@ -1267,9 +1266,6 @@ else
12671266
AC_CHECK_HEADER([openssl/crypto.h],,AC_MSG_ERROR(libcrypto headers missing))
12681267
AC_CHECK_LIB([crypto], [main],CRYPTO_LIBS=-lcrypto, AC_MSG_ERROR(libcrypto missing))
12691268

1270-
AC_CHECK_HEADER([openssl/ssl.h],, AC_MSG_ERROR(libssl headers missing),)
1271-
AC_CHECK_LIB([ssl], [main],SSL_LIBS=-lssl, AC_MSG_ERROR(libssl missing))
1272-
12731269
if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests != xnononono; then
12741270
AC_CHECK_HEADER([event2/event.h],, AC_MSG_ERROR(libevent headers missing),)
12751271
AC_CHECK_LIB([event],[main],EVENT_LIBS=-levent,AC_MSG_ERROR(libevent missing))
@@ -1301,22 +1297,12 @@ else
13011297
esac
13021298
fi
13031299

1304-
if test x$enable_bip70 != xno; then
1305-
BITCOIN_QT_CHECK(AC_CHECK_LIB([protobuf] ,[main],[PROTOBUF_LIBS=-lprotobuf], [have_protobuf=no]))
1306-
fi
13071300
if test x$use_qr != xno; then
13081301
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])])
13091302
BITCOIN_QT_CHECK([AC_CHECK_HEADER([qrencode.h],, have_qrencode=no)])
13101303
fi
13111304
fi
13121305

1313-
save_CXXFLAGS="${CXXFLAGS}"
1314-
CXXFLAGS="${CXXFLAGS} ${CRYPTO_CFLAGS} ${SSL_CFLAGS}"
1315-
AC_CHECK_DECLS([EVP_MD_CTX_new],,,[AC_INCLUDES_DEFAULT
1316-
#include <openssl/x509_vfy.h>
1317-
])
1318-
CXXFLAGS="${save_CXXFLAGS}"
1319-
13201306
dnl RapidCheck property-based testing
13211307

13221308
enable_property_tests=no
@@ -1381,12 +1367,6 @@ AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$need_bundled_univalue = xyes])
13811367
AC_SUBST(UNIVALUE_CFLAGS)
13821368
AC_SUBST(UNIVALUE_LIBS)
13831369

1384-
1385-
if test x$have_protobuf != xno &&
1386-
test x$enable_bip70 != xno; then
1387-
BITCOIN_QT_PATH_PROGS([PROTOC], [protoc],$protoc_bin_path)
1388-
fi
1389-
13901370
AC_MSG_CHECKING([whether to build bitcoind])
13911371
AM_CONDITIONAL([BUILD_BITCOIND], [test x$build_bitcoind = xyes])
13921372
AC_MSG_RESULT($build_bitcoind)
@@ -1508,23 +1488,6 @@ if test x$bitcoin_enable_qt != xno; then
15081488
else
15091489
AC_MSG_RESULT([no])
15101490
fi
1511-
1512-
AC_MSG_CHECKING([whether to build BIP70 support])
1513-
if test x$have_protobuf = xno; then
1514-
if test x$enable_bip70 = xyes; then
1515-
AC_MSG_ERROR(protobuf missing)
1516-
fi
1517-
enable_bip70=no
1518-
AC_MSG_RESULT(no)
1519-
else
1520-
if test x$enable_bip70 != xno; then
1521-
AC_DEFINE([ENABLE_BIP70],[1],[Define if BIP70 support should be compiled in])
1522-
enable_bip70=yes
1523-
AC_MSG_RESULT([yes])
1524-
else
1525-
AC_MSG_RESULT([no])
1526-
fi
1527-
fi
15281491
fi
15291492

15301493
AM_CONDITIONAL([ENABLE_ZMQ], [test "x$use_zmq" = "xyes"])
@@ -1557,7 +1520,6 @@ AM_CONDITIONAL([ENABLE_TESTS],[test x$BUILD_TEST = xyes])
15571520
AM_CONDITIONAL([ENABLE_FUZZ],[test x$enable_fuzz = xyes])
15581521
AM_CONDITIONAL([ENABLE_QT],[test x$bitcoin_enable_qt = xyes])
15591522
AM_CONDITIONAL([ENABLE_QT_TESTS],[test x$BUILD_TEST_QT = xyes])
1560-
AM_CONDITIONAL([ENABLE_BIP70],[test x$enable_bip70 = xyes])
15611523
AM_CONDITIONAL([ENABLE_BENCH],[test x$use_bench = xyes])
15621524
AM_CONDITIONAL([USE_QRCODE], [test x$use_qr = xyes])
15631525
AM_CONDITIONAL([USE_LCOV],[test x$use_lcov = xyes])
@@ -1623,11 +1585,9 @@ AC_SUBST(LEVELDB_TARGET_FLAGS)
16231585
AC_SUBST(MINIUPNPC_CPPFLAGS)
16241586
AC_SUBST(MINIUPNPC_LIBS)
16251587
AC_SUBST(CRYPTO_LIBS)
1626-
AC_SUBST(SSL_LIBS)
16271588
AC_SUBST(EVENT_LIBS)
16281589
AC_SUBST(EVENT_PTHREADS_LIBS)
16291590
AC_SUBST(ZMQ_LIBS)
1630-
AC_SUBST(PROTOBUF_LIBS)
16311591
AC_SUBST(QR_LIBS)
16321592
AC_CONFIG_FILES([Makefile src/Makefile doc/man/Makefile share/setup.nsi share/qt/Info.plist test/config.ini])
16331593
AC_CONFIG_FILES([contrib/devtools/split-debug.sh],[chmod +x contrib/devtools/split-debug.sh])
@@ -1682,7 +1642,6 @@ echo "Options used to compile and link:"
16821642
echo " with wallet = $enable_wallet"
16831643
echo " with gui / qt = $bitcoin_enable_qt"
16841644
if test x$bitcoin_enable_qt != xno; then
1685-
echo " with bip70 = $enable_bip70"
16861645
echo " with qr = $use_qr"
16871646
fi
16881647
echo " with zmq = $use_zmq"

contrib/bitcoind.bash-completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _bitcoind() {
1515
_get_comp_words_by_ref -n = cur prev words cword
1616

1717
case "$cur" in
18-
-conf=*|-pid=*|-loadblock=*|-rootcertificates=*|-rpccookiefile=*|-wallet=*)
18+
-conf=*|-pid=*|-loadblock=*|-rpccookiefile=*|-wallet=*)
1919
cur="${cur#*=}"
2020
_filedir
2121
return 0

depends/Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ WORK_PATH = $(BASEDIR)/work
99
BASE_CACHE ?= $(BASEDIR)/built
1010
SDK_PATH ?= $(BASEDIR)/SDKs
1111
NO_QT ?=
12-
PROTOBUF ?=
1312
RAPIDCHECK ?=
1413
NO_WALLET ?=
1514
NO_ZMQ ?=
@@ -101,17 +100,11 @@ wallet_packages_$(NO_WALLET) = $(wallet_packages)
101100
upnp_packages_$(NO_UPNP) = $(upnp_packages)
102101
zmq_packages_$(NO_ZMQ) = $(zmq_packages)
103102

104-
protobuf_packages_$(PROTOBUF) = $(protobuf_packages)
105103
rapidcheck_packages_$(RAPIDCHECK) = $(rapidcheck_packages)
106104

107105
packages += $($(host_arch)_$(host_os)_packages) $($(host_os)_packages) $(qt_packages_) $(wallet_packages_) $(upnp_packages_)
108106
native_packages += $($(host_arch)_$(host_os)_native_packages) $($(host_os)_native_packages)
109107

110-
ifeq ($(protobuf_packages_),)
111-
native_packages += $(protobuf_native_packages)
112-
packages += $(protobuf_packages)
113-
endif
114-
115108
ifneq ($(zmq_packages_),)
116109
packages += $(zmq_packages)
117110
endif
@@ -157,7 +150,6 @@ $(host_prefix)/share/config.site : config.site.in $(host_prefix)/.stamp_$(final_
157150
-e 's|@allow_host_packages@|$(ALLOW_HOST_PACKAGES)|' \
158151
-e 's|@no_qt@|$(NO_QT)|' \
159152
-e 's|@no_zmq@|$(NO_ZMQ)|' \
160-
-e 's|@enable_bip70@|$(PROTOBUF)|' \
161153
-e 's|@no_wallet@|$(NO_WALLET)|' \
162154
-e 's|@no_upnp@|$(NO_UPNP)|' \
163155
-e 's|@debug@|$(DEBUG)|' \

depends/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ The following can be set when running make: make FOO=bar
7777
NO_UPNP: Don't download/build/cache packages needed for enabling upnp
7878
DEBUG: disable some optimizations and enable more runtime checking
7979
RAPIDCHECK: build rapidcheck (experimental, requires cmake)
80-
PROTOBUF: build protobuf (used for deprecated BIP70 support)
8180
HOST_ID_SALT: Optional salt to use when generating host package ids
8281
BUILD_ID_SALT: Optional salt to use when generating build package ids
8382

depends/config.site.in

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ fi
1616
if test -z $with_qt_bindir && test -z "@no_qt@"; then
1717
with_qt_bindir=$depends_prefix/native/bin
1818
fi
19-
if test -z $with_protoc_bindir && test -z "@no_qt@"; then
20-
with_protoc_bindir=$depends_prefix/native/bin
21-
fi
22-
2319

2420
if test -z $enable_wallet && test -n "@no_wallet@"; then
2521
enable_wallet=no
@@ -37,10 +33,6 @@ if test -z $enable_zmq && test -n "@no_zmq@"; then
3733
enable_zmq=no
3834
fi
3935

40-
if test -n $enable_bip70 && test -n "@enable_bip70@"; then
41-
enable_bip70=yes
42-
fi
43-
4436
if test x@host_os@ = xdarwin; then
4537
BREW=no
4638
PORT=no

depends/packages/native_protobuf.mk

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)