2
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson
3
* Copyright (C) 2001,2003 Nikos Mavrogiannopoulos
4
* Copyright (C) 2004 Free Software Foundation
6
* This file is part of GNUTLS.
8
* GNUTLS is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
2
* Copyright (C) 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
3
* Free Software Foundation, Inc.
5
* This file is part of GnuTLS.
7
* GnuTLS is free software: you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License as published by
10
9
* the Free Software Foundation, either version 3 of the License, or
11
10
* (at your option) any later version.
13
* GNUTLS is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
12
* GnuTLS is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
18
17
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
* along with this program. If not, see
19
* <http://www.gnu.org/licenses/>.
22
22
#include <config.h>
418
416
if (info.create_conf != NULL)
420
418
return generate_create_conf (info.create_conf);
423
421
if (info.passwd == NULL)
424
info.passwd = (char*) KPASSWD;
422
info.passwd = (char *) KPASSWD;
425
423
if (info.passwd_conf == NULL)
426
info.passwd_conf = (char*) KPASSWD_CONF;
424
info.passwd_conf = (char *) KPASSWD_CONF;
428
426
if (info.username == NULL)
463
return crypt_int (info.username, passwd, salt,
461
return crypt_int (info.username, passwd, salt_size,
464
462
info.passwd_conf, info.passwd, info.index);