Skip to content

Commit

Permalink
Update default OpenSSL versions in examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Mar 26, 2023
1 parent eb664b4 commit 9692ecf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/android/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ARG ANDROID_NDK_VERSION=23.2.8568313
COPY ./check-environment.sh ./fetch-sdk.sh ./
RUN ./fetch-sdk.sh SDK "$ANDROID_NDK_VERSION"

ARG OPENSSL_VERSION=OpenSSL_1_1_1q
ARG OPENSSL_VERSION=OpenSSL_1_1_1t
COPY ./build-openssl.sh ./
RUN ./build-openssl.sh SDK "$ANDROID_NDK_VERSION" openssl "$OPENSSL_VERSION"

Expand Down
2 changes: 1 addition & 1 deletion example/android/build-openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ANDROID_SDK_ROOT=${1:-SDK}
ANDROID_NDK_VERSION=${2:-23.2.8568313}
OPENSSL_INSTALL_DIR=${3:-third-party/openssl}
OPENSSL_VERSION=${4:-OpenSSL_1_1_1q} # openssl-3.0.5
OPENSSL_VERSION=${4:-OpenSSL_1_1_1t} # openssl-3.1.0

if [ ! -d "$ANDROID_SDK_ROOT" ] ; then
echo "Error: directory \"$ANDROID_SDK_ROOT\" doesn't exist. Run ./fetch-sdk.sh first, or provide a valid path to Android SDK."
Expand Down
2 changes: 1 addition & 1 deletion example/web/build-openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cd $(dirname $0)

emconfigure true 2> /dev/null || { echo 'emconfigure not found. Install emsdk and add emconfigure and emmake to PATH environment variable. See instruction at https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html. Do not forget to add `emconfigure` and `emmake` to the PATH environment variable via `emsdk/emsdk_env.sh` script.'; exit 1; }

OPENSSL=OpenSSL_1_1_0j
OPENSSL=OpenSSL_1_1_0l
if [ ! -f $OPENSSL.tar.gz ]; then
echo "Downloading OpenSSL sources..."
wget https://github.com/openssl/openssl/archive/$OPENSSL.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion example/web/build-tdlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ OPENSSL_OPTIONS="-DOPENSSL_FOUND=1 \
-DOPENSSL_CRYPTO_LIBRARY=\"$OPENSSL_CRYPTO_LIBRARY\" \
-DOPENSSL_SSL_LIBRARY=\"$OPENSSL_SSL_LIBRARY\" \
-DOPENSSL_LIBRARIES=\"$OPENSSL_SSL_LIBRARY;$OPENSSL_CRYPTO_LIBRARY\" \
-DOPENSSL_VERSION=\"1.1.0j\""
-DOPENSSL_VERSION=\"1.1.0l\""

cd build/generate
cmake $TD_ROOT || exit 1
Expand Down

0 comments on commit 9692ecf

Please sign in to comment.