Document the sections closed by #endif
This commit is contained in:
parent
461d69522f
commit
337a97ceab
@ -1,3 +1,7 @@
|
|||||||
|
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* libmisc/salt.c: Document the section closed by #endif
|
||||||
|
|
||||||
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
|
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/useradd.c: Fix formatting.
|
* src/useradd.c: Fix formatting.
|
||||||
|
@ -22,13 +22,13 @@
|
|||||||
/* local function prototypes */
|
/* local function prototypes */
|
||||||
#ifndef HAVE_L64A
|
#ifndef HAVE_L64A
|
||||||
char *l64a(long value);
|
char *l64a(long value);
|
||||||
#endif
|
#endif /* !HAVE_L64A */
|
||||||
static void seedRNG (void);
|
static void seedRNG (void);
|
||||||
static char *gensalt (unsigned int salt_size);
|
static char *gensalt (unsigned int salt_size);
|
||||||
#ifdef USE_SHA_CRYPT
|
#ifdef USE_SHA_CRYPT
|
||||||
static unsigned int SHA_salt_size (void);
|
static unsigned int SHA_salt_size (void);
|
||||||
static const char *SHA_salt_rounds (int *prefered_rounds);
|
static const char *SHA_salt_rounds (int *prefered_rounds);
|
||||||
#endif
|
#endif /* USE_SHA_CRYPT */
|
||||||
|
|
||||||
#ifndef HAVE_L64A
|
#ifndef HAVE_L64A
|
||||||
static char *l64a(long value)
|
static char *l64a(long value)
|
||||||
@ -157,7 +157,7 @@ static const char *SHA_salt_rounds (int *prefered_rounds)
|
|||||||
|
|
||||||
return rounds_prefix;
|
return rounds_prefix;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* USE_SHA_CRYPT */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Generate salt of size salt_size.
|
* Generate salt of size salt_size.
|
||||||
@ -230,7 +230,7 @@ char *crypt_make_salt (const char *meth, void *arg)
|
|||||||
MAGNUM(result, '6');
|
MAGNUM(result, '6');
|
||||||
strcat(result, SHA_salt_rounds((int *)arg));
|
strcat(result, SHA_salt_rounds((int *)arg));
|
||||||
salt_len = SHA_salt_size();
|
salt_len = SHA_salt_size();
|
||||||
#endif
|
#endif /* USE_SHA_CRYPT */
|
||||||
} else if (0 != strcmp (method, "DES")) {
|
} else if (0 != strcmp (method, "DES")) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_("Invalid ENCRYPT_METHOD value: '%s'.\n"
|
_("Invalid ENCRYPT_METHOD value: '%s'.\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user