diff options
| author | Brent Cook <busterb@gmail.com> | 2020-06-12 09:43:11 -0500 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2020-06-15 21:22:18 -0500 |
| commit | fd208a54936fd8212e91e71a54c1d48b14b37156 (patch) | |
| tree | 816fb04090233643459531fb38c17aca0ea63622 | |
| parent | 61a1f6a57b9a324047c00410cc98c387df8c455d (diff) | |
| download | portable-fd208a54936fd8212e91e71a54c1d48b14b37156.tar.gz portable-fd208a54936fd8212e91e71a54c1d48b14b37156.tar.bz2 portable-fd208a54936fd8212e91e71a54c1d48b14b37156.zip | |
add possibility to override upstream opensslv.h with a local version
| -rwxr-xr-x | update.sh | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -137,7 +137,13 @@ 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 patches/opensslv.h ]; then | ||
| 142 | $CP patches/opensslv.h include/openssl | ||
| 143 | else | ||
| 144 | $CP $libcrypto_src/opensslv.h include/openssl | ||
| 145 | fi | ||
| 146 | |||
| 141 | awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION | 147 | awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION |
| 142 | echo "LibreSSL version `cat VERSION`" | 148 | echo "LibreSSL version `cat VERSION`" |
| 143 | 149 | ||
