-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows: add .bat scripts for running X509 and ProviderTest example
- Loading branch information
Showing
4 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
:: ----------------------------------------------------------------------------- | ||
:: Build Configuration | ||
:: ----------------------------------------------------------------------------- | ||
|
||
:: Set below directories containing native wolfSSL DLL and wolfSSL JNI DLL | ||
:: Default pathing expects wolfssl and wolfssljni dirs to be side by side | ||
:: May uncomment / comment lines below that match your build. This file is | ||
:: included by other example .bat files. | ||
|
||
:: wolfSSL Normal non-FIPS (DLL Debug x64) | ||
SET WOLFSSL_DLL_DIR=..\..\..\wolfssl\IDE\WIN10\DLL Debug\x64 | ||
SET WOLFSSLJNI_DLL_DIR=..\..\IDE\WIN\DLL Debug\x64 | ||
|
||
:: wolfSSL Normal non-FIPS (DLL Release x64) | ||
:: SET WOLFSSL_DLL_DIR=..\..\..\wolfssl\IDE\WIN10\DLL Release\x64 | ||
:: SET WOLFSSLJNI_DLL_DIR=..\..\IDE\WIN\DLL Release\x64 | ||
|
||
:: wolfSSL Normal non-FIPS (DLL Debug Win32) | ||
:: SET WOLFSSL_DLL_DIR=..\..\..\wolfssl\IDE\WIN10\DLL Debug\Win32 | ||
:: SET WOLFSSLJNI_DLL_DIR=..\..\IDE\WIN\DLL Debug\Win32 | ||
|
||
:: wolfSSL Normal non-FIPS (DLL Release Win32) | ||
:: SET WOLFSSL_DLL_DIR=..\..\..\wolfssl\IDE\WIN10\DLL Release\Win32 | ||
:: SET WOLFSSLJNI_DLL_DIR=..\..\IDE\WIN\DLL Release\Win32 | ||
|
||
:: wolfSSL FIPS 140-2 #3389 Build (DLL Debug x64) | ||
:: SET WOLFSSL_DLL_DIR=..\..\..\wolfssl\IDE\WIN10\DLL Debug\x64 | ||
:: SET WOLFSSLJNI_DLL_DIR=..\..\IDE\WIN\DLL Debug FIPS\x64 | ||
|
||
:: wolfSSL FIPS 140-2 #3389 Build (DLL Release x64) | ||
:: SET WOLFSSL_DLL_DIR=..\..\..\wolfssl\IDE\WIN10\DLL Release\x64 | ||
:: SET WOLFSSLJNI_DLL_DIR=..\..\IDE\WIN\DLL Release FIPS\x64 | ||
|
||
:: wolfSSL FIPS 140-2 #3389 Build (DLL Debug Win32) | ||
:: SET WOLFSSL_DLL_DIR=..\..\..\wolfssl\IDE\WIN10\DLL Debug\Win32 | ||
:: SET WOLFSSLJNI_DLL_DIR=..\..\IDE\WIN\DLL Debug FIPS\Win32 | ||
|
||
:: wolfSSL FIPS 140-2 #3389 Build (DLL Release Win32) | ||
:: SET WOLFSSL_DLL_DIR=..\..\..\wolfssl\IDE\WIN10\DLL Release\Win32 | ||
:: SET WOLFSSLJNI_DLL_DIR=..\..\IDE\WIN\DLL Release FIPS\Win32 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
cd %~dp0\build >NUL 2>NUL | ||
SETLOCAL | ||
|
||
:: Populate correct config for build | ||
call ..\WindowsConfig.bat | ||
|
||
:: Set PATH to include DLL for native wolfSSL and wolfSSL JNI (native library) | ||
SET PATH="%WOLFSSLJNI_DLL_DIR%;%WOLFSSL_DLL_DIR%";%PATH% | ||
|
||
java -cp ".;..\..\lib\wolfssl.jar;..\..\lib\wolfssl-jsse.jar" -Djava.library.path="%WOLFSSLJNI_DLL_DIR%;%WOLFSSL_DLL_DIR%" X509v3CertificateGeneration | ||
|
||
ENDLOCAL | ||
cd %~dp0\.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
cd %~dp0\..\build >NUL 2>NUL | ||
SETLOCAL | ||
|
||
:: Populate correct config for build | ||
call ..\WindowsConfig.bat | ||
|
||
:: Set PATH to include DLL for native wolfSSL and wolfSSL JNI (native library) | ||
SET PATH="%WOLFSSLJNI_DLL_DIR%;%WOLFSSL_DLL_DIR%";%PATH% | ||
|
||
java -cp ".;..\..\lib\wolfssl.jar;..\..\lib\wolfssl-jsse.jar" -Djava.library.path="%WOLFSSLJNI_DLL_DIR%;%WOLFSSL_DLL_DIR%" ProviderTest | ||
|
||
ENDLOCAL | ||
cd %~dp0\..\.. |