openpam_impl.h (228690) | openpam_impl.h (236099) |
---|---|
1/*- 2 * Copyright (c) 2001-2003 Networks Associates Technology, Inc. 3 * Copyright (c) 2004-2011 Dag-Erling Sm��rgrav 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by ThinkSec AS and 7 * Network Associates Laboratories, the Security Research Division of 8 * Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * | 1/*- 2 * Copyright (c) 2001-2003 Networks Associates Technology, Inc. 3 * Copyright (c) 2004-2011 Dag-Erling Sm��rgrav 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by ThinkSec AS and 7 * Network Associates Laboratories, the Security Research Division of 8 * Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * |
35 * $Id: openpam_impl.h 499 2011-11-22 11:51:50Z des $ | 35 * $Id: openpam_impl.h 594 2012-04-14 14:18:41Z des $ |
36 */ 37 38#ifndef OPENPAM_IMPL_H_INCLUDED 39#define OPENPAM_IMPL_H_INCLUDED 40 41#include <security/openpam.h> 42 43extern int openpam_debug; --- 108 unchanged lines hidden (view full) --- 152int openpam_check_desc_owner_perms(const char *, int); 153int openpam_check_path_owner_perms(const char *); 154 155#ifdef OPENPAM_STATIC_MODULES 156pam_module_t *openpam_static(const char *); 157#endif 158pam_module_t *openpam_dynamic(const char *); 159 | 36 */ 37 38#ifndef OPENPAM_IMPL_H_INCLUDED 39#define OPENPAM_IMPL_H_INCLUDED 40 41#include <security/openpam.h> 42 43extern int openpam_debug; --- 108 unchanged lines hidden (view full) --- 152int openpam_check_desc_owner_perms(const char *, int); 153int openpam_check_path_owner_perms(const char *); 154 155#ifdef OPENPAM_STATIC_MODULES 156pam_module_t *openpam_static(const char *); 157#endif 158pam_module_t *openpam_dynamic(const char *); 159 |
160#define FREE(p) do { free((p)); (p) = NULL; } while (0) | 160#define FREE(p) \ 161 do { \ 162 free(p); \ 163 (p) = NULL; \ 164 } while (0) |
161 | 165 |
166#define FREEV(c, v) \ 167 do { \ 168 while (c) { \ 169 --(c); \ 170 FREE((v)[(c)]); \ 171 } \ 172 FREE(v); \ 173 } while (0) 174 |
|
162#include "openpam_constants.h" 163#include "openpam_debug.h" | 175#include "openpam_constants.h" 176#include "openpam_debug.h" |
177#include "openpam_features.h" |
|
164 165#endif | 178 179#endif |