Milan Broz
0a905364fa
Fix mapping removal if device disappeared but node still exists.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@420 36d66b0a-2a48-0410-832c-cd162a569da5
2011-01-29 15:55:27 +00:00
Milan Broz
f0bb160f71
Fix po files.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@419 36d66b0a-2a48-0410-832c-cd162a569da5
2011-01-25 19:31:43 +00:00
Milan Broz
044cb58588
Add loop-AES compatible handling code.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@418 36d66b0a-2a48-0410-832c-cd162a569da5
2011-01-25 18:48:56 +00:00
Milan Broz
49937ac591
Detect # of keys from cipher string.
...
Fix status output string.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@417 36d66b0a-2a48-0410-832c-cd162a569da5
2011-01-25 18:48:48 +00:00
Milan Broz
66bea4b3be
Add dm flags for query for features.
...
Move adjust device helper to utils.
Fix locking memory message.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@416 36d66b0a-2a48-0410-832c-cd162a569da5
2011-01-25 18:48:41 +00:00
Milan Broz
af87ffbd37
Add context to crypto backend init (so it can print errors to callback).
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@415 36d66b0a-2a48-0410-832c-cd162a569da5
2011-01-16 10:40:57 +00:00
Milan Broz
f48c312fc7
Prevent to initialise backends twice.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@414 36d66b0a-2a48-0410-832c-cd162a569da5
2011-01-16 10:38:55 +00:00
Milan Broz
9da29e8759
Clean up code after crypto backend change.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@413 36d66b0a-2a48-0410-832c-cd162a569da5
2011-01-16 10:38:47 +00:00
Milan Broz
6b42f15a95
Document password callback.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@412 36d66b0a-2a48-0410-832c-cd162a569da5
2011-01-05 16:59:42 +00:00
Milan Broz
8d48bf79ea
Fix static build (--disable-static-cryptsetup now works properly).
...
http://code.google.com/p/cryptsetup/issues/detail?id=91
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@411 36d66b0a-2a48-0410-832c-cd162a569da5
2011-01-05 13:36:55 +00:00
Milan Broz
5d9953ea51
Fix crypt_backend_flags prototype.
...
Fix some configure messages.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@410 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-31 14:34:01 +00:00
Milan Broz
e2fbcea56a
Fix tests to work with all crypto backends.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@409 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-31 14:33:53 +00:00
Milan Broz
d04d9f336a
Switch to new crypto backend interface.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@408 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-31 14:33:43 +00:00
Milan Broz
7b6eda0d27
Add skeleton and implementation of various crypto backends
...
(gcrypt, OpenSSL, NSS and kernel crypto API supported for now).
There backends will be used for LUKS and plain passphrase hashing.
(Not yet used without following patches).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@407 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-31 14:33:33 +00:00
Milan Broz
0ccb4a2d3b
Version 1.2.0.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@404 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-20 11:36:39 +00:00
Milan Broz
ca73541753
Add settle to test scripts (needed only for old systems).
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@403 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-19 23:46:10 +00:00
Milan Broz
e8e805dfd3
Add simple checksum test.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@402 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-19 21:17:36 +00:00
Milan Broz
058976ff08
Add password hash test for create command.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@401 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-10 15:36:41 +00:00
Milan Broz
4b0e7ae41d
Fix previous commit (for now).
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@400 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-09 18:25:31 +00:00
Milan Broz
68c2ac1087
Fix create command to properly handle keyfile size.
...
- for keyfile reset hash, it make no sense (see man page)
- use activate_by_keyfile to make code more readable
(it still does the stem thing)
- if keyfile specified, read only key and do not do exhausted
read (regression from 1.1.3)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@399 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-09 17:58:50 +00:00
Arno Wagner
6cae0b0efb
more formatting fixes
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@398 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-04 03:02:29 +00:00
Arno Wagner
80c101d15c
fixes to formatting
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@396 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-04 02:41:33 +00:00
Arno Wagner
476c4553a5
update text only version
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@395 36d66b0a-2a48-0410-832c-cd162a569da5
2010-12-02 23:54:10 +00:00
Milan Broz
0e39341be7
Update Dutch translation.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@387 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-30 12:34:21 +00:00
Milan Broz
fec17febe6
Update Italian translation.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@386 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-28 14:53:47 +00:00
Milan Broz
38c694a143
Fix crypt_activate_by_keyfile() to work with PLAIN devices.
...
(allows systemd swap with /dev/urandom activation)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@385 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-25 14:56:46 +00:00
Milan Broz
685f1300cb
Some minor modifications in cs.po.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@384 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-25 14:56:37 +00:00
Milan Broz
ff0e81f656
Add Czech translation.
...
(TODO: minor chnages still needed here...)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@383 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-24 21:13:34 +00:00
Milan Broz
c01c4338b1
Update French and Polish translation.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@382 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-23 12:06:26 +00:00
Milan Broz
78a160b3c0
Version 1.2.0-rc1.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@378 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-16 08:35:27 +00:00
Milan Broz
c066fddf8b
Static build is not default... fix test.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@376 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-15 21:09:53 +00:00
Milan Broz
230ac16201
Fix clang warning is tests.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@375 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-15 18:12:29 +00:00
Milan Broz
b13b4b7654
Remove uneeded function prototype.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@374 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-15 17:03:43 +00:00
Milan Broz
f4eef16539
Increase library version (current++, age++).
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@373 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-15 16:54:44 +00:00
Milan Broz
bbb3818ec7
Fix some typos and misinterpretations in header file.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@372 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-15 16:42:35 +00:00
Milan Broz
a70b27762d
Fix some warnings if compiled with clang.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@371 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-15 16:19:19 +00:00
Milan Broz
655007995b
Fix handling of failed read in RNG wrapper.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@370 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-15 13:41:05 +00:00
Milan Broz
8e1c407ed6
Fix RNG comment.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@369 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-14 22:13:00 +00:00
Milan Broz
37ae78c9d8
Fix cryptsetup binary exitcodes.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@368 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-14 22:00:51 +00:00
Milan Broz
d876ce975c
Remove luks dir.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@367 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-14 20:11:29 +00:00
Milan Broz
014206399a
Move LUKS library to lib subdir.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@366 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-14 20:06:35 +00:00
Milan Broz
312d8eca73
* Allow to activate by internally cached volume key
...
(format/activate without keyslots active - used for temporary devices).
* Initialize volume key from active device in crypt_init_by_name()
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@365 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-14 17:22:04 +00:00
Milan Broz
b861d1e7f4
Add --dump-master-key option for luksDump to allow volume key dump.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@364 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-14 10:43:28 +00:00
Milan Broz
f90edb6133
Simplify return codes from get key functions.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@363 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-13 16:41:29 +00:00
Milan Broz
6258753b1a
* Fix password callback call.
...
* Fix default plain password entry from terminal in activate_by_passphrase.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@362 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-13 16:41:20 +00:00
Milan Broz
b7caa72acd
* Disallow mapping of device which is already in use (mapped or mounted).
...
* Disallow luksFormat on device in use.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@361 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-05 17:53:33 +00:00
Milan Broz
c9881f8c33
* Add crypt_get_type(), crypt_resize(), crypt_keyslot_max()
...
and crypt_get_active_device() to API.
* Rewrite all implementations in cryptsetup to new API.
* Fix luksRemoveKey to behave as documented (do not ask
for remaining keyslot passphrase).
* Add more regression tests for commands.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@360 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-05 11:27:47 +00:00
Milan Broz
7b42e0b99c
No longer support luksDelKey, reload and --non-exclusive.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@359 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-05 11:27:36 +00:00
Milan Broz
988b1f95fd
Use new API for luksUUID, luksDump.
...
Use default log callback.
Check for keyslot #
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@358 36d66b0a-2a48-0410-832c-cd162a569da5
2010-11-05 11:27:27 +00:00
Milan Broz
791481b9e9
Fix luksFormat to properly use key file with --master-key-file switch.
...
Fix possible double free when handling master key file.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@357 36d66b0a-2a48-0410-832c-cd162a569da5
2010-10-29 20:04:01 +00:00