CryptoSys PKI  23.0.0
The C++ (STL) interface to CryptoSys PKI.

The C++ (STL) interface to CryptoSys PKI is an interface to diCrPKI.dll for C++ programmers using STL (C++11 or above).Requires CryptoSys PKI Pro to be installed on your system, available from https://www.cryptosys.net/pki/. In particular that diCrPKI.dll is in your library search path.

Required files to compile in a C++ project:

dipki.hpp
diCrPKI.h
dipki.cpp
#include "diCrPKI.h"
#include "dipki.hpp"
{main}.cpp
#include "dipki.hpp"
int main() { ... }
The C++ (STL) interface to CryptoSys PKI.

Link to diCrPKI.lib. In MSVC++, with the LIB file in the output directory (typically Debug or Release)

Configuration Properties > Linker > Input > Additional Dependencies: $(OutDir)diCrPKI.lib;...

A minimal example dipki-cpp-min.cpp

#include <iostream>
#include "dipki.hpp"
int main() {
std::cout << "Version=" << n << std::endl;
}
static int Version()
Get version number of the core native DLL as an integer value.

Using the command-line with MSVC:

cl dipki-cpp-min.cpp dipki.cpp /EHsc /link ..\debug\diCrPKI.lib

Using GCC (make sure the DLL has been compiled for target X64):

g++ -std=c++11 dipki-cpp-min.cpp dipki.cpp "C:\fullpath\to\x64\Debug\diCrPKI.lib"
Copyright © 2004-24 D.I. Management Services Pty Limited t/a CryptoSys ABN 78 083 210 584 Australia. All rights reserved. <www.di-mgt.com.au> <www.cryptosys.net>. Generated on Mon Sep 23 2024 15:37:33 by Doxygen 1.9.1.