93 lines
2.2 KiB
C
93 lines
2.2 KiB
C
/***********************************************************************
|
|
*
|
|
* Copyright (C) 2005-2006 Novell, Inc. Inc. All Rights Reserved.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; version 2.1
|
|
* of the License.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, Novell, Inc.
|
|
*
|
|
* To contact Novell about this file by physical or electronic mail,
|
|
* you may find current contact information at www.novell.com.
|
|
*
|
|
***********************************************************************/
|
|
|
|
// Insert your headers here
|
|
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
|
|
|
#define UNICODE
|
|
#define _UNICODE
|
|
|
|
#include <windows.h>
|
|
|
|
#ifdef _DEBUG
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#endif
|
|
|
|
//#include <initguid.h>
|
|
//#include <commctrl.h>
|
|
//#include <objbase.h>
|
|
#include <ntsecapi.h>
|
|
#include <winwlx.h>
|
|
|
|
#include "micasa.h"
|
|
#include "micasa_mgmd.h"
|
|
|
|
#include "npapi.h"
|
|
|
|
//===[ Function prototypes ]===============================================
|
|
|
|
typedef
|
|
int
|
|
(STDAPICALLTYPE *PSETCREDENTIAL)(
|
|
unsigned long ssFlags, // IN
|
|
SSCS_SECRET_ID_T * appSecretID, // IN
|
|
SSCS_SECRET_ID_T * sharedSecretID, // Optional IN
|
|
int credentialType, // IN
|
|
void * credential, // IN
|
|
SSCS_EXT_T * ext // Reserved
|
|
);
|
|
|
|
typedef
|
|
void *
|
|
(STDAPICALLTYPE *POPENCACHE)(
|
|
SSCS_SECRETSTORE_T * ssid,
|
|
unsigned long ssFlags,
|
|
SSCS_EXT_T * ext
|
|
);
|
|
|
|
typedef
|
|
int
|
|
(STDAPICALLTYPE *PCLOSECACHE)(
|
|
void * context,
|
|
unsigned long ssFlags,
|
|
SSCS_EXT_T * ext
|
|
);
|
|
|
|
|
|
void
|
|
InitLoginExtension(
|
|
);
|
|
|
|
BOOLEAN
|
|
InitCASALibrary (
|
|
);
|
|
|
|
void
|
|
DebugPrint
|
|
(
|
|
char *format,
|
|
...
|
|
);
|
|
|
|
|