1/* 2 * Copyright (c) 2001-2002 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * 5 * By using this file, you agree to the terms and conditions set 6 * forth in the LICENSE file which can be found at the top level of 7 * the sendmail distribution. 8 * 9 */ 10 11#include <sm/gen.h>
| 1/* 2 * Copyright (c) 2001-2002 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * 5 * By using this file, you agree to the terms and conditions set 6 * forth in the LICENSE file which can be found at the top level of 7 * the sendmail distribution. 8 * 9 */ 10 11#include <sm/gen.h>
|
12SM_RCSID("@(#)$Id: sasl.c,v 8.22 2006/08/15 23:24:57 ca Exp $")
| 12SM_RCSID("@(#)$Id: sasl.c,v 8.23 2012/11/27 18:53:13 gshapiro Exp $")
|
13 14#if SASL 15# include <stdlib.h> 16# include <sendmail.h> 17# include <errno.h> 18 19/* 20** In order to ensure that storage leaks are tracked, and to prevent 21** conflicts between the sm_heap package and sasl, we tell sasl to 22** use the following heap allocation functions. Unfortunately,
| 13 14#if SASL 15# include <stdlib.h> 16# include <sendmail.h> 17# include <errno.h> 18 19/* 20** In order to ensure that storage leaks are tracked, and to prevent 21** conflicts between the sm_heap package and sasl, we tell sasl to 22** use the following heap allocation functions. Unfortunately,
|
23** the sasl package incorrectly specifies the size of a block
| 23** older sasl packages incorrectly specifies the size of a block
|
24** using unsigned long: for portability, it should be size_t. 25*/ 26
| 24** using unsigned long: for portability, it should be size_t. 25*/ 26
|
27#if defined(SASL_VERSION_FULL) && SASL_VERSION_FULL >= 0x02011a 28#define SM_SASL_SIZE_T size_t 29#else /* defined(SASL_VERSION_FULL) && SASL_VERSION_FULL >= 0x02011a */ 30#define SM_SASL_SIZE_T unsigned long 31#endif /* defined(SASL_VERSION_FULL) && SASL_VERSION_FULL >= 0x02011a */
| 27# if defined(SASL_VERSION_FULL) && SASL_VERSION_FULL >= 0x02011a 28# define SM_SASL_SIZE_T size_t 29# else /* defined(SASL_VERSION_FULL) && SASL_VERSION_FULL >= 0x02011a */ 30# define SM_SASL_SIZE_T unsigned long 31# endif /* defined(SASL_VERSION_FULL) && SASL_VERSION_FULL >= 0x02011a */
|
32 33void *sm_sasl_malloc __P((SM_SASL_SIZE_T)); 34static void *sm_sasl_calloc __P((SM_SASL_SIZE_T, SM_SASL_SIZE_T)); 35static void *sm_sasl_realloc __P((void *, SM_SASL_SIZE_T)); 36void sm_sasl_free __P((void *)); 37 38/* 39** SASLv1:
--- 254 unchanged lines hidden --- | 32 33void *sm_sasl_malloc __P((SM_SASL_SIZE_T)); 34static void *sm_sasl_calloc __P((SM_SASL_SIZE_T, SM_SASL_SIZE_T)); 35static void *sm_sasl_realloc __P((void *, SM_SASL_SIZE_T)); 36void sm_sasl_free __P((void *)); 37 38/* 39** SASLv1:
--- 254 unchanged lines hidden --- |