Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

shrikant1407
Copy link
Contributor

@shrikant1407 shrikant1407 commented Feb 13, 2023

Signed-off-by: Shrikant Temburwar shrikant.temburwar@intel.com

Signed-off-by: Temburwar <shrikant.temburwar@intel.com>
Signed-off-by: Temburwar <shrikant.temburwar@intel.com>
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
Copy link
Contributor

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 ?

# 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.
Copy link
Contributor

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.

> ***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).
Copy link
Contributor

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.

```

- 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).
Copy link
Contributor

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.

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
Copy link
Contributor

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.

@@ -4,9 +4,13 @@
*/

#include <stdio.h>
#ifndef WIN32
Copy link
Contributor

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>
@shrikant1407 shrikant1407 changed the title [WIP] CSDK support on Windows PE [WIP] CSDK support on Windows Feb 22, 2023

/* 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"};
Copy link
Contributor

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants