1
0
mirror of https://github.com/opencryptoki/opencryptoki.git synced 2026-10-24 05:39:17 +03:00
Files
opencryptoki/testcases/build/cpp_test.cpp
Patrick Steuer aa7fb8d247 Fix cpp_test
pkcs11.h just includes other openCryptoki headers from
system locations.

Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
2020-11-27 17:35:17 +01:00

30 lines
722 B
C++

/*
* COPYRIGHT (c) International Business Machines Corp. 2020
*
* This program is provided under the terms of the Common Public License,
* version 1.0 (CPL-1.0). Any use, reproduction or distribution for this
* software constitutes recipient's acceptance of CPL-1.0 terms which can be
* found in the file LICENSE file or at
* https://opensource.org/licenses/cpl1.0.php
*/
/*
* Test if our public header files can be savely included from C++.
*/
// pkcs11.h:
#include "apiclient.h"
#include "pkcs11types.h"
// Additional ECC stuff:
#include "ec_curves.h"
int main(void)
{
int rv;
rv = 0;
/* make sure we return non-zero if rv is non-zero */
return ((rv == 0) || (rv % 256) ? (int)rv : -1);
}