mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
read get_extop func
This commit is contained in:
parent
304410c7a0
commit
2fcbaf29d9
@ -88,6 +88,24 @@ static struct {
|
|||||||
static struct extop_list *find_extop(
|
static struct extop_list *find_extop(
|
||||||
struct extop_list *list, struct berval *oid );
|
struct extop_list *list, struct berval *oid );
|
||||||
|
|
||||||
|
struct berval *
|
||||||
|
get_supported_extop (int index)
|
||||||
|
{
|
||||||
|
struct extop_list *ext;
|
||||||
|
|
||||||
|
/* linear scan is slow, but this way doesn't force a
|
||||||
|
* big change on root_dse.c, where this routine is used.
|
||||||
|
*/
|
||||||
|
for (ext = supp_ext_list; ext != NULL && --index >= 0; ext = ext->next) {
|
||||||
|
; /* empty */
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ext == NULL) return NULL;
|
||||||
|
|
||||||
|
return &ext->oid;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int exop_root_dse_info( Entry *e )
|
int exop_root_dse_info( Entry *e )
|
||||||
{
|
{
|
||||||
AttributeDescription *ad_supportedExtension
|
AttributeDescription *ad_supportedExtension
|
||||||
|
@ -466,6 +466,8 @@ LDAP_SLAPD_F (int) extops_init LDAP_P(( void ));
|
|||||||
|
|
||||||
LDAP_SLAPD_F (int) extops_kill LDAP_P(( void ));
|
LDAP_SLAPD_F (int) extops_kill LDAP_P(( void ));
|
||||||
|
|
||||||
|
LDAP_SLAPD_F (struct berval *) get_supported_extop LDAP_P((int index));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* * cancel.c
|
* * cancel.c
|
||||||
* */
|
* */
|
||||||
|
Loading…
Reference in New Issue
Block a user