Skip to content

Commit

Permalink
Update to version 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Gajdos committed Apr 17, 2023
1 parent 84acece commit de3d58e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ public partial class Build : NukeBuild
CopyDirectoryRecursively(ArtifactsTmpDirectory / "native", ArtifactsTmpDirectory / "BouncyHsm" / "native");
CreateZip(ArtifactsTmpDirectory / "native" / "Win-x64" / "BouncyHsm.Pkcs11Lib.dll",
"Win X64",
"0.2.0.0", //TODO
"0.3.0.0", //TODO
ArtifactsTmpDirectory / "BouncyHsm" / "wwwroot" / "native" / "BouncyHsm.Pkcs11Lib-Winx64.zip");
CreateZip(ArtifactsTmpDirectory / "native" / "Win-x86" / "BouncyHsm.Pkcs11Lib.dll",
"Win X86",
"0.2.0.0", //TODO
"0.3.0.0", //TODO
ArtifactsTmpDirectory / "BouncyHsm" / "wwwroot" / "native" / "BouncyHsm.Pkcs11Lib-Winx86.zip");

AbsolutePath linuxNativeLibx64 = RootDirectory / "build_linux" / "BouncyHsm.Pkcs11Lib-x64.so";
Expand All @@ -113,7 +113,7 @@ public partial class Build : NukeBuild

CreateZip(linuxNativeLibx64,
"Linux X64",
"0.2.0.0", //TODO
"0.3.0.0", //TODO
ArtifactsTmpDirectory / "BouncyHsm" / "wwwroot" / "native" / "BouncyHsm.Pkcs11Lib-Linuxx64.zip");
}
else
Expand All @@ -128,7 +128,7 @@ public partial class Build : NukeBuild

CreateZip(linuxNativeLibx32,
"Linux X86",
"0.2.0.0", //TODO
"0.3.0.0", //TODO
ArtifactsTmpDirectory / "BouncyHsm" / "wwwroot" / "native" / "BouncyHsm.Pkcs11Lib-Linuxx84.zip");
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<Copyright>Copyright (c) $([System.DateTime]::Now.ToString('yyyy')), Jozef Gajdoš</Copyright>
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
<Version>0.2.0</Version>
<Version>0.3.0</Version>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions src/Src/BouncyHsm.Pkcs11Lib/bouncy-pkcs11.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,8 +765,8 @@ CK_DEFINE_FUNCTION(CK_RV, C_GetInfo)(CK_INFO_PTR pInfo)

SetPaddedStrSafe(pInfo->libraryDescription, sizeof(pInfo->libraryDescription), PKCS11_LIB_DESCRIPTION);

pInfo->libraryVersion.major = 1;
pInfo->libraryVersion.minor = 0;
pInfo->libraryVersion.major = BOUNCY_HSM_LIBVERSION_MAJOR;
pInfo->libraryVersion.minor = BOUNCY_HSM_LIBVERSION_MINOR;

memset(pInfo->manufacturerID, ' ', sizeof(pInfo->manufacturerID));
memcpy(pInfo->manufacturerID, envelope.ManufacturerID, strlen(envelope.ManufacturerID));
Expand Down
5 changes: 4 additions & 1 deletion src/Src/BouncyHsm.Pkcs11Lib/globalContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ void GlobalContextInit();
#define BOUNCY_HSM_DEFAULT_PORT 8765
#define PKCS11_LIB_DESCRIPTION "BouncyHsm.Pkcs11 library"

#define BOUNCY_HSM_LIBVERSION "0.2.0.0"
#define BOUNCY_HSM_LIBVERSION "0.3.0.0"
#define BOUNCY_HSM_LIBVERSION_MAJOR 0
#define BOUNCY_HSM_LIBVERSION_MINOR 3


#endif //GLOBAL_CONTEXT

0 comments on commit de3d58e

Please sign in to comment.