Subject: Function signature changes in pw_policy.c
To: None <elad@netbsd.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-userlevel
Date: 02/18/2006 06:26:34
On Feb 18, 2006, at 2:52 AM, Elad Efrat wrote:
>
> Module Name: src
> Committed By: elad
> Date: Sat Feb 18 10:52:48 UTC 2006
>
> Modified Files:
> src/distrib/sets/lists/base: shl.mi
> src/lib/libutil: pw_policy.3 pw_policy.c shlib_version
>
> Log Message:
> Some stuff that's been sitting in my tree for too long...
>
> Improve the pw_policy(3) API by splitting it to two functions, one
> to load
> the policy from /etc/passwd.conf and another to test passwords
> against the
> policy.
>
> Some bug fixes, more consistent code, and man-page updates.
>
> Minor for libutil bumped.
The signature of pw_policy_test() has changed from:
int pw_policy_test(char *, void *, int);
to:
int pw_policy_test(struct pw_policy *, char *pw);
This means that you need to either:
1- Bump the major of libutil and all other libraries that depend on it
--or--
2- Version the symbols in pw_policy.c that have changed signature,
and keep the old versions of the functions around for ABI compatibility.
>
>
> To generate a diff of this commit:
> cvs rdiff -r1.336 -r1.337 src/distrib/sets/lists/base/shl.mi
> cvs rdiff -r1.1 -r1.2 src/lib/libutil/pw_policy.3
> cvs rdiff -r1.2 -r1.3 src/lib/libutil/pw_policy.c
> cvs rdiff -r1.38 -r1.39 src/lib/libutil/shlib_version
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
-- thorpej