/*************************************************************************** Copyright (c) 1998-2002 Novell, Inc. All Rights Reserved. THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND TREATIES. USE AND REDISTRIBUTION OF THIS WORK IS SUBJECT TO THE LICENSE AGREEMENT ACCOMPANYING THE SOFTWARE DEVELOPMENT KIT (SDK) THAT CONTAINS THIS WORK. Pursuant to the SDK License Agreement, Novell hereby grants to Developer a royalty-free, non-exclusive license to include the sample code AES.C and derivative binaries in its product. Novell grants to Developer worldwide distribution rights to market, distribute or sell the sample code AES.C and derivative binaries as a component of Developer's product(s). Novell shall have no obligations to Developer or Developer's customers with respect to this code. DISCLAIMER: Novell, Inc. makes no representations or warranties with respect to the contents or use of this code, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. Further, Novell, Inc. reserves the right to revise this publication and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes. Further, Novell, Inc. makes no representations or warranties with respect to any software, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. Further, Novell, Inc. reserves the right to make changes to any and all parts of the software, at any time, without obligation to notify any person or entity of such changes. ***************************************************************************/ #ifdef WIN32 # include <windows.h> #endif #include "npki.h" #include "pkierr.h" NWRCODE VersionInfo(void) { NWRCODE ccode = PKI_SUCCESS; nuint32 versionInfo = 0; \ ccode = NPKIVersionInfo (&versionInfo, NULL, NULL); if (ccode != PKI_SUCCESS) { goto ERR_EXIT; } if (versionInfo < PKIS_VERSION_TWO_FOUR_ZERO) { ccode = PKI_E_WRONG_VERSION; goto ERR_EXIT; } ERR_EXIT: return ccode; }