]> git.sur5r.net Git - openldap/commit
SHA2: Make slapd-sha2 module portable
authorSATOH Fumiyasu <fumiyas@osstech.co.jp>
Tue, 8 May 2012 06:35:32 +0000 (15:35 +0900)
committerHoward Chu <hyc@openldap.org>
Tue, 8 May 2012 19:16:25 +0000 (12:16 -0700)
commite4f4322f6cf8f21550a84f7d83321bff14468a0b
tree33a6907db8a86492a70fd2a5df48fbbb1ccbe435
parent326d07d8c6fa5e305e531d7914bf24c9db236fc0
SHA2: Make slapd-sha2 module portable

contrib/slapd-modules/passwd/sha2/sha2.[ch] need portable.h and
some macros to be portable source.

contrib/slapd-modules/passwd/sha2/slapd-sha2.c:hash_sha*() must
declare "struct berval digest" before a statement for K&R C,
and must replace C++ "// foo"-style comments with C style.
contrib/slapd-modules/passwd/sha2/sha2.h
contrib/slapd-modules/passwd/sha2/slapd-sha2.c