mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Remove const from salt_format
This commit is contained in:
parent
ff993c7ddb
commit
7ee53eb12e
@ -66,7 +66,7 @@ static const unsigned char crypt64[] =
|
|||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890./";
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890./";
|
||||||
|
|
||||||
#ifdef SLAPD_CRYPT
|
#ifdef SLAPD_CRYPT
|
||||||
static const char *salt_format = NULL;
|
static char *salt_format = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct pw_scheme;
|
struct pw_scheme;
|
||||||
@ -1239,9 +1239,9 @@ static struct berval *hash_crypt(
|
|||||||
int lutil_salt_format(const char *format)
|
int lutil_salt_format(const char *format)
|
||||||
{
|
{
|
||||||
#ifdef SLAPD_CRYPT
|
#ifdef SLAPD_CRYPT
|
||||||
free(salt_format);
|
free( salt_format );
|
||||||
|
|
||||||
salt_format = format != NULL ? strdup(format) : NULL;
|
salt_format = format != NULL ? strdup( format ) : NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user