diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2007-09-24 22:05:56 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2007-09-24 22:05:56 +0000 |
| commit | 5386b775b2fbce68cbc846f7dac3ef495e72457a (patch) | |
| tree | 34e1350d51f8265d21fc69f47e293ea1dec1b8c1 /src/windows/identity/sample | |
| parent | ecdd7622b03b8e3ffa1dce68e081fca9e9b0aa70 (diff) | |
Set svn:eol-style on a bunch of text-looking files that didn't have it
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19972 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows/identity/sample')
4 files changed, 826 insertions, 826 deletions
diff --git a/src/windows/identity/sample/templates/credprov/Makefile b/src/windows/identity/sample/templates/credprov/Makefile index b9400105a..898c614ca 100644 --- a/src/windows/identity/sample/templates/credprov/Makefile +++ b/src/windows/identity/sample/templates/credprov/Makefile @@ -1,278 +1,278 @@ -#
-# Copyright (c) 2006 Secure Endpoints Inc.
-#
-# Permission is hereby granted, free of charge, to any person
-# obtaining a copy of this software and associated documentation files
-# (the "Software"), to deal in the Software without restriction,
-# including without limitation the rights to use, copy, modify, merge,
-# publish, distribute, sublicense, and/or sell copies of the Software,
-# and to permit persons to whom the Software is furnished to do so,
-# subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be
-# included in all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-
-# Environment variables
-# ---------------------
-#
-# Before running the makefile, set the environment variable KFWSDKDIR
-# to the directory containing the Kerberos for Windows SDK version 3.1
-# or later. The path should not end in a backslash.
-
-# Configuration settings
-# ----------------------
-
-# Declare a few things about our plug-in.
-
-# TODO: Change the plug-in name
-PLUGINNAME=MyPlugin
-
-# TODO: Change the module name
-MODULENAME=MyModule
-
-# TODO: Change the credtype name
-CREDTYPENAME=MyCred
-
-# TODO: Change this as appropriate
-DLLBASENAME=myplugin
-
-# Version info
-
-# TODO: Change the version numbers
-VERMAJOR=0
-VERMINOR=1
-VERAUX =0
-VERPATCH=0
-
-# Leave these as-is
-VERLIST=$(VERMAJOR).$(VERMINOR).$(VERAUX).$(VERPATCH)
-VERLISTC=$(VERMAJOR),$(VERMINOR),$(VERAUX),$(VERPATCH)
-
-# Various checks
-
-!ifndef MSSDK
-! error Platform SDK environment variables not set.
-!endif
-
-!ifndef KFWSDKDIR
-! error KFWSDKDIR environment variable not set.
-!endif
-
-# Directories
-
-BUILDROOT=.
-
-!ifdef NODEBUG
-BUILDTYPE=release
-!else
-BUILDTYPE=debug
-!endif
-
-!ifndef CPU
-!error Environment variable 'CPU' is not defined.
-!endif
-
-DEST=$(BUILDROOT)\dest\$(CPU)_$(BUILDTYPE)
-OBJ=$(BUILDROOT)\obj\$(CPU)_$(BUILDTYPE)
-
-!ifndef NIDMRAWDIRS
-KFWINCDIR=$(KFWSDKDIR)\inc
-NIDMINCDIR=$(KFWINCDIR)\netidmgr
-NIDMLIBDIR=$(KFWSDKDIR)\lib\$(CPU)
-!else
-NIDMINCDIR=$(KFWSDKDIR)\inc
-NIDMLIBDIR=$(KFWSDKDIR)
-!endif
-
-# Win32.mak
-
-!include <Win32.Mak>
-
-# Program macros
-
-CD=cd
-RM=del /q
-MKDIR=mkdir
-RMDIR=rmdir
-ECHO=echo
-CP=copy /y
-LINK=link
-MC=mc
-
-# Lots more macros
-
-incflags = -I"$(NIDMINCDIR)" -I"$(OBJ)" -I.
-rincflags = /i "$(NIDMINCDIR)" /i "$(OBJ)" /i .
-
-ldebug = $(ldebug) /DEBUG
-cdebug = $(cdebug) -Os -Zi
-
-cdefines = $(cdefines) -DUNICODE -D_UNICODE
-
-C2OBJ=$(CC) $(cdebug) $(cflags) $(incflags) $(cdefines) /Fo"$@" /c $**
-
-DLLGUILINK=$(LINK) /NOLOGO $(ldebug) $(dlllflags) $(guilibsmt) /OUT:"$@" /IMPLIB:$(DEST)\$(@B).lib $**
-
-DLLRESLINK=$(LINK) /NOLOGO /DLL /NOENTRY /MACHINE:$(PROCESSOR_ARCHITECTURE) /OUT:"$@" $**
-
-RC2RES=$(RC) $(RFLAGS) $(rincflags) /fo "$@" $**
-
-MC2RC=$(MC) $(MCFLAGS) -h "$(OBJ)\" -m 1024 -r "$(OBJ)\" -x "$(OBJ)\" $**
-
-{}.c{$(OBJ)}.obj:
- $(C2OBJ)
-
-{$(OBJ)}.c{$(OBJ)}.obj:
- $(C2OBJ)
-
-{}.rc{$(OBJ)}.res:
- $(RC2RES)
-
-mkdirs::
-!if !exist($(DEST))
- $(MKDIR) "$(DEST)"
-!endif
-!if !exist($(OBJ))
- $(MKDIR) "$(OBJ)"
-!endif
-
-clean::
- $(RM) "$(OBJ)\*.*"
- $(RM) "$(DEST)\*.*"
-
-.SUFFIXES: .h
-
-#
-# Manifest handling
-#
-# Starting with Visual Studio 8, the C compiler and the linker
-# generate manifests so that the applications will link with the
-# correct side-by-side DLLs at run-time. These are required for
-# correct operation under Windows XP. We also have custom manifests
-# which need to be merged with the manifests that VS creates.
-#
-# The syntax for invoking the _VC_MANIFEST_EMBED_foo macro is:
-# $(_VC_MANIFEST_EMBED_???) <any additional manifests that need to be merged in>
-#
-
-!ifndef MT
-MT=mt.exe -nologo
-!endif
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist "$@.manifest" $(MT) -outputresource:"$@";1 -manifest "$@.manifest"
-
-_VC_MANIFEST_EMBED_DLL=$(_VC_MANIFEST_EMBED_EXE)
-
-# Note that if you are merging manifests, then the VS generated
-# manifest should be cleaned up after calling _VC_MANIFEST_EMBED_???.
-# This ensures that even if the DLL or EXE is executed in-place, the
-# embedded manifest will be used. Otherwise the $@.manifest file will
-# be used.
-_VC_MANIFEST_CLEAN= \
-if exist "$@.manifest" $(RM) "$@.manifest"
-
-# End of manifest handling
-
-
-# Now for the actual build stuff
-
-DLL=$(DEST)\$(DLLBASENAME).dll
-
-LIBFILES= \
- "$(NIDMLIBDIR)\nidmgr32.lib"
-
-OBJFILES= \
- $(OBJ)\credacq.obj \
- $(OBJ)\credtype.obj \
- $(OBJ)\main.obj \
- $(OBJ)\plugin.obj \
- $(OBJ)\proppage.obj \
- $(OBJ)\config_main.obj \
- $(OBJ)\config_id.obj \
- $(OBJ)\config_ids.obj
-
-DLLRESFILE=$(OBJ)\version.res
-
-CONFIGHEADER=$(OBJ)\credacq_config.h
-
-all: mkdirs $(CONFIGHEADER) $(DLL) lang
-
-$(CONFIGHEADER): Makefile
- $(CP) << "$@"
-/* This is a generated file. Do not modify directly. */
-
-#pragma once
-
-#define MYPLUGIN_DLLBASE "$(DLLBASENAME)"
-
-#define MYPLUGIN_NAME "$(PLUGINNAME)"
-
-#define MYMODULE_NAME "$(MODULENAME)"
-
-#define MYCREDTYPE_NAME "$(CREDTYPENAME)"
-
-#define VERSION_MAJOR $(VERMAJOR)
-#define VERSION_MINOR $(VERMINOR)
-#define VERSION_AUX $(VERAUX)
-#define VERSION_PATCH $(VERPATCH)
-
-#define VERSION_LIST $(VERLIST)
-#define VERSION_LISTC $(VERLISTC)
-#define VERSION_STRING "$(VERLIST)"
-
-<<
-
-clean::
- $(RM) $(CONFIGHEADER)
-
-$(DLL): $(OBJFILES) $(DLLRESFILE)
- $(DLLGUILINK) $(LIBFILES)
- $(_VC_MANIFEST_EMBED_DLL)
- $(_VC_MANIFEST_CLEAN)
-
-clean::
- $(RM) $(DLL)
-
-# Language specific resources
-
-# (repeat the following block as needed, redefining LANG for each
-# supported language)
-
-# English-US
-LANG=en_us
-
-LANGDLL=$(DEST)\$(DLLBASENAME)_$(LANG).dll
-
-lang:: $(LANGDLL)
-
-$(LANGDLL): $(OBJ)\langres_$(LANG).res $(OBJ)\version_$(LANG).res
- $(DLLRESLINK)
- $(_VC_MANIFEST_EMBED_DLL)
- $(_VC_MANIFEST_CLEAN)
-
-clean::
- $(RM) $(LANGDLL)
-
-$(OBJ)\version_$(LANG).res: version.rc
- $(RC) $(RFLAGS) $(rincflags) /d LANGRES /d LANG_$(LANG) /fo $@ $**
-
-clean::
- $(RM) $(OBJ)\version_$(LANG).res
-
-$(OBJ)\langres_$(LANG).res: lang\$(LANG)\langres.rc
- $(RC2RES)
-
-clean::
- $(RM) $(OBJ)\langres_$(LANG).res
-
-# /English-US
+# +# Copyright (c) 2006 Secure Endpoints Inc. +# +# Permission is hereby granted, free of charge, to any person +# obtaining a copy of this software and associated documentation files +# (the "Software"), to deal in the Software without restriction, +# including without limitation the rights to use, copy, modify, merge, +# publish, distribute, sublicense, and/or sell copies of the Software, +# and to permit persons to whom the Software is furnished to do so, +# subject to the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +# Environment variables +# --------------------- +# +# Before running the makefile, set the environment variable KFWSDKDIR +# to the directory containing the Kerberos for Windows SDK version 3.1 +# or later. The path should not end in a backslash. + +# Configuration settings +# ---------------------- + +# Declare a few things about our plug-in. + +# TODO: Change the plug-in name +PLUGINNAME=MyPlugin + +# TODO: Change the module name +MODULENAME=MyModule + +# TODO: Change the credtype name +CREDTYPENAME=MyCred + +# TODO: Change this as appropriate +DLLBASENAME=myplugin + +# Version info + +# TODO: Change the version numbers +VERMAJOR=0 +VERMINOR=1 +VERAUX =0 +VERPATCH=0 + +# Leave these as-is +VERLIST=$(VERMAJOR).$(VERMINOR).$(VERAUX).$(VERPATCH) +VERLISTC=$(VERMAJOR),$(VERMINOR),$(VERAUX),$(VERPATCH) + +# Various checks + +!ifndef MSSDK +! error Platform SDK environment variables not set. +!endif + +!ifndef KFWSDKDIR +! error KFWSDKDIR environment variable not set. +!endif + +# Directories + +BUILDROOT=. + +!ifdef NODEBUG +BUILDTYPE=release +!else +BUILDTYPE=debug +!endif + +!ifndef CPU +!error Environment variable 'CPU' is not defined. +!endif + +DEST=$(BUILDROOT)\dest\$(CPU)_$(BUILDTYPE) +OBJ=$(BUILDROOT)\obj\$(CPU)_$(BUILDTYPE) + +!ifndef NIDMRAWDIRS +KFWINCDIR=$(KFWSDKDIR)\inc +NIDMINCDIR=$(KFWINCDIR)\netidmgr +NIDMLIBDIR=$(KFWSDKDIR)\lib\$(CPU) +!else +NIDMINCDIR=$(KFWSDKDIR)\inc +NIDMLIBDIR=$(KFWSDKDIR) +!endif + +# Win32.mak + +!include <Win32.Mak> + +# Program macros + +CD=cd +RM=del /q +MKDIR=mkdir +RMDIR=rmdir +ECHO=echo +CP=copy /y +LINK=link +MC=mc + +# Lots more macros + +incflags = -I"$(NIDMINCDIR)" -I"$(OBJ)" -I. +rincflags = /i "$(NIDMINCDIR)" /i "$(OBJ)" /i . + +ldebug = $(ldebug) /DEBUG +cdebug = $(cdebug) -Os -Zi + +cdefines = $(cdefines) -DUNICODE -D_UNICODE + +C2OBJ=$(CC) $(cdebug) $(cflags) $(incflags) $(cdefines) /Fo"$@" /c $** + +DLLGUILINK=$(LINK) /NOLOGO $(ldebug) $(dlllflags) $(guilibsmt) /OUT:"$@" /IMPLIB:$(DEST)\$(@B).lib $** + +DLLRESLINK=$(LINK) /NOLOGO /DLL /NOENTRY /MACHINE:$(PROCESSOR_ARCHITECTURE) /OUT:"$@" $** + +RC2RES=$(RC) $(RFLAGS) $(rincflags) /fo "$@" $** + +MC2RC=$(MC) $(MCFLAGS) -h "$(OBJ)\" -m 1024 -r "$(OBJ)\" -x "$(OBJ)\" $** + +{}.c{$(OBJ)}.obj: + $(C2OBJ) + +{$(OBJ)}.c{$(OBJ)}.obj: + $(C2OBJ) + +{}.rc{$(OBJ)}.res: + $(RC2RES) + +mkdirs:: +!if !exist($(DEST)) + $(MKDIR) "$(DEST)" +!endif +!if !exist($(OBJ)) + $(MKDIR) "$(OBJ)" +!endif + +clean:: + $(RM) "$(OBJ)\*.*" + $(RM) "$(DEST)\*.*" + +.SUFFIXES: .h + +# +# Manifest handling +# +# Starting with Visual Studio 8, the C compiler and the linker +# generate manifests so that the applications will link with the +# correct side-by-side DLLs at run-time. These are required for +# correct operation under Windows XP. We also have custom manifests +# which need to be merged with the manifests that VS creates. +# +# The syntax for invoking the _VC_MANIFEST_EMBED_foo macro is: +# $(_VC_MANIFEST_EMBED_???) <any additional manifests that need to be merged in> +# + +!ifndef MT +MT=mt.exe -nologo +!endif + +_VC_MANIFEST_EMBED_EXE= \ +if exist "$@.manifest" $(MT) -outputresource:"$@";1 -manifest "$@.manifest" + +_VC_MANIFEST_EMBED_DLL=$(_VC_MANIFEST_EMBED_EXE) + +# Note that if you are merging manifests, then the VS generated +# manifest should be cleaned up after calling _VC_MANIFEST_EMBED_???. +# This ensures that even if the DLL or EXE is executed in-place, the +# embedded manifest will be used. Otherwise the $@.manifest file will +# be used. +_VC_MANIFEST_CLEAN= \ +if exist "$@.manifest" $(RM) "$@.manifest" + +# End of manifest handling + + +# Now for the actual build stuff + +DLL=$(DEST)\$(DLLBASENAME).dll + +LIBFILES= \ + "$(NIDMLIBDIR)\nidmgr32.lib" + +OBJFILES= \ + $(OBJ)\credacq.obj \ + $(OBJ)\credtype.obj \ + $(OBJ)\main.obj \ + $(OBJ)\plugin.obj \ + $(OBJ)\proppage.obj \ + $(OBJ)\config_main.obj \ + $(OBJ)\config_id.obj \ + $(OBJ)\config_ids.obj + +DLLRESFILE=$(OBJ)\version.res + +CONFIGHEADER=$(OBJ)\credacq_config.h + +all: mkdirs $(CONFIGHEADER) $(DLL) lang + +$(CONFIGHEADER): Makefile + $(CP) << "$@" +/* This is a generated file. Do not modify directly. */ + +#pragma once + +#define MYPLUGIN_DLLBASE "$(DLLBASENAME)" + +#define MYPLUGIN_NAME "$(PLUGINNAME)" + +#define MYMODULE_NAME "$(MODULENAME)" + +#define MYCREDTYPE_NAME "$(CREDTYPENAME)" + +#define VERSION_MAJOR $(VERMAJOR) +#define VERSION_MINOR $(VERMINOR) +#define VERSION_AUX $(VERAUX) +#define VERSION_PATCH $(VERPATCH) + +#define VERSION_LIST $(VERLIST) +#define VERSION_LISTC $(VERLISTC) +#define VERSION_STRING "$(VERLIST)" + +<< + +clean:: + $(RM) $(CONFIGHEADER) + +$(DLL): $(OBJFILES) $(DLLRESFILE) + $(DLLGUILINK) $(LIBFILES) + $(_VC_MANIFEST_EMBED_DLL) + $(_VC_MANIFEST_CLEAN) + +clean:: + $(RM) $(DLL) + +# Language specific resources + +# (repeat the following block as needed, redefining LANG for each +# supported language) + +# English-US +LANG=en_us + +LANGDLL=$(DEST)\$(DLLBASENAME)_$(LANG).dll + +lang:: $(LANGDLL) + +$(LANGDLL): $(OBJ)\langres_$(LANG).res $(OBJ)\version_$(LANG).res + $(DLLRESLINK) + $(_VC_MANIFEST_EMBED_DLL) + $(_VC_MANIFEST_CLEAN) + +clean:: + $(RM) $(LANGDLL) + +$(OBJ)\version_$(LANG).res: version.rc + $(RC) $(RFLAGS) $(rincflags) /d LANGRES /d LANG_$(LANG) /fo $@ $** + +clean:: + $(RM) $(OBJ)\version_$(LANG).res + +$(OBJ)\langres_$(LANG).res: lang\$(LANG)\langres.rc + $(RC2RES) + +clean:: + $(RM) $(OBJ)\langres_$(LANG).res + +# /English-US diff --git a/src/windows/identity/sample/templates/credprov/README b/src/windows/identity/sample/templates/credprov/README index f091143c8..2ecf88188 100644 --- a/src/windows/identity/sample/templates/credprov/README +++ b/src/windows/identity/sample/templates/credprov/README @@ -1,250 +1,250 @@ -
- Network Identity Manager
-
- Credentials Provider Plug-in Template
-
-------------------------------------------------------------------
-
- CONTENTS
-
- 1. INTRODUCTION
- 2. COPYRIGHT AND LICENSE
- 3. ROADMAP OF THE TEMPLATE
- 4. BUILD REQUIREMENTS
- 5. BUILDING
- 6. RUNNING THE PLUG-IN
- 7. KNOWN ISSUES
- 8. SUPPORT / BUG REPORTS
-
-------------------------------------------------------------------
-
-1. INTRODUCTION
-
- This directory and subdirectories contain a plug-in template for
- creating a credentials provider plug-in for Network Identity
- Manager. A credentials manager plug-in provides knowledge of a
- specifc credentials type to the NetIDMgr application and manages
- those credentials on behalf of NetIDMgr.
-
- This version of the template adheres to the following version
- constraints:
-
- Network Identity Manager API version : 5
-
- (This API version corresponds to the MIT Kerberos for Windows
- version 3.1).
-
- The source files in this template can be used to build the plug-in
- DLL and the US English resource DLL for the plug-in. In its
- current form, the plug-in doesn't do any credentials management.
- However, it implements a number of stub functions that can be
- filled in to perform the necessary credentials management
- operations.
-
-------------------------------------------------------------------
-
-2. COPYRIGHT AND LICENSE
-
- Copyright (c) 2006 Secure Endpoints Inc.
-
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation
- files (the "Software"), to deal in the Software without
- restriction, including without limitation the rights to use, copy,
- modify, merge, publish, distribute, sublicense, and/or sell copies
- of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- DEALINGS IN THE SOFTWARE.
-
-------------------------------------------------------------------
-
-3. ROADMAP OF THE TEMPLATE
-
- The template consists of the following files and directories:
-
- .\README
-
- This file.
-
- .\Makefile
-
- The primary (and only) Makefile used by 'nmake' to build the
- plug-in. In addition to providing build directives, it also
- contains a set of macros which defines the names and version
- information that is used throughout the plug-in code.
-
- Look for the 'Configuration Settings' section of the Makefile
- for the macros. If you are basing a plug-in on this template,
- you will want to change these macros. These macros will be
- used to generate 'credacq_config.h', a header file included by
- 'credprov.h' so that the values of the macros can be used in C
- code.
-
- .\credprov.h
-
- The main header file for all the C source files in the
- plug-in.
-
- .\main.c
-
- Provides the entry points for the module.
-
- .\plugin.c
-
- Provides the message processing functions and support routines
- for implementing the plug-in. Note that some of the message
- processing routines have been moved to other sources files
- based on their use.
-
- .\credtype.c
-
- Functions for handling our credentials type.
-
- .\credacq.c
-
- Handlers for the credentials acquisition messages including
- handling the user interface for the new credentials dialogs.
-
- .\proppage.c
-
- Dialog procedures and support code for displaying property
- sheets for credentials that belong to our credentials type.
-
- .\config_main.c
-
- Dialog procedures and support code for providing the general
- configuration panel for this plug-in.
-
- .\config_id.c
-
- Dialog procedures and support code for providing per-identity
- configuration for this plug-in.
-
- .\config_ids.c
-
- Dialog procedures and support code for providing configuration
- for defaults across all identities.
-
- .\version.rc
-
- Version information for the plug-in as well as all the
- language resource DLLs.
-
- .\langres.h
-
- Declarations for the language resources (see below). In its
- current form, it was generated via Visual Studio while editing
- the language resouces file.
-
- .\images\plugin.ico
-
- A generic plug-in icon.
-
- .\lang\en_us\langres.rc
-
- US-English language resources. This will be used to create
- the language resource DLL.
-
-------------------------------------------------------------------
-
-4. BUILD REQUIREMENTS
-
- Microsoft(R) Platform SDK (Windows Server 2003 or later)
-
- (http://www.microsoft.com/msdownload/platformsdk/sdkupdate/)
-
- Microsoft(R) Visual C++ (Visual Studio 2003 or later)
-
- Although not tested, the template should build using the
- Microsoft Visual C++ toolkit.
-
- MIT Kerberos for Windows (version 3.1 or later) SDK
-
- At the current time, version 3.1 is still in beta. However,
- the template will not work with the 3.0 SDK due to a number of
- changes that were made to the NetIDMgr API between 3.0 and
- 3.1.
-
-------------------------------------------------------------------
-
-5. BUILDING
-
- The build process is fairly starightforward. The source is set up
- to build using 'nmake', a build tool distributed with the Platform
- SDK as well as with Visual Studio.
-
- 1. Open a command prompt with a suitable build environment.
-
- From a plain command prompt, you can set up a debug build
- environment targetting Windows XP (32-bit) with:
-
- > "%PROGRAMFILES%\Microsoft Platform SDK\SetEnv.Cmd" /XP32 /DEBUG
-
- 2. Set the environment variable KFWSDKDIR to point to the root of
- the Kerberos for Windows 3.1 SDK. (i.e. %KFWSDKDIR%\inc
- should be the include directory of the SDK)
-
- > SET KFWSDKDIR=%PROGRAMFILES%\MIT\Kerberos
-
- 3. Start the build:
-
- > NMAKE all
-
- The build target 'all' builds the plug-in and the language
- resources. There is an additional build target 'clean' which
- removes the temporary files and the binaries generated during
- the build.
-
- Assuming everything goes well, the plug-in binaries should be
- created under a subdirectory under 'dest'. The name of the
- subdirectory reflects the target architecture and the build
- type ('debug' or 'release').
-
-------------------------------------------------------------------
-
-6. RUNNING THE PLUG-IN
-
- Once the binaries for the plug-in have been built, you need to
- register the plug-in with NetIDMgr by adding a registry value as
- follows:
-
- [HKEY_CURRENT_USER\Software\MIT\NetIDMgr\PluginManager\Modules\<Module name>]
- "ImagePath"="<path>"
-
- The <path> should be the full path to the plug-in DLL.
-
- <Module name> is the name of the module that you built. The
- default value specified in the template is 'MyModule'. This is
- the value of the macro 'MODULENAME' defined in the 'Makefile'.
-
- Once this is done, you need to restart NetIDMgr so that it will
- pick up the new plug-in.
-
-------------------------------------------------------------------
-
-7. KNOWN ISSUES
-
- 1. With the current MIT Kerberos for Windows 3.1 beta, NetIDMgr
- will fail to load the plug-in when tries to load the plug-in
- for the first time. Restarting NetIDMgr will fix the problem.
- This will be fixed in a future beta and the final release of
- KfW 3.1
-
-------------------------------------------------------------------
-
-8. SUPPORT / BUG REPORTS
-
- Problems should be sent to netidmgr@secure-endpoints.com
-
-------------------------------------------------------------------
+ + Network Identity Manager + + Credentials Provider Plug-in Template + +------------------------------------------------------------------ + + CONTENTS + + 1. INTRODUCTION + 2. COPYRIGHT AND LICENSE + 3. ROADMAP OF THE TEMPLATE + 4. BUILD REQUIREMENTS + 5. BUILDING + 6. RUNNING THE PLUG-IN + 7. KNOWN ISSUES + 8. SUPPORT / BUG REPORTS + +------------------------------------------------------------------ + +1. INTRODUCTION + + This directory and subdirectories contain a plug-in template for + creating a credentials provider plug-in for Network Identity + Manager. A credentials manager plug-in provides knowledge of a + specifc credentials type to the NetIDMgr application and manages + those credentials on behalf of NetIDMgr. + + This version of the template adheres to the following version + constraints: + + Network Identity Manager API version : 5 + + (This API version corresponds to the MIT Kerberos for Windows + version 3.1). + + The source files in this template can be used to build the plug-in + DLL and the US English resource DLL for the plug-in. In its + current form, the plug-in doesn't do any credentials management. + However, it implements a number of stub functions that can be + filled in to perform the necessary credentials management + operations. + +------------------------------------------------------------------ + +2. COPYRIGHT AND LICENSE + + Copyright (c) 2006 Secure Endpoints Inc. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + +------------------------------------------------------------------ + +3. ROADMAP OF THE TEMPLATE + + The template consists of the following files and directories: + + .\README + + This file. + + .\Makefile + + The primary (and only) Makefile used by 'nmake' to build the + plug-in. In addition to providing build directives, it also + contains a set of macros which defines the names and version + information that is used throughout the plug-in code. + + Look for the 'Configuration Settings' section of the Makefile + for the macros. If you are basing a plug-in on this template, + you will want to change these macros. These macros will be + used to generate 'credacq_config.h', a header file included by + 'credprov.h' so that the values of the macros can be used in C + code. + + .\credprov.h + + The main header file for all the C source files in the + plug-in. + + .\main.c + + Provides the entry points for the module. + + .\plugin.c + + Provides the message processing functions and support routines + for implementing the plug-in. Note that some of the message + processing routines have been moved to other sources files + based on their use. + + .\credtype.c + + Functions for handling our credentials type. + + .\credacq.c + + Handlers for the credentials acquisition messages including + handling the user interface for the new credentials dialogs. + + .\proppage.c + + Dialog procedures and support code for displaying property + sheets for credentials that belong to our credentials type. + + .\config_main.c + + Dialog procedures and support code for providing the general + configuration panel for this plug-in. + + .\config_id.c + + Dialog procedures and support code for providing per-identity + configuration for this plug-in. + + .\config_ids.c + + Dialog procedures and support code for providing configuration + for defaults across all identities. + + .\version.rc + + Version information for the plug-in as well as all the + language resource DLLs. + + .\langres.h + + Declarations for the language resources (see below). In its + current form, it was generated via Visual Studio while editing + the language resouces file. + + .\images\plugin.ico + + A generic plug-in icon. + + .\lang\en_us\langres.rc + + US-English language resources. This will be used to create + the language resource DLL. + +------------------------------------------------------------------ + +4. BUILD REQUIREMENTS + + Microsoft(R) Platform SDK (Windows Server 2003 or later) + + (http://www.microsoft.com/msdownload/platformsdk/sdkupdate/) + + Microsoft(R) Visual C++ (Visual Studio 2003 or later) + + Although not tested, the template should build using the + Microsoft Visual C++ toolkit. + + MIT Kerberos for Windows (version 3.1 or later) SDK + + At the current time, version 3.1 is still in beta. However, + the template will not work with the 3.0 SDK due to a number of + changes that were made to the NetIDMgr API between 3.0 and + 3.1. + +------------------------------------------------------------------ + +5. BUILDING + + The build process is fairly starightforward. The source is set up + to build using 'nmake', a build tool distributed with the Platform + SDK as well as with Visual Studio. + + 1. Open a command prompt with a suitable build environment. + + From a plain command prompt, you can set up a debug build + environment targetting Windows XP (32-bit) with: + + > "%PROGRAMFILES%\Microsoft Platform SDK\SetEnv.Cmd" /XP32 /DEBUG + + 2. Set the environment variable KFWSDKDIR to point to the root of + the Kerberos for Windows 3.1 SDK. (i.e. %KFWSDKDIR%\inc + should be the include directory of the SDK) + + > SET KFWSDKDIR=%PROGRAMFILES%\MIT\Kerberos + + 3. Start the build: + + > NMAKE all + + The build target 'all' builds the plug-in and the language + resources. There is an additional build target 'clean' which + removes the temporary files and the binaries generated during + the build. + + Assuming everything goes well, the plug-in binaries should be + created under a subdirectory under 'dest'. The name of the + subdirectory reflects the target architecture and the build + type ('debug' or 'release'). + +------------------------------------------------------------------ + +6. RUNNING THE PLUG-IN + + Once the binaries for the plug-in have been built, you need to + register the plug-in with NetIDMgr by adding a registry value as + follows: + + [HKEY_CURRENT_USER\Software\MIT\NetIDMgr\PluginManager\Modules\<Module name>] + "ImagePath"="<path>" + + The <path> should be the full path to the plug-in DLL. + + <Module name> is the name of the module that you built. The + default value specified in the template is 'MyModule'. This is + the value of the macro 'MODULENAME' defined in the 'Makefile'. + + Once this is done, you need to restart NetIDMgr so that it will + pick up the new plug-in. + +------------------------------------------------------------------ + +7. KNOWN ISSUES + + 1. With the current MIT Kerberos for Windows 3.1 beta, NetIDMgr + will fail to load the plug-in when tries to load the plug-in + for the first time. Restarting NetIDMgr will fix the problem. + This will be fixed in a future beta and the final release of + KfW 3.1 + +------------------------------------------------------------------ + +8. SUPPORT / BUG REPORTS + + Problems should be sent to netidmgr@secure-endpoints.com + +------------------------------------------------------------------ diff --git a/src/windows/identity/sample/templates/credprov/lang/en_us/langres.rc b/src/windows/identity/sample/templates/credprov/lang/en_us/langres.rc index 7e3702792..ebffa5410 100644 --- a/src/windows/identity/sample/templates/credprov/lang/en_us/langres.rc +++ b/src/windows/identity/sample/templates/credprov/lang/en_us/langres.rc @@ -1,204 +1,204 @@ -// Microsoft Visual C++ generated resource script.
-//
-#include "..\..\langres.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#include "afxres.h"
-
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-#endif //_WIN32
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE
-BEGIN
- "..\\..\\langres.h\0"
-END
-
-2 TEXTINCLUDE
-BEGIN
- "#include ""afxres.h""\r\n"
- "\0"
-END
-
-3 TEXTINCLUDE
-BEGIN
- "\r\n"
- "\0"
-END
-
-#endif // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Icon
-//
-
-// Icon with lowest ID value placed first to ensure application icon
-// remains consistent on all systems.
-IDI_PLUGIN ICON "..\\..\\images\\plugin.ico"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
-IDD_PP_CRED DIALOGEX 0, 0, 235, 156
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
-CAPTION "Property Page"
-FONT 8, "MS Shell Dlg", 0, 0, 0x0
-BEGIN
- LTEXT "TODO: layout property page",IDC_STATIC,60,73,110,8
-END
-
-IDD_PP_IDENT DIALOGEX 0, 0, 235, 156
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
-CAPTION "Property Page"
-FONT 8, "MS Shell Dlg", 0, 0, 0x0
-BEGIN
- LTEXT "TODO: layout property page",IDC_STATIC,60,73,106,8
-END
-
-IDD_NEW_CREDS DIALOGEX 0, 0, 300, 166
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN
-FONT 8, "MS Shell Dlg", 400, 0, 0x1
-BEGIN
- CONTROL "My Cred Options",IDC_STATIC,"Static",SS_LEFTNOWORDWRAP | SS_SUNKEN | WS_GROUP,7,7,286,11
-END
-
-IDD_CONFIG DIALOGEX 0, 0, 255, 182
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_SYSMENU
-FONT 8, "MS Shell Dlg", 400, 0, 0x1
-BEGIN
-END
-
-IDD_CONFIG_ID DIALOGEX 0, 0, 235, 151
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_SYSMENU
-FONT 8, "MS Shell Dlg", 400, 0, 0x1
-BEGIN
-END
-
-IDD_CONFIG_IDS DIALOGEX 0, 0, 235, 151
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_SYSMENU
-FONT 8, "MS Shell Dlg", 400, 0, 0x1
-BEGIN
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DESIGNINFO
-//
-
-#ifdef APSTUDIO_INVOKED
-GUIDELINES DESIGNINFO
-BEGIN
- IDD_PP_CRED, DIALOG
- BEGIN
- LEFTMARGIN, 7
- RIGHTMARGIN, 228
- TOPMARGIN, 7
- BOTTOMMARGIN, 149
- END
-
- IDD_PP_IDENT, DIALOG
- BEGIN
- LEFTMARGIN, 7
- RIGHTMARGIN, 228
- TOPMARGIN, 7
- BOTTOMMARGIN, 149
- END
-
- IDD_NEW_CREDS, DIALOG
- BEGIN
- LEFTMARGIN, 7
- RIGHTMARGIN, 293
- TOPMARGIN, 7
- BOTTOMMARGIN, 159
- END
-
- IDD_CONFIG, DIALOG
- BEGIN
- LEFTMARGIN, 7
- RIGHTMARGIN, 248
- TOPMARGIN, 7
- BOTTOMMARGIN, 175
- END
-
- IDD_CONFIG_ID, DIALOG
- BEGIN
- LEFTMARGIN, 7
- RIGHTMARGIN, 228
- TOPMARGIN, 7
- BOTTOMMARGIN, 144
- END
-
- IDD_CONFIG_IDS, DIALOG
- BEGIN
- LEFTMARGIN, 7
- RIGHTMARGIN, 228
- TOPMARGIN, 7
- BOTTOMMARGIN, 144
- END
-END
-#endif // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// String Table
-//
-
-STRINGTABLE
-BEGIN
- IDS_PLUGIN_DESC "My Credentials Provider Plugin"
- IDS_CT_SHORT_DESC "My Cred"
- IDS_CT_LONG_DESC "My Credential"
-END
-
-STRINGTABLE
-BEGIN
- IDS_NC_CT_TEMPLATE "<p><a id=""SwitchPanel"" param=""MyCred""><b>My Cred</b></a><tab>: %s</p>"
- IDS_NC_CT_TEMPLATE_NL "<p><tab> %s</p>"
- IDS_GEN_NONE "(none)"
- IDS_CFG_SHORT_DESC "My Creds"
- IDS_CFG_LONG_DESC "My Creds Options"
- IDS_CFG_IDS_SHORT_DESC "My Creds"
- IDS_CFG_IDS_LONG_DESC "My Creds Options for all identities"
- IDS_CFG_ID_SHORT_DESC "My Creds"
- IDS_CFG_ID_LONG_DESC "My Creds Options for this identity"
-END
-
-#endif // English (U.S.) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-
-
-/////////////////////////////////////////////////////////////////////////////
-#endif // not APSTUDIO_INVOKED
-
+// Microsoft Visual C++ generated resource script. +// +#include "..\..\langres.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (U.S.) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "..\\..\\langres.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_PLUGIN ICON "..\\..\\images\\plugin.ico" + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog +// + +IDD_PP_CRED DIALOGEX 0, 0, 235, 156 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +CAPTION "Property Page" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + LTEXT "TODO: layout property page",IDC_STATIC,60,73,110,8 +END + +IDD_PP_IDENT DIALOGEX 0, 0, 235, 156 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +CAPTION "Property Page" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + LTEXT "TODO: layout property page",IDC_STATIC,60,73,106,8 +END + +IDD_NEW_CREDS DIALOGEX 0, 0, 300, 166 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN +FONT 8, "MS Shell Dlg", 400, 0, 0x1 +BEGIN + CONTROL "My Cred Options",IDC_STATIC,"Static",SS_LEFTNOWORDWRAP | SS_SUNKEN | WS_GROUP,7,7,286,11 +END + +IDD_CONFIG DIALOGEX 0, 0, 255, 182 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_SYSMENU +FONT 8, "MS Shell Dlg", 400, 0, 0x1 +BEGIN +END + +IDD_CONFIG_ID DIALOGEX 0, 0, 235, 151 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_SYSMENU +FONT 8, "MS Shell Dlg", 400, 0, 0x1 +BEGIN +END + +IDD_CONFIG_IDS DIALOGEX 0, 0, 235, 151 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_SYSMENU +FONT 8, "MS Shell Dlg", 400, 0, 0x1 +BEGIN +END + + +///////////////////////////////////////////////////////////////////////////// +// +// DESIGNINFO +// + +#ifdef APSTUDIO_INVOKED +GUIDELINES DESIGNINFO +BEGIN + IDD_PP_CRED, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 228 + TOPMARGIN, 7 + BOTTOMMARGIN, 149 + END + + IDD_PP_IDENT, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 228 + TOPMARGIN, 7 + BOTTOMMARGIN, 149 + END + + IDD_NEW_CREDS, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 293 + TOPMARGIN, 7 + BOTTOMMARGIN, 159 + END + + IDD_CONFIG, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 248 + TOPMARGIN, 7 + BOTTOMMARGIN, 175 + END + + IDD_CONFIG_ID, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 228 + TOPMARGIN, 7 + BOTTOMMARGIN, 144 + END + + IDD_CONFIG_IDS, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 228 + TOPMARGIN, 7 + BOTTOMMARGIN, 144 + END +END +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// String Table +// + +STRINGTABLE +BEGIN + IDS_PLUGIN_DESC "My Credentials Provider Plugin" + IDS_CT_SHORT_DESC "My Cred" + IDS_CT_LONG_DESC "My Credential" +END + +STRINGTABLE +BEGIN + IDS_NC_CT_TEMPLATE "<p><a id=""SwitchPanel"" param=""MyCred""><b>My Cred</b></a><tab>: %s</p>" + IDS_NC_CT_TEMPLATE_NL "<p><tab> %s</p>" + IDS_GEN_NONE "(none)" + IDS_CFG_SHORT_DESC "My Creds" + IDS_CFG_LONG_DESC "My Creds Options" + IDS_CFG_IDS_SHORT_DESC "My Creds" + IDS_CFG_IDS_LONG_DESC "My Creds Options for all identities" + IDS_CFG_ID_SHORT_DESC "My Creds" + IDS_CFG_ID_LONG_DESC "My Creds Options for this identity" +END + +#endif // English (U.S.) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/src/windows/identity/sample/templates/credprov/version.rc b/src/windows/identity/sample/templates/credprov/version.rc index c27766761..47b032c4f 100644 --- a/src/windows/identity/sample/templates/credprov/version.rc +++ b/src/windows/identity/sample/templates/credprov/version.rc @@ -1,94 +1,94 @@ -/* Copyright (c) 2006 Secure Endpoints Inc.
- *
- * Permission is hereby granted, free of charge, to any person
- * obtaining a copy of this software and associated documentation
- * files (the "Software"), to deal in the Software without
- * restriction, including without limitation the rights to use, copy,
- * modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- */
-
-/* $Id$ */
-
-#include "credprov.h"
-#include<netidmgr_version.h>
-
-/* We use the same version.rc file for the main plugin DLL as well as
- for the localized resource DLLs.*/
-
-#ifndef LANGVER
-
-#define STR_FILEDESC "My Credentials Provider Plugin for NetIDMgr"
-#define STR_INTNAME MYPLUGIN_NAME
-#define STR_ORIGNAME MYPLUGIN_DLLBASE ".dll"
-
-#else
-
-#ifdef LANG_en_us
-
-#define STR_FILEDESC "English(US) language resources for My Credentials Provider"
-#define STR_INTNAME MYPLUGIN_DLLBASE "_en_us"
-#define STR_ORIGNAME MYPLUGIN_DLLBASE "_en_us.dll"
-
-#else
-
-#error Unknown langugae
-
-#endif
-
-#endif
-
-1 VERSIONINFO
- FILEVERSION VERSION_LISTC
- PRODUCTVERSION VERSION_LISTC
- FILEFLAGSMASK KH_VER_FILEFLAGMASK
- FILEFLAGS KH_VER_FILEFLAGS
- FILEOS KH_VER_FILEOS
- FILETYPE KH_VER_FILETYPEDLL
- FILESUBTYPE 0
- {
-
- BLOCK "StringFileInfo"
- {
- BLOCK "040904b0"
- {
- VALUE "CompanyName", "My Company"
- VALUE "FileDescription", "My Credentials Provider Plugin"
- VALUE "FileVersion", VERSION_STRING
- VALUE "InternalName", STR_INTNAME
- VALUE "LegalCopyright", "(C) 2006 My Company"
- VALUE "OriginalFilename", STR_ORIGNAME
- VALUE "ProductName", "My Plugin Product"
- VALUE "ProductVersion", VERSION_STRING
-#ifndef LANGVER
- VALUE NIMV_MODULE, MYMODULE_NAME
-
-/* if more than one plugin is provided by this module, then all of
- those plugins should be listed here separated by commas. */
- VALUE NIMV_PLUGINS, MYPLUGIN_NAME
-
- VALUE NIMV_APIVER, KH_VERSION_STRINGAPI
- VALUE NIMV_SUPPORT, "http://example.com/myplugin"
-#endif
- }
- }
-
- BLOCK "VarFileInfo"
- {
- VALUE "Translation", 0x409, 1200
- }
- }
+/* Copyright (c) 2006 Secure Endpoints Inc. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +/* $Id$ */ + +#include "credprov.h" +#include<netidmgr_version.h> + +/* We use the same version.rc file for the main plugin DLL as well as + for the localized resource DLLs.*/ + +#ifndef LANGVER + +#define STR_FILEDESC "My Credentials Provider Plugin for NetIDMgr" +#define STR_INTNAME MYPLUGIN_NAME +#define STR_ORIGNAME MYPLUGIN_DLLBASE ".dll" + +#else + +#ifdef LANG_en_us + +#define STR_FILEDESC "English(US) language resources for My Credentials Provider" +#define STR_INTNAME MYPLUGIN_DLLBASE "_en_us" +#define STR_ORIGNAME MYPLUGIN_DLLBASE "_en_us.dll" + +#else + +#error Unknown langugae + +#endif + +#endif + +1 VERSIONINFO + FILEVERSION VERSION_LISTC + PRODUCTVERSION VERSION_LISTC + FILEFLAGSMASK KH_VER_FILEFLAGMASK + FILEFLAGS KH_VER_FILEFLAGS + FILEOS KH_VER_FILEOS + FILETYPE KH_VER_FILETYPEDLL + FILESUBTYPE 0 + { + + BLOCK "StringFileInfo" + { + BLOCK "040904b0" + { + VALUE "CompanyName", "My Company" + VALUE "FileDescription", "My Credentials Provider Plugin" + VALUE "FileVersion", VERSION_STRING + VALUE "InternalName", STR_INTNAME + VALUE "LegalCopyright", "(C) 2006 My Company" + VALUE "OriginalFilename", STR_ORIGNAME + VALUE "ProductName", "My Plugin Product" + VALUE "ProductVersion", VERSION_STRING +#ifndef LANGVER + VALUE NIMV_MODULE, MYMODULE_NAME + +/* if more than one plugin is provided by this module, then all of + those plugins should be listed here separated by commas. */ + VALUE NIMV_PLUGINS, MYPLUGIN_NAME + + VALUE NIMV_APIVER, KH_VERSION_STRINGAPI + VALUE NIMV_SUPPORT, "http://example.com/myplugin" +#endif + } + } + + BLOCK "VarFileInfo" + { + VALUE "Translation", 0x409, 1200 + } + } |
