-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] CSDK support on Windows #217
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Temburwar <shrikant.temburwar@intel.com>
Signed-off-by: Temburwar <shrikant.temburwar@intel.com>
WinClientBuild/3rdParty_build.bat
Outdated
nmake /f Makefile.vc mode=static ENABLE_WINSSL=yes | ||
cd ..\..\.. | ||
cd 3rdParty\safestringlib-1.2.0\WinBuild | ||
msbuild WinBuild.sln /p:configuration=debug /t:Rebuild /p:platform=x86 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update this script to get release or debug configuration from user ?
WinClientBuild/README.md
Outdated
# Windows* OS | ||
The development and execution OS used was `Windows 10` on x86. Follow these steps to compile and execute FIDO Device Onboard (FDO). | ||
|
||
The FDO Client SDK execution depends on OpenSSL* toolkit 1.1.1s version. Users must install or upgrade the toolkit before compilation if the toolkit is not available by default in the environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may have to upgrade to openssl 3 in some time.
WinClientBuild/README.md
Outdated
> ***NOTE***: Built binary can be either `debug` or `release` based on the compilation step. | ||
|
||
- Before executing `win-client.exe`, prepare for Device Initialization (DI) by starting the FDO PRI Manufacturer. | ||
Refer to [ Device Initialization Setup ](DI_setup.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check whether this hyper link works, I observed file not found.
WinClientBuild/README.md
Outdated
``` | ||
|
||
- To enable the device for Transfer Ownership protocol (TO1 and TO2), configure the FDO PRI Rendezvous and Owner. | ||
Refer to [ Ownership Transfer Setup ](ownership_transfer.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check whether this hyper link works, I observed file not found.
WinClientBuild/csdk_build.bat
Outdated
REM call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86 | ||
del build\win-client.exe | ||
SET CL=/DECDSA_PRIVKEY#\"C:\\ProgramData\\Intel\\FDO\\data\\ecdsa384privkey.pem\" | ||
msbuild WinClientBuild.sln /p:MyConstants="ECDSA384_DA;AES_MODE_GCM_ENABLED;REUSE_SUPPORTED;RESALE_SUPPORTED" /p:configuration=debug /t:Rebuild /p:platform=x86 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the debug/release configuration from user.
app/se_provisioning.c
Outdated
@@ -4,9 +4,13 @@ | |||
*/ | |||
|
|||
#include <stdio.h> | |||
#ifndef WIN32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we remove the ifndef here, was it able to use safe string libs ?
Signed-off-by: Temburwar <shrikant.temburwar@intel.com>
|
||
/* Allow only alphanumeric file name either shell or python script*/ | ||
static bool is_valid_filename(const char *fname) | ||
{ | ||
bool ret = false; | ||
int strcmp_result = -1; | ||
uint8_t i = 0; | ||
static const char * const whitelisted[] = {"sh", "py"}; | ||
static const char *const whitelisted[] = {"sh", "py", "bat"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a different list for linux{py, sh} and windows{py, bat} ?
Signed-off-by: Temburwar <shrikant.temburwar@intel.com>
Signed-off-by: Shrikant Temburwar shrikant.temburwar@intel.com