| 1 | /*
|
|---|
| 2 | ldb database library
|
|---|
| 3 |
|
|---|
| 4 | Copyright (C) Simo Sorce 2005
|
|---|
| 5 |
|
|---|
| 6 | ** NOTE! The following LGPL license applies to the ldb
|
|---|
| 7 | ** library. This does NOT imply that all of Samba is released
|
|---|
| 8 | ** under the LGPL
|
|---|
| 9 |
|
|---|
| 10 | This library is free software; you can redistribute it and/or
|
|---|
| 11 | modify it under the terms of the GNU Lesser General Public
|
|---|
| 12 | License as published by the Free Software Foundation; either
|
|---|
| 13 | version 3 of the License, or (at your option) any later version.
|
|---|
| 14 |
|
|---|
| 15 | This library is distributed in the hope that it will be useful,
|
|---|
| 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|---|
| 18 | Lesser General Public License for more details.
|
|---|
| 19 |
|
|---|
| 20 | You should have received a copy of the GNU Lesser General Public
|
|---|
| 21 | License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|---|
| 22 | */
|
|---|
| 23 |
|
|---|
| 24 | /*
|
|---|
| 25 | * Name: ldb_controls.c
|
|---|
| 26 | *
|
|---|
| 27 | * Component: ldb controls utility functions
|
|---|
| 28 | *
|
|---|
| 29 | * Description: helper functions for control modules
|
|---|
| 30 | *
|
|---|
| 31 | * Author: Simo Sorce
|
|---|
| 32 | */
|
|---|
| 33 |
|
|---|
| 34 | #include "includes.h"
|
|---|
| 35 | #include "ldb/include/includes.h"
|
|---|
| 36 |
|
|---|
| 37 | /* check if a control with the specified "oid" exist and return it */
|
|---|
| 38 | /* returns NULL if not found */
|
|---|
| 39 | struct ldb_control *get_control_from_list(struct ldb_control **controls, const char *oid)
|
|---|
|
|---|