diff options
author | Brent Cook <busterb@gmail.com> | 2020-06-12 09:43:11 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2020-06-12 09:43:11 -0500 |
commit | 06074baba508a55dc3e508533f45224f2e8c9cf2 (patch) | |
tree | 86a8f3736754df7632507e0e9a0890446549e4c4 | |
parent | c83a3bbd721b18e3c2a0ececbfb30db3098ac617 (diff) | |
download | portable-06074baba508a55dc3e508533f45224f2e8c9cf2.tar.gz portable-06074baba508a55dc3e508533f45224f2e8c9cf2.tar.bz2 portable-06074baba508a55dc3e508533f45224f2e8c9cf2.zip |
add possibility to override upstream opensslv.h with a local version
-rwxr-xr-x | update.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -137,7 +137,11 @@ copy_hdrs $libcrypto_src "stack/stack.h lhash/lhash.h stack/safestack.h | |||
137 | 137 | ||
138 | copy_hdrs $libssl_src "srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h" | 138 | copy_hdrs $libssl_src "srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h" |
139 | 139 | ||
140 | $CP $libcrypto_src/opensslv.h include/openssl | 140 | # override upstream opensslv.h if a local version exists |
141 | if [ ! -f include/openssl/opensslv.h ]; then | ||
142 | $CP $libcrypto_src/opensslv.h include/openssl | ||
143 | fi | ||
144 | |||
141 | awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION | 145 | awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION |
142 | echo "LibreSSL version `cat VERSION`" | 146 | echo "LibreSSL version `cat VERSION`" |
143 | 147 | ||