| 1 |
/* |
| 2 |
* COPYRIGHT (c) International Business Machines Corp. 2020 |
| 3 |
* |
| 4 |
* This program is provided under the terms of the Common Public License, |
| 5 |
* version 1.0 (CPL-1.0). Any use, reproduction or distribution for this |
| 6 |
* software constitutes recipient's acceptance of CPL-1.0 terms which can be |
| 7 |
* found in the file LICENSE file or at |
| 8 |
* https://opensource.org/licenses/cpl1.0.php |
| 9 |
*/ |
| 10 |
|
| 11 |
/* |
| 12 |
* Test if our public header files can be savely included from C++. |
| 13 |
*/ |
| 14 |
|
| 15 |
// pkcs11.h: |
| 16 |
#include "apiclient.h" |
| 17 |
#include "pkcs11types.h" |
| 18 |
|
| 19 |
// Additional ECC stuff: |
| 20 |
#include "ec_curves.h" |
| 21 |
|
| 22 |
int main(void) |
| 23 |
{ |
| 24 |
int rv; |
| 25 |
|
| 26 |
rv = 0; |
| 27 |
/* make sure we return non-zero if rv is non-zero */ |
| 28 |
return ((rv == 0) || (rv % 256) ? (int)rv : -1); |
| 29 |
} |