/*
* Copyright (c) 1995-2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <string.h>
#include "lber.h"
#include "ldap.h"
#include "ldap-private.h"
#include "ldap-int.h"
/*
* ldap_get_option()
*/
int
{
return (-1);
#ifdef _REENTRANT
#endif
switch (option) {
case LDAP_OPT_API_INFO:
#ifdef _REENTRANT
#endif
return (-1);
}
/* No extensions are currently supported */
break;
case LDAP_OPT_DESC: /* depricated option */
break;
case LDAP_OPT_DEREF:
break;
case LDAP_OPT_SIZELIMIT:
break;
case LDAP_OPT_TIMELIMIT:
break;
case LDAP_OPT_REBIND_FN: /* depricated option */
break;
case LDAP_OPT_REBIND_ARG: /* depricated option */
break;
case LDAP_OPT_REFERRALS:
break;
case LDAP_OPT_RESTART:
break;
break;
case LDAP_OPT_SERVER_CONTROLS:
break;
case LDAP_OPT_CLIENT_CONTROLS:
break;
NULL)) {
#ifdef _REENTRANT
#endif
return (-1);
}
/*
* This option must be completed when optional api's (or
* (extensions) are supported by this library. Right now
* there are none, and therefore this section can not be
* completed.
*/
break;
case LDAP_OPT_HOST_NAME:
break;
case LDAP_OPT_ERROR_NUMBER:
break;
case LDAP_OPT_ERROR_STRING:
break;
case LDAP_OPT_MATCHED_DN:
/* case LDAP_OPT_ERROR_MATCHED: depricated option */
break;
break;
default:
#ifdef _REENTRANT
#endif
return (-1);
}
#ifdef _REENTRANT
#endif
return (0);
}
int
{
return (-1);
#ifdef _REENTRANT
#endif
switch (option) {
case LDAP_OPT_DESC:
break;
case LDAP_OPT_DEREF:
if (*(int *)invalue != LDAP_DEREF_NEVER &&
*(int *)invalue != LDAP_DEREF_SEARCHING &&
*(int *)invalue != LDAP_DEREF_FINDING &&
*(int *)invalue != LDAP_DEREF_ALWAYS) {
#ifdef _REENTRANT
#endif
return (-1);
}
break;
case LDAP_OPT_SIZELIMIT:
break;
case LDAP_OPT_TIMELIMIT:
break;
case LDAP_OPT_REBIND_FN:
/* cast needs to be updated when ldap.h gets updated */
break;
case LDAP_OPT_REBIND_ARG:
break;
case LDAP_OPT_REFERRALS:
#ifdef _REENTRANT
#endif
return (-1);
}
break;
case LDAP_OPT_RESTART:
#ifdef _REENTRANT
#endif
return (-1);
}
break;
if (*(int *)invalue < LDAP_VERSION1 ||
*(int *)invalue > LDAP_VERSION3) {
#ifdef _REENTRANT
#endif
return (-1);
}
break;
case LDAP_OPT_SERVER_CONTROLS:
}
break;
case LDAP_OPT_CLIENT_CONTROLS:
}
break;
case LDAP_OPT_HOST_NAME:
}
break;
case LDAP_OPT_ERROR_NUMBER:
break;
case LDAP_OPT_ERROR_STRING:
break;
case LDAP_OPT_MATCHED_DN:
if (ld->ld_matched)
break;
break;
default:
#ifdef _REENTRANT
#endif
return (-1);
}
#ifdef _REENTRANT
#endif
return (0);
}