X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcryptsetup.c;h=d85075e8e566999ba708017ddfac1042c9b137fa;hb=143603c4713b1a5771d83a0d94bbe538e6992415;hp=bbb732de622513a79744c7db406bf868bbca935b;hpb=4505d0a36b64645ff0a87ed48933372b0c90b17d;p=platform%2Fupstream%2Fcryptsetup.git diff --git a/src/cryptsetup.c b/src/cryptsetup.c index bbb732d..d85075e 100644 --- a/src/cryptsetup.c +++ b/src/cryptsetup.c @@ -1,3 +1,24 @@ +/* + * cryptsetup - setup cryptographic volumes for dm-crypt + * + * Copyright (C) 2004, Christophe Saout + * Copyright (C) 2004-2007, Clemens Fruhwirth + * Copyright (C) 2009-2011, Red Hat, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 2 as published by the Free Software Foundation. + * + * This program 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #include #include #include @@ -698,6 +719,9 @@ static int action_luksChangeKey(int arg) if ((r = crypt_load(cd, CRYPT_LUKS1, NULL))) goto out; + if (opt_iteration_time) + crypt_set_iterarion_time(cd, opt_iteration_time); + r = crypt_get_key(_("Enter LUKS passphrase to be changed: "), &password, &passwordLen, opt_keyfile_size, opt_key_file, opt_timeout,