Skip to content

Commit

Permalink
windows bash shell - OpenSSL setup (main --> ce/main)
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//dev/coherence-ce/main/": change = 85602]
  • Loading branch information
fryp committed Mar 26, 2021
1 parent 1fdee00 commit 3ab8610
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .p4ignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#
# Copyright (c) 2000, 2020, Oracle and/or its affiliates.
# Copyright (c) 2000, 2021, Oracle and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.
#

# Directory for auto-downloaded JDK
jdk/

# Directory for auto-downloaded OpenSSL on Windows
openssl/
22 changes: 19 additions & 3 deletions bin/cfgwindows.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

#
# Copyright (c) 2000, 2020, Oracle and/or its affiliates.
# Copyright (c) 2000, 2021, Oracle and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.
#

#
Expand All @@ -28,6 +28,11 @@ function get_java_home
echo Not Supported
}

function get_openssl_home
{
echo Not Supported
}

# determine the scripts directory, assuming all scripts are in the same directory
SCRIPT_PATH="${BASH_SOURCE[0]}"
while [ -h "${SCRIPT_PATH}" ]; do
Expand All @@ -50,5 +55,16 @@ fi

source $SCRIPTS_DIR/cfgcommon.sh

# configure OpenSSL for building test certificates
if [ -z $OPENSSL_HOME ]; then
OPENSSL_HOME=`eval get_openssl_home`
echo OPENSSL_HOME evaluated to $OPENSSL_HOME
fi

export PATH=${OPENSSL_HOME}:${PATH}
export OPENSSL_CONF=${OPENSSL_HOME}/openssl.cnf
echo openssl: `which openssl`
openssl version

unset SCRIPT_PATH
unset SCRIPTS_DIR

0 comments on commit 3ab8610

Please sign in to comment.