summaryrefslogtreecommitdiffstats
path: root/ldap
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2007-06-12 22:26:23 +0000
committerNathan Kinder <nkinder@redhat.com>2007-06-12 22:26:23 +0000
commitee19ccbf7cfa42ff8b684b5e9de4c9d2f7d8145e (patch)
treec82acfe0347c1b98fd222f5a4bbefb988d3977de /ldap
parentb74967d111e7d6e73c5b8d90c8daae31a2d98522 (diff)
downloadds-ee19ccbf7cfa42ff8b684b5e9de4c9d2f7d8145e.tar.gz
ds-ee19ccbf7cfa42ff8b684b5e9de4c9d2f7d8145e.tar.xz
ds-ee19ccbf7cfa42ff8b684b5e9de4c9d2f7d8145e.zip
Summary: Removed unused source files.
Diffstat (limited to 'ldap')
-rw-r--r--ldap/libraries/libutil/Makefile97
-rw-r--r--ldap/libraries/libutil/getopt.c114
-rw-r--r--ldap/libraries/libutil/ntdebug.c88
-rw-r--r--ldap/libraries/libutil/ntevent.c222
-rw-r--r--ldap/libraries/libutil/ntreg.c142
-rw-r--r--ldap/libraries/libutil/ntresource.h68
-rw-r--r--ldap/libraries/libutil/ntstubs.c77
7 files changed, 0 insertions, 808 deletions
diff --git a/ldap/libraries/libutil/Makefile b/ldap/libraries/libutil/Makefile
deleted file mode 100644
index 2bec1d04..00000000
--- a/ldap/libraries/libutil/Makefile
+++ /dev/null
@@ -1,97 +0,0 @@
-#
-# BEGIN COPYRIGHT BLOCK
-# This Program is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free Software
-# Foundation; version 2 of the License.
-#
-# This Program 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along with
-# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
-# Place, Suite 330, Boston, MA 02111-1307 USA.
-#
-# In addition, as a special exception, Red Hat, Inc. gives You the additional
-# right to link the code of this Program with code not covered under the GNU
-# General Public License ("Non-GPL Code") and to distribute linked combinations
-# including the two, subject to the limitations in this paragraph. Non-GPL Code
-# permitted under this exception must only link to the code of this Program
-# through those well defined interfaces identified in the file named EXCEPTION
-# found in the source code files (the "Approved Interfaces"). The files of
-# Non-GPL Code may instantiate templates or use macros or inline functions from
-# the Approved Interfaces without causing the resulting work to be covered by
-# the GNU General Public License. Only Red Hat, Inc. may make changes or
-# additions to the list of Approved Interfaces. You must obey the GNU General
-# Public License in all respects for all of the Program code and other code used
-# in conjunction with the Program except the Non-GPL Code covered by this
-# exception. If you modify this file, you may extend this exception to your
-# version of the file, but you are not obligated to do so. If you do not wish to
-# provide this exception without modification, you must delete this exception
-# statement from your version and license this file solely under the GPL without
-# exception.
-#
-#
-# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
-# Copyright (C) 2005 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-#
-#
-# GNU Makefile for libutil
-#
-
-LDAP_SRC = ../..
-BUILD_ROOT = ../../..
-
-NOSTDCLEAN=true # don't let nsconfig.mk define target clean
-NOSTDSTRIP=true # don't let nsconfig.mk define target strip
-
-OBJDEST = $(OBJDIR)/lib/libutil
-LIBDIR = $(LDAP_LIBDIR)
-
-include $(BUILD_ROOT)/nsdefs.mk
-include $(BUILD_ROOT)/nsconfig.mk
-include $(LDAP_SRC)/nsldap.mk
-
-#
-# ntdebug.c currently not used
-#
-LIBUTIL_OBJS= getopt.o ntevent.o \
- ntreg.o ntstubs.o
-
-OBJS = $(addprefix $(OBJDEST)/, $(LIBUTIL_OBJS))
-
-LIBUTIL= $(addprefix $(LIBDIR)/, libutil.$(LIB_SUFFIX))
-
-INCLUDES += -I$(LDAP_SRC)/servers/slapd -I$(OBJDIR)/include
-
-SLAPDMESSAGES_H=$(BUILD_ROOT)/ldap/include/ntslapdmessages.h
-
-ifeq ($(LDAP_NO_LIBLCACHE),1)
-CFLAGS+=-DNO_LIBLCACHE
-endif
-
-clientSDK: all
-
-all: $(OBJDEST) $(SLAPDMESSAGES_H) $(LIBDIR) $(OBJS) $(LIBUTIL)
-
-$(LIBDIR):
- $(MKDIR) $(LIBDIR)
-
-$(LIBUTIL): $(OBJS)
- $(LINK_LIB)
-
-$(SLAPDMESSAGES_H):
- @echo target: $@
- cd $(BUILD_ROOT)/ldap/servers/slapd/ntmsgdll; $(MAKE) $(MFLAGS)
-
-veryclean: clean
-
-clean:
- $(RM) $(OBJS)
- $(RM) $(LIBUTIL)
-
-$(OBJDEST):
- $(MKDIR) $(OBJDEST)
-
diff --git a/ldap/libraries/libutil/getopt.c b/ldap/libraries/libutil/getopt.c
deleted file mode 100644
index e3c5d56f..00000000
--- a/ldap/libraries/libutil/getopt.c
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * Copyright (c) 1987 Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms are permitted
- * provided that: (1) source distributions retain this entire copyright
- * notice and comment, and (2) distributions including binaries display
- * the following acknowledgement: ``This product includes software
- * developed by the University of California, Berkeley and its contributors''
- * in the documentation or other materials provided with the distribution
- * and in all advertising materials mentioning features or use of this
- * software. Neither the name of the University nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-
-#ifdef _WINDOWS
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)getopt.c 4.12 (Berkeley) 6/1/90";
-#endif /* LIBC_SCCS and not lint */
-
-#include <windows.h>
-#include <stdio.h>
-#include <string.h>
-#include "lber.h"
-#define index strchr
-#define rindex strrchr
-
-/*
- * get option letter from argument vector
- */
-int opterr = 1, /* if error message should be printed */
- optind = 1, /* index into parent argv vector */
- optopt; /* character checked for validity */
-char *optarg; /* argument associated with option */
-
-#define BADCH (int)'?'
-#define EMSG ""
-
-int getopt(int nargc, char *const *nargv, const char *ostr)
-{
- static char *place = EMSG; /* option letter processing */
- register char *oli; /* option letter list index */
- char *p;
-
- if (!*place) { /* update scanning pointer */
- if (optind >= nargc || *(place = nargv[optind]) != '-') {
- place = EMSG;
- return(EOF);
- }
- if (place[1] && *++place == '-') { /* found "--" */
- ++optind;
- place = EMSG;
- return(EOF);
- }
- } /* option letter okay? */
- if ((optopt = (int)*place++) == (int)':' ||
- !(oli = index(ostr, optopt))) {
- /*
- * if the user didn't specify '-' as an option,
- * assume it means EOF.
- */
- if (optopt == (int)'-')
- return(EOF);
- if (!*place)
- ++optind;
- if (opterr) {
- if (!(p = rindex(*nargv, '/')))
- p = *nargv;
- else
- ++p;
- (void)fprintf(stderr, "%s: illegal option -- %c\n",
- p, optopt);
- }
- return(BADCH);
- }
- if (*++oli != ':') { /* don't need argument */
- optarg = NULL;
- if (!*place)
- ++optind;
- }
- else { /* need an argument */
- if (*place) /* no white space */
- optarg = place;
- else if (nargc <= ++optind) { /* no arg */
- place = EMSG;
- if (!(p = rindex(*nargv, '/')))
- p = *nargv;
- else
- ++p;
- if (opterr)
- (void)fprintf(stderr,
- "%s: option requires an argument -- %c\n",
- p, optopt);
- return(BADCH);
- }
- else /* white space */
- optarg = nargv[optind];
- place = EMSG;
- ++optind;
- }
- return(optopt); /* dump back option letter */
-}
-
-#endif
diff --git a/ldap/libraries/libutil/ntdebug.c b/ldap/libraries/libutil/ntdebug.c
deleted file mode 100644
index 9f429574..00000000
--- a/ldap/libraries/libutil/ntdebug.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/** BEGIN COPYRIGHT BLOCK
- * This Program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation; version 2 of the License.
- *
- * This Program 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA.
- *
- * In addition, as a special exception, Red Hat, Inc. gives You the additional
- * right to link the code of this Program with code not covered under the GNU
- * General Public License ("Non-GPL Code") and to distribute linked combinations
- * including the two, subject to the limitations in this paragraph. Non-GPL Code
- * permitted under this exception must only link to the code of this Program
- * through those well defined interfaces identified in the file named EXCEPTION
- * found in the source code files (the "Approved Interfaces"). The files of
- * Non-GPL Code may instantiate templates or use macros or inline functions from
- * the Approved Interfaces without causing the resulting work to be covered by
- * the GNU General Public License. Only Red Hat, Inc. may make changes or
- * additions to the list of Approved Interfaces. You must obey the GNU General
- * Public License in all respects for all of the Program code and other code used
- * in conjunction with the Program except the Non-GPL Code covered by this
- * exception. If you modify this file, you may extend this exception to your
- * version of the file, but you are not obligated to do so. If you do not wish to
- * provide this exception without modification, you must delete this exception
- * statement from your version and license this file solely under the GPL without
- * exception.
- *
- *
- * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- * Copyright (C) 2005 Red Hat, Inc.
- * All rights reserved.
- * END COPYRIGHT BLOCK **/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-/******************************************************
- *
- * ntdebug.c - Sends debug output to window and stdout
- * on Win32 platforms.
- *
- ******************************************************/
-
-#if defined( _WIN32 )
-#include <windows.h>
-#include <time.h>
-#include <stdio.h>
-#if defined( SLAPD_LOGGING )
-#include "slap.h"
-#include "proto-slap.h"
-#else
-#include "ldap.h"
-#include "ldaplog.h"
-#endif
-int slapd_ldap_debug = LDAP_DEBUG_ANY;
-FILE *error_logfp = NULL;
-
-void LDAPDebug( int level, char *fmt, ... )
-{
- va_list arg_ptr;
- va_start( arg_ptr, fmt );
- if ( slapd_ldap_debug & level )
- {
- char szFormattedString[512];
- PR_vsnprintf( szFormattedString, sizeof( szFormattedString ), fmt, arg_ptr );
-
-#if defined( LDAP_DEBUG )
- /* Send to debug window ...*/
- OutputDebugString( szFormattedString );
-
- /* ... and to stderr */
- fprintf( stderr, szFormattedString );
-#endif
-#if defined( SLAPD_LOGGING )
- if ( error_logfp != NULL )
- slapd_log_error( error_logfp, szFormattedString );
-#endif
- }
- va_end( arg_ptr );
-
-}
-#endif
diff --git a/ldap/libraries/libutil/ntevent.c b/ldap/libraries/libutil/ntevent.c
deleted file mode 100644
index 0eab55ef..00000000
--- a/ldap/libraries/libutil/ntevent.c
+++ /dev/null
@@ -1,222 +0,0 @@
-/** BEGIN COPYRIGHT BLOCK
- * This Program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation; version 2 of the License.
- *
- * This Program 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA.
- *
- * In addition, as a special exception, Red Hat, Inc. gives You the additional
- * right to link the code of this Program with code not covered under the GNU
- * General Public License ("Non-GPL Code") and to distribute linked combinations
- * including the two, subject to the limitations in this paragraph. Non-GPL Code
- * permitted under this exception must only link to the code of this Program
- * through those well defined interfaces identified in the file named EXCEPTION
- * found in the source code files (the "Approved Interfaces"). The files of
- * Non-GPL Code may instantiate templates or use macros or inline functions from
- * the Approved Interfaces without causing the resulting work to be covered by
- * the GNU General Public License. Only Red Hat, Inc. may make changes or
- * additions to the list of Approved Interfaces. You must obey the GNU General
- * Public License in all respects for all of the Program code and other code used
- * in conjunction with the Program except the Non-GPL Code covered by this
- * exception. If you modify this file, you may extend this exception to your
- * version of the file, but you are not obligated to do so. If you do not wish to
- * provide this exception without modification, you must delete this exception
- * statement from your version and license this file solely under the GPL without
- * exception.
- *
- *
- * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- * Copyright (C) 2005 Red Hat, Inc.
- * All rights reserved.
- * END COPYRIGHT BLOCK **/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-
-#ifdef _WIN32
-
-#include <windows.h>
-#include <stdio.h>
-#include "ldap.h"
-#include "regparms.h"
-#include "nspr.h"
-#include "plstr.h"
-
-HANDLE hSlapdEventSource;
-LPTSTR pszServerName;
-
-void ReportSlapdEvent(WORD wEventType, DWORD dwIdEvent, WORD wNumInsertStrings,
- char *pszStrings)
-{
- LPCTSTR lpszStrings[64];
- BOOL bSuccess;
-
- if( hSlapdEventSource )
- {
- if( pszServerName )
- lpszStrings[0] = (LPCTSTR)pszServerName;
-
- if( pszStrings != NULL)
- lpszStrings[1] = (LPCTSTR)pszStrings;
-
- wNumInsertStrings++;
-
- /* Now report the event, which will add this event to the event log */
- bSuccess = ReportEvent(hSlapdEventSource, /* event-log handle */
- wEventType, /* event type */
- 0, /* category zero */
- dwIdEvent, /* event ID */
- NULL, /* no user SID */
- wNumInsertStrings, /* number of substr */
- 0, /* no binary data */
- lpszStrings, /* string array */
- NULL); /* address of data */
- }
-
-} /* ReportSlapdEvent */
-
-BOOL ReportSlapdStatusToSCMgr(
- SERVICE_STATUS *serviceStatus,
- SERVICE_STATUS_HANDLE serviceStatusHandle,
- HANDLE Event,
- DWORD dwCurrentState,
- DWORD dwWin32ExitCode,
- DWORD dwCheckPoint,
- DWORD dwWaitHint)
-{
- /* Disable control requests until the service is started. */
- if (dwCurrentState == SERVICE_START_PENDING)
- serviceStatus->dwControlsAccepted = 0;
- else
- serviceStatus->dwControlsAccepted = SERVICE_ACCEPT_STOP |
- SERVICE_ACCEPT_PAUSE_CONTINUE;
-
- serviceStatus->dwCurrentState = dwCurrentState;
- serviceStatus->dwWin32ExitCode = dwWin32ExitCode;
- serviceStatus->dwCheckPoint = dwCheckPoint;
-
- serviceStatus->dwWaitHint = dwWaitHint;
-
- /* Report the status of the service to the service control manager. */
- return SetServiceStatus( serviceStatusHandle, serviceStatus);
-
-} /* ReportSlapdStatusToSCMgr */
-
-// This is a routine that we use to check for multiple instances of a server with
-// the same id. We cannot use a shared data section to keep count of instances since
-// there will be multiple instances of the server running. MS recommends using a
-// sync object to do this. Thus we attempt to create an object with same NAME
-// but different TYPE as the server "Done" event.We have a small race condition
-// between the check and the creation of the "Done" event.
-
-BOOL
-MultipleInstances()
-{
- HANDLE hServDoneSemaphore;
- DWORD result;
- CHAR ErrMsg[1024];
- char szDoneEvent[256];
-
- if( !pszServerName )
- return FALSE;
-
- PR_snprintf(szDoneEvent, sizeof(szDoneEvent), "NS_%s", pszServerName);
-
- hServDoneSemaphore = CreateSemaphore(
- NULL, // security attributes
- 0, // initial count for semaphore
- 1, // maximum count for semaphore
- szDoneEvent);
-
- if ( hServDoneSemaphore == NULL) {
-
- result = GetLastError();
- if (result == ERROR_INVALID_HANDLE) {
-
- PR_snprintf(ErrMsg, sizeof(ErrMsg), "Server %s is already"
- " running. Terminating this instance.", pszServerName);
-
- MessageBox(GetDesktopWindow(), ErrMsg,
- "SERVER ALREADY RUNNING", MB_ICONEXCLAMATION | MB_OK);
- return TRUE;
-
- } else {
- /* We aren't too interested in why the creation failed
- * if it is not because of another instance */
-
- return FALSE;
- }
- } // hServDoneSemaphore == NULL
-
- CloseHandle(hServDoneSemaphore);
- return FALSE;
-}
-
-BOOL SlapdIsAService()
-{
- // May change in V2.0
- return FALSE;
-}
-
-BOOL SlapdGetServerNameFromCmdline(char *szServerName, char *szCmdLine, int dirname)
-{
- BOOL bReturn = FALSE;
- char *szChar = NULL;
- char szCmdCopy[_MAX_PATH];
-
- if( szCmdLine )
- {
- memset(szCmdCopy, 0, _MAX_PATH );
- PL_strncpyz( szCmdCopy, szCmdLine , sizeof(szCmdCopy) );
- }
- else
- return(bReturn);
-
- // szCmdCopy should be something like
- // c:\navgold\server\slapd-kennedy\config\slapd.conf
- // unless dirname is TRUE in which case it should be
- // c:\navgold\server\slapd-kennedy
- if(szChar = strrchr(szCmdCopy, '\\'))
- {
- *szChar = 0;
- if(dirname)
- {
- strcpy(szServerName, szChar+1);
- bReturn = TRUE;
- }
- else if(szChar = strrchr(szCmdCopy, '\\'))
- {
- // szCmdCopy should be c:\navgold\server\slapd-kennedy\config
- *szChar = 0;
- // szCmdCopy should be c:\navgold\server\slapd-kennedy
- if(szChar = strrchr(szCmdCopy, '\\'))
- {
- szChar++;
- // szChar should point to slapd-kennedy
- strcpy(szServerName, szChar);
- bReturn = TRUE;
- }
- }
- }
- else
- {
- // szCmdCopy should be something like slapd-kennedy
- strcpy(szServerName, szCmdCopy);
- bReturn = TRUE;
- }
-
- if(strlen(szServerName) == 0)
- bReturn = FALSE;
-
- return(bReturn);
-}
-
-#endif _WIN32
diff --git a/ldap/libraries/libutil/ntreg.c b/ldap/libraries/libutil/ntreg.c
deleted file mode 100644
index 1efd536e..00000000
--- a/ldap/libraries/libutil/ntreg.c
+++ /dev/null
@@ -1,142 +0,0 @@
-/** BEGIN COPYRIGHT BLOCK
- * This Program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation; version 2 of the License.
- *
- * This Program 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA.
- *
- * In addition, as a special exception, Red Hat, Inc. gives You the additional
- * right to link the code of this Program with code not covered under the GNU
- * General Public License ("Non-GPL Code") and to distribute linked combinations
- * including the two, subject to the limitations in this paragraph. Non-GPL Code
- * permitted under this exception must only link to the code of this Program
- * through those well defined interfaces identified in the file named EXCEPTION
- * found in the source code files (the "Approved Interfaces"). The files of
- * Non-GPL Code may instantiate templates or use macros or inline functions from
- * the Approved Interfaces without causing the resulting work to be covered by
- * the GNU General Public License. Only Red Hat, Inc. may make changes or
- * additions to the list of Approved Interfaces. You must obey the GNU General
- * Public License in all respects for all of the Program code and other code used
- * in conjunction with the Program except the Non-GPL Code covered by this
- * exception. If you modify this file, you may extend this exception to your
- * version of the file, but you are not obligated to do so. If you do not wish to
- * provide this exception without modification, you must delete this exception
- * statement from your version and license this file solely under the GPL without
- * exception.
- *
- *
- * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- * Copyright (C) 2005 Red Hat, Inc.
- * All rights reserved.
- * END COPYRIGHT BLOCK **/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-
-#ifdef _WIN32
-
-#include <windows.h>
-#include <stdio.h>
-#include "ldap.h"
-
-int SlapdGetRegSZ( LPTSTR lpszRegKey, LPSTR lpszValueName, LPTSTR lpszValue )
-{
- HKEY hKey;
- DWORD dwType, dwNumBytes;
- LONG lResult;
-
- /* Open the registry, get the required key handle. */
- lResult = RegOpenKeyEx( HKEY_LOCAL_MACHINE, lpszRegKey,
- 0L, KEY_QUERY_VALUE, &hKey );
- if (lResult == ERROR_SUCCESS)
- {
- dwNumBytes = sizeof( DWORD );
- lResult = RegQueryValueEx( hKey, lpszValueName, 0,
- &dwType, NULL, &dwNumBytes );
- if( lResult == ERROR_SUCCESS )
- {
- RegQueryValueEx( hKey, lpszValueName, 0, &dwType,
- (LPBYTE)lpszValue, &dwNumBytes );
- *(lpszValue+dwNumBytes) = 0;
-
- /* Close the Registry. */
- RegCloseKey(hKey);
- return 0;
- }
- else
- {
- /* No config file location stored in the Registry. */
- RegCloseKey(hKey);
- return 1;
- }
- }
- else
- {
- return 1;
- }
-} /* SlapdGetRegSZ */
-
-
-int SlapdSetRegSZ( LPTSTR lpszKey, LPSTR lpszValueName, LPTSTR lpszValue )
-{
- HKEY hKey;
- LONG lResult;
-
- /* Open the registry, get a handle to the desired key. */
- lResult = RegOpenKeyEx( HKEY_LOCAL_MACHINE, lpszKey, 0,
- KEY_ALL_ACCESS, &hKey );
- if (lResult == ERROR_SUCCESS)
- {
- /* Set the value to the value-name at the key location. */
- RegSetValueEx( hKey, lpszValueName, 0, REG_SZ,
- (CONST BYTE*)lpszValue, strlen(lpszValue) );
-
- /* Close the registry */
- RegCloseKey(hKey);
- return 0;
- }
- else
- {
- return 1;
- }
-} /* SlapdSetRegSZ */
-
-/* converts '/' chars to '\' */
-void
-unixtodospath(char *szText)
-{
- if(szText)
- {
- while(*szText)
- {
- if( *szText == '/' )
- *szText = '\\';
- szText++;
- }
- }
-}
-
-/* converts '\' chars to '/' */
-void
-dostounixpath(char *szText)
-{
- if(szText)
- {
- while(*szText)
- {
- if( *szText == '\\' )
- *szText = '/';
- szText++;
- }
- }
-}
-
-#endif /* _WIN32 */
diff --git a/ldap/libraries/libutil/ntresource.h b/ldap/libraries/libutil/ntresource.h
deleted file mode 100644
index c8953513..00000000
--- a/ldap/libraries/libutil/ntresource.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/** BEGIN COPYRIGHT BLOCK
- * This Program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation; version 2 of the License.
- *
- * This Program 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA.
- *
- * In addition, as a special exception, Red Hat, Inc. gives You the additional
- * right to link the code of this Program with code not covered under the GNU
- * General Public License ("Non-GPL Code") and to distribute linked combinations
- * including the two, subject to the limitations in this paragraph. Non-GPL Code
- * permitted under this exception must only link to the code of this Program
- * through those well defined interfaces identified in the file named EXCEPTION
- * found in the source code files (the "Approved Interfaces"). The files of
- * Non-GPL Code may instantiate templates or use macros or inline functions from
- * the Approved Interfaces without causing the resulting work to be covered by
- * the GNU General Public License. Only Red Hat, Inc. may make changes or
- * additions to the list of Approved Interfaces. You must obey the GNU General
- * Public License in all respects for all of the Program code and other code used
- * in conjunction with the Program except the Non-GPL Code covered by this
- * exception. If you modify this file, you may extend this exception to your
- * version of the file, but you are not obligated to do so. If you do not wish to
- * provide this exception without modification, you must delete this exception
- * statement from your version and license this file solely under the GPL without
- * exception.
- *
- *
- * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- * Copyright (C) 2005 Red Hat, Inc.
- * All rights reserved.
- * END COPYRIGHT BLOCK **/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-//{{NO_DEPENDENCIES}}
-// Microsoft Developer Studio generated include file.
-// Used by ntslapd.rc
-//
-#define IDD_DATABASE_PASSWORD 101
-#define IDD_FORTEZZA_PIN 102
-#define IDI_KEY 103
-#define IDI_LOGO 105
-#define IDR_MENU 205
-#define IDEDIT 1000
-#define ID_SERVER_RESTART 40001
-#define ID_FILE_EXIT 40003
-#define ID_SERVER_SHUTDOWN 40004
-#define ID_SERVER_SUSPEND 40005
-#define ID_SERVER_RESUME 40006
-
-// Next default values for new objects
-//
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_NEXT_RESOURCE_VALUE 106
-#define _APS_NEXT_COMMAND_VALUE 40001
-#define _APS_NEXT_CONTROL_VALUE 1001
-#define _APS_NEXT_SYMED_VALUE 101
-#endif
-#endif
diff --git a/ldap/libraries/libutil/ntstubs.c b/ldap/libraries/libutil/ntstubs.c
deleted file mode 100644
index 393e269e..00000000
--- a/ldap/libraries/libutil/ntstubs.c
+++ /dev/null
@@ -1,77 +0,0 @@
-/** BEGIN COPYRIGHT BLOCK
- * This Program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation; version 2 of the License.
- *
- * This Program 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA.
- *
- * In addition, as a special exception, Red Hat, Inc. gives You the additional
- * right to link the code of this Program with code not covered under the GNU
- * General Public License ("Non-GPL Code") and to distribute linked combinations
- * including the two, subject to the limitations in this paragraph. Non-GPL Code
- * permitted under this exception must only link to the code of this Program
- * through those well defined interfaces identified in the file named EXCEPTION
- * found in the source code files (the "Approved Interfaces"). The files of
- * Non-GPL Code may instantiate templates or use macros or inline functions from
- * the Approved Interfaces without causing the resulting work to be covered by
- * the GNU General Public License. Only Red Hat, Inc. may make changes or
- * additions to the list of Approved Interfaces. You must obey the GNU General
- * Public License in all respects for all of the Program code and other code used
- * in conjunction with the Program except the Non-GPL Code covered by this
- * exception. If you modify this file, you may extend this exception to your
- * version of the file, but you are not obligated to do so. If you do not wish to
- * provide this exception without modification, you must delete this exception
- * statement from your version and license this file solely under the GPL without
- * exception.
- *
- *
- * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- * Copyright (C) 2005 Red Hat, Inc.
- * All rights reserved.
- * END COPYRIGHT BLOCK **/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-/******************************************************
- *
- * ntstubs.c - Stubs needed on NT when linking in
- * the SSL code. If these stubs were not here, the
- * named functions below would not be located at link
- * time, because there is no implementation of the
- * functions for Win32 in cross-platform libraries.
- *
- ******************************************************/
-
-#if defined( _WIN32 )
-
-#include <windows.h>
-#include <nspr.h>
-
-/*
-char* XP_FileName (const char* name, XP_FileType type)
-{
- return NULL;
-}
-
-XP_File XP_FileOpen(const char* name, XP_FileType type,
- const XP_FilePerm permissions)
-{
- return NULL;
-}
-*/
-
-char *
-WH_FileName (const char *name, PRFileType type)
-{
- return NULL;
-}
-#endif /* WIN32 */
-