X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fpasstest.c;h=6a36a0ffe3796d7d886866d17322ac5dc166bd62;hb=918c8b1ec479083d82c390d5dceb4899654cb666;hp=6874be97b2aa9d67043e5e1d9f98a7b87bccfdf1;hpb=1c3797bc503c1e7a109c8887d89d3ddda93bba71;p=idzebra-moved-to-github.git diff --git a/util/passtest.c b/util/passtest.c index 6874be9..6a36a0f 100644 --- a/util/passtest.c +++ b/util/passtest.c @@ -1,3 +1,26 @@ +/* $Id: passtest.c,v 1.8 2006-08-14 10:40:34 adam Exp $ + Copyright (C) 1995-2006 + Index Data ApS + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +*/ + + #include @@ -7,9 +30,16 @@ int main (int argc, char **argv) db = passwd_db_open(); - passwd_db_file (db, "/etc/passwd"); - passwd_db_show (db); - passwd_db_auth (db, "adam", "xtx9Y="); - passwd_db_close (db); + passwd_db_file_plain(db, "/etc/passwd"); + passwd_db_auth(db, "adam", "xtx9Y="); + passwd_db_close(db); return 0; } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +