diff options
| author | Dan OpenSolaris Anderson <opensolaris@drydog.com> | 2009-11-02 17:07:53 -0800 |
|---|---|---|
| committer | Dan OpenSolaris Anderson <opensolaris@drydog.com> | 2009-11-02 17:07:53 -0800 |
| commit | 1dbc1fed8be6e82e676ff3f124628dc470058bfb (patch) | |
| tree | 509699e07049ff9bf225e1a074addb799cd633ec /usr/src/lib/crypt_modules/sha256/crypt_sha.c | |
| parent | 5d3b8cb7141cfa596d20cdc5043b8a6df635938d (diff) | |
| download | illumos-joyent-1dbc1fed8be6e82e676ff3f124628dc470058bfb.tar.gz | |
4988677 crypt modules still are not lint-clean
Diffstat (limited to 'usr/src/lib/crypt_modules/sha256/crypt_sha.c')
| -rw-r--r-- | usr/src/lib/crypt_modules/sha256/crypt_sha.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr/src/lib/crypt_modules/sha256/crypt_sha.c b/usr/src/lib/crypt_modules/sha256/crypt_sha.c index b5b4901cd9..31426ac196 100644 --- a/usr/src/lib/crypt_modules/sha256/crypt_sha.c +++ b/usr/src/lib/crypt_modules/sha256/crypt_sha.c @@ -112,7 +112,7 @@ static void to64(char *s, uint64_t v, int n) { while (--n >= 0) { - *s++ = b64t[v&0x3f]; + *s++ = b64t[v & 0x3f]; v >>= 6; } } @@ -146,7 +146,7 @@ getrounds(const char *s) errno = 0; val = strtol(p, &e, 10); /* - * An error occured or there is non-numeric stuff at the end + * An error occurred or there is non-numeric stuff at the end * which isn't one of the crypt(3c) special chars ',' or '$' */ if (errno != 0 || val < 0 || @@ -158,6 +158,7 @@ getrounds(const char *s) } +/* ARGSUSED4 */ char * crypt_genhash_impl(char *ctbuffer, size_t ctbufflen, @@ -243,7 +244,7 @@ crypt_genhash_impl(char *ctbuffer, for (i = plaintext_len; i >= MIXCHARS; i -= MIXCHARS) { Pp = (char *)(memcpy(Pp, DP, MIXCHARS)) + MIXCHARS; } - memcpy(Pp, DP, i); + (void) memcpy(Pp, DP, i); /* 17. - 19. */ DIGESTInit(&ctxDS); @@ -256,7 +257,7 @@ crypt_genhash_impl(char *ctbuffer, for (i = salt_len; i >= MIXCHARS; i -= MIXCHARS) { Sp = (char *)(memcpy(Sp, DS, MIXCHARS)) + MIXCHARS; } - memcpy(Sp, DS, i); + (void) memcpy(Sp, DS, i); /* 21. */ for (i = 0; i < rounds; i++) { @@ -350,6 +351,8 @@ crypt_genhash_impl(char *ctbuffer, return (ctbuffer); } + +/* ARGSUSED3 */ char * crypt_gensalt_impl(char *gsbuffer, size_t gsbufflen, |
