commit c6dc792eba169e34b34f542c32066c04601cf428
Author: npzacs <npzacs@gmail.com> Date: Fri May 29 13:39:26 2015 +0300 Merge string utils changes from other libs commit d9056967e5a3b309869116108dc8b60ced283527 Author: npzacs <npzacs@gmail.com> Date: Tue Apr 28 10:07:24 2015 +0300 If reading unit key file fails, try backup file from DUPLICATE/ commit a0319947d97b3de536f84d6ac41d67b600689bdf Author: npzacs <npzacs@gmail.com> Date: Thu May 7 10:47:20 2015 +0300 Check for failed calloc() commit 7957233a21118ab70d9ba3be51dad7381e4868a7 Author: npzacs <npzacs@gmail.com> Date: Thu May 7 10:45:34 2015 +0300 Use str_dup() commit 2a73b6d0582f38fefefa3d8db1b48addc78877a3 Author: npzacs <npzacs@gmail.com> Date: Fri May 29 13:41:59 2015 +0300 Include config.h commit e5de82442622aeedb20704cde221887e7fb32cc7 Author: npzacs <npzacs@gmail.com> Date: Wed May 6 15:07:06 2015 +0300 Merge file_posix changes from libbluray commit cedb0d171b23913b38c9f571265b6e2738ed7234 Author: npzacs <npzacs@gmail.com> Date: Wed May 6 14:50:51 2015 +0300 Cosmetics commit e79a54b6b5686e965f49775d2a1ba805b5df55f4 Author: npzacs <npzacs@gmail.com> Date: Wed May 6 14:35:08 2015 +0300 use str_dup commit cceaba446c7bc6653cdc82892a7f6ef7a07d69ec Author: npzacs <npzacs@gmail.com> Date: Wed May 6 14:19:04 2015 +0300 Fix possible integer overflow commit 4dbacd41099f4d7803fda340f567fb38bb7a863f Author: npzacs <npzacs@gmail.com> Date: Wed May 6 14:09:45 2015 +0300 Add file_size() with error detection create mode 100644 src/file/file.c commit cf9c985b020445f77c717ccd590f14507266a225 Author: npzacs <npzacs@gmail.com> Date: Wed May 6 14:06:10 2015 +0300 Move system-dependent code to own file commit da8a5fb842932a05ed3623c419d2583d5e81f27e Author: npzacs <npzacs@gmail.com> Date: Wed May 6 13:41:36 2015 +0300 check memory allocation result commit 9c73ea81d62cf2899b08ebc4b723729471a8c6f4 Author: npzacs <npzacs@gmail.com> Date: Wed May 6 13:36:56 2015 +0300 Do not store unused data from KEYDB.cfg commit 98b269ad30ca1b23caaea3bcf15491f77d679545 Author: npzacs <npzacs@gmail.com> Date: Wed May 6 13:33:37 2015 +0300 Remove unused cache_get_or_update() commit 7decb647636ed7096d5a57dbc4f8afa7067b5a28 Author: npzacs <npzacs@gmail.com> Date: Wed May 6 13:31:03 2015 +0300 dirs_win32: check malloc result commit 0c8b1162f5d2a886b60fee7059a1e97c315f7402 Author: npzacs <npzacs@gmail.com> Date: Wed May 6 13:25:56 2015 +0300 aacs_info: fix printing MK when VID is unknown commit aa0bbd7a0020bb3ac00a3cd1546feba66f6d8261 Author: npzacs <npzacs@gmail.com> Date: Wed May 6 12:48:31 2015 +0300 Split file_posix.c create mode 100644 src/file/file_win32.c create mode 100644 src/file/filesystem.c commit f0f4940cbd7f762a49fb0beb0e7a17423cafbbb9 Author: npzacs <npzacs@gmail.com> Date: Wed May 6 11:01:49 2015 +0300 Check str_printf() failures commit 8b9be9563e21c77e9ddcfb72432597cb31a8b1ee Author: npzacs <npzacs@gmail.com> Date: Wed May 6 10:40:40 2015 +0300 Fix leak commit 1f1cb7bba853d2101caa493d4cbbcddf02d348e4 Author: npzacs <npzacs@gmail.com> Date: Wed May 6 10:26:19 2015 +0300 Use _read_file() to read MKB Fix handling of errors when reading MKB. commit bdd3f429daa92c070357ea9638517b390230f647 Author: npzacs <npzacs@gmail.com> Date: Tue Apr 28 13:11:05 2015 +0300 Limit file read size commit 28af032c8b85461c611f959f5ea1a18af4022ccb Author: npzacs <npzacs@gmail.com> Date: Tue Apr 28 13:05:06 2015 +0300 str_printf(): return NULL if memory allocation fails commit 6f920c4959b56b132761cdec23b9e9e2124d96a2 Author: npzacs <npzacs@gmail.com> Date: Tue Apr 28 13:02:47 2015 +0300 Cosmetics commit 9f7be2b226afbea5f774ea9e5fa1dd9f0ac9e9d1 Author: npzacs <npzacs@gmail.com> Date: Tue Apr 28 10:07:02 2015 +0300 Factorize common code commit 67d80d2ecf511b89db16a8534bbf35e6fcc4907d Author: npzacs <npzacs@gmail.com> Date: Tue Apr 28 09:58:27 2015 +0300 Cosmetics (move function) commit 4e396e31cb6f6dff1c8675a9185792de3d4b9ef3 Author: npzacs <npzacs@gmail.com> Date: Sun Apr 26 22:01:45 2015 +0300 Add MK to aacs_info commit 7d4d26a53e80e71749693fd95864bdc03c07b963 Author: npzacs <npzacs@gmail.com> Date: Sun Apr 26 19:38:48 2015 +0300 Add aacs_get_bdj_root_cert_hash() and aacs_get_content_cert_id() commit b56e1db8a146f81ddbf96675d9624bd846628353 Author: npzacs <npzacs@gmail.com> Date: Sun Apr 26 18:51:26 2015 +0300 Verify content certificate signature create mode 100644 src/libaacs/content_cert.c create mode 100644 src/libaacs/content_cert.h commit 10cb655c1720cd6194da8c97d36fa1554a81bfdc Author: npzacs <npzacs@gmail.com> Date: Sun Apr 26 18:46:22 2015 +0300 ChengeLog update commit a6c30edb596ca7fed9c7517e885188e442a0aad5 Author: npzacs <npzacs@gmail.com> Date: Sun Apr 26 16:02:21 2015 +0300 Sort files commit 7f61e3f0124e0b4f4acc5555a90910cf29aac9e4 Author: Xavier Bachelot <xavier@bachelot.org> Date: Sun Mar 15 22:34:31 2015 +0100 errno.h is needed when using pthread commit 0fffa67066f16e22967e06c92fb63c79b5a9a5fe Author: npzacs <npzacs@gmail.com> Date: Fri Mar 13 11:18:17 2015 +0200 Bump version commit 2d7778243084228eff2dc5700f1b24d387182263 Author: npzacs <npzacs@gmail.com> Date: Fri Mar 13 11:14:57 2015 +0200 0.8.1 commit ffad3228fef99bd7248b3de41258f74263f27a16 Author: npzacs <npzacs@gmail.com> Date: Tue Feb 17 13:00:53 2015 +0200 Update ChangeLog commit a598e352b273f2e66fbef172fd157740bf28837b Author: npzacs <npzacs@gmail.com> Date: Tue Feb 17 12:45:57 2015 +0200 configure.ac: pthread not required with gcrypt >= 1.6.0 commit 272e66117e6a3bbda068641848297a830a8ec409 Author: npzacs <npzacs@gmail.com> Date: Tue Feb 17 11:25:21 2015 +0200 configure: use AM_PATH_LIBGCRYPT and AM_PATH_GPG_ERROR create mode 100644 m4/gpg-error.m4 create mode 100644 m4/libgcrypt.m4 commit a7d441ecf004744bbb5b44fff549cfabcfe53277 Author: npzacs <npzacs@gmail.com> Date: Tue Feb 17 11:22:28 2015 +0200 gcrypt thread callbacks were deprecated in 1.6.0 commit bf03b08dde6294308c9e8a52404af36210d86002 Author: npzacs <npzacs@gmail.com> Date: Tue Feb 17 11:20:45 2015 +0200 Remove unused include (errno.h) commit 7780e4ddd6a2304c68f35896700ba60b19d45819 Author: npzacs <npzacs@gmail.com> Date: Fri Jan 30 11:28:08 2015 +0200 aacs_open_device(): keep NULL path as NULL commit 229dbf03be6cad2e8d5dea1291591b397f26a474 Author: npzacs <npzacs@gmail.com> Date: Fri Jan 30 11:25:19 2015 +0200 _file_open(): check for NULL path NULL path is valid only when application handles file access. commit c54891ba13b5a37fe5c6b96fcaa1d688978ab515 Author: npzacs <npzacs@gmail.com> Date: Fri Jan 30 11:24:00 2015 +0200 mmc: check for NULL path commit b3d84b9f4fdf135308e763a0e6da86c5bcf7faca Author: npzacs <npzacs@gmail.com> Date: Fri Jan 30 11:22:58 2015 +0200 Fix "mpi_is_neg redefined" warning with gcrypt 1.6.1 commit 2742c55c73ee1e475c8e50b61fc5dff32e5c401b Author: npzacs <npzacs@gmail.com> Date: Fri Jan 30 11:20:57 2015 +0200 Hide unused variable warning when building without mntent.h commit 9f3c846b0ffe1f2b44cfe5c14abec5d94912e3ec Author: Dominic Fandrey <kamikaze@bsdforen.de> Date: Fri Jan 30 11:15:32 2015 +0200 include stdio.h (FreeBSD build fix) commit a9495d26e7edcef6a3e6d2eed9f6c068d1058bcd Author: Dominic Fandrey <kamikaze@bsdforen.de> Date: Fri Jan 30 11:11:41 2015 +0200 fix a nesting error in an #ifdef commit 042cf8e6f21ac560edc1c4de33ea805077f415e6 Author: npzacs <npzacs@gmail.com> Date: Fri Jan 23 12:49:56 2015 +0200 Fix creating directory path in Windows stat("C:") seems to fail. commit 61460ba3ef208dc4305d45f7f8c6ce3565574466 Author: npzacs <npzacs@gmail.com> Date: Mon Jan 5 17:39:13 2015 +0200 0.8.0 commit baa3687952f7c9cb98b224964013541a906ef1a3 Author: npzacs <npzacs@gmail.com> Date: Thu Jan 22 13:17:10 2015 +0200 Merge util changes from other libs commit e032b1b0588128df500d0c9ad9b20a1c6ad24163 Author: npzacs <npzacs@gmail.com> Date: Thu Jan 22 12:37:48 2015 +0200 DEBUG -> BD_DEBUG commit cd6b9a7a40eb14d16b283e084cd4e22a3cbecf5a Author: npzacs <npzacs@gmail.com> Date: Wed Jan 21 10:30:15 2015 +0200 Merge config dir changes from libbluray commit 7f901697db946b3103349a6f611b15778b12fdf8 Author: npzacs <npzacs@gmail.com> Date: Thu Jan 22 12:20:15 2015 +0200 Fix includes commit 84c2982519659a6bd536ea90751b62f2c68ec3d0 Author: npzacs <npzacs@gmail.com> Date: Wed Jan 21 10:14:35 2015 +0200 Use correct directory separator commit 8aeb28a5055397b65d1d4fcdeb2b2f15aae53cd2 Author: npzacs <npzacs@gmail.com> Date: Thu Jan 22 12:11:06 2015 +0200 Cleanup commit 45fb94c893eeba18f6c5a7404e189ed717ca43a5 Author: npzacs <npzacs@gmail.com> Date: Wed Jan 21 12:39:41 2015 +0200 Fix use after free commit e79812c42df8dd4c0f6cf756e7b45cb56a07471f Author: npzacs <npzacs@gmail.com> Date: Fri Jan 16 13:48:41 2015 +0200 Remove unused code commit d5e655c74038e9350255fb375d1c36f54a972461 Author: npzacs <npzacs@gmail.com> Date: Mon Jan 5 18:00:15 2015 +0200 use dnl commit 24328bdae20bc1a4448c63da65b580fe0ae435e3 Author: npzacs <npzacs@gmail.com> Date: Mon Jan 5 17:57:49 2015 +0200 configure: enable silent rules commit 757ad0d81cc7771bc20e31e69e139f440cda7a12 Author: npzacs <npzacs@gmail.com> Date: Mon Jan 5 17:37:32 2015 +0200 Updated ChangeLog commit 6c612f2c8263d199a8b8f1be952c2222b3ec3fe9 Author: npzacs <npzacs@gmail.com> Date: Mon Jan 5 01:34:08 2015 +0200 split mmc.c create mode 100644 src/file/mmc_device.h create mode 100644 src/file/mmc_device_darwin.c create mode 100644 src/file/mmc_device_linux.c create mode 100644 src/file/mmc_device_win32.c commit d8ca79150784d9b1896557dc170646a38917cab8 Author: npzacs <npzacs@gmail.com> Date: Mon Jan 5 17:22:06 2015 +0200 Do in-place decryption without memcpy() commit 0167a8d5789f1bfc69636083a2c1def6b89ad429 Author: npzacs <npzacs@gmail.com> Date: Sun Jan 4 19:40:35 2015 +0200 Bump so version commit 71ab9e6a08a52845bcd56cf729f78dc0c585c273 Author: npzacs <npzacs@gmail.com> Date: Mon Jan 5 16:09:56 2015 +0200 add aacs_set_fopen() Old filesystem handler was global and did not have any application-specific callback handle. commit fb5b6130ff584c8438fe4f80252687173dd112c8 Author: npzacs <npzacs@gmail.com> Date: Mon Jan 5 16:09:56 2015 +0200 Open all files in aacs.c commit 0235dc59448234d05d88af755383593ed1b02084 Author: npzacs <npzacs@gmail.com> Date: Mon Jan 5 16:52:17 2015 +0200 Simplify _verify_ts() Only complete blocks can be decrypted. Block is always exactly 32 packets. Reset encryption indicator in header while checking sync bytes. commit b7aeaa763c1fa4e719d4e53931313a6cd43729c8 Author: npzacs <npzacs@gmail.com> Date: Mon Jan 5 16:31:53 2015 +0200 log: do not print full paths commit 5c95d0dd58ae004b8a9dd902fd5ca8b2318ab12b Author: npzacs <npzacs@gmail.com> Date: Mon Jan 5 15:22:33 2015 +0200 Factorize commit 746d8ab0145628fc4731dc3bf7d0c309832d4ce2 Author: npzacs <npzacs@gmail.com> Date: Mon Jan 5 01:32:10 2015 +0200 mmc: accept block device path commit 2b05b38b8708be0c406ad01b6b89c759cace038e Author: npzacs <npzacs@gmail.com> Date: Sun Jan 4 18:13:33 2015 +0200 Merge makefiles delete mode 100644 src/Makefile.am commit 551d6a6ad4c932ebf5f5f0ed1e9e17219a784dfa Author: npzacs <npzacs@gmail.com> Date: Fri Jun 13 23:44:25 2014 +0300 Reduce log level of failed PMSN query commit 48277e7af4db7f14cb8562c2356836ec183fc147 Author: anonymous <anonymous@anonymous.org> Date: Tue May 27 11:22:35 2014 +0300 Fix paths in BUILT_SOURCES commit 277c9c100837cd5007a50e4f424dc3d6d23d5184 Author: anonymous <anonymous@anonymous.org> Date: Tue May 27 11:04:31 2014 +0300 automake: use subdir-objects commit f397e8e47645daf66847cb0ae84c68362deb6d4d Author: anonymous <anonymous@anonymous.org> Date: Tue May 27 10:49:31 2014 +0300 0.7.1 commit f60d0d487bb8330e431d5e770e59b18c7bc3bb72 Author: Janusz Dziemidowicz <rraptorr at nails.eu.org> Date: Sun Jan 12 14:51:57 2014 +0100 Do not retrieve MKB using MMC commands during AACS-Auth In _mmc_read_auth() MMC commands are used to retrieve MKB from the drive to display a warning if a host certificate is revoked. Unfortunately, reading MKB using MMC is very slow (up to 10 seconds) and it bypasses OS cache so it takes the same amount of time every time. _mmc_read_auth() is called several times (VID retrieval, PMSN retrieval, read data key retrieval), which can cause up to 30 second delay when trying to play a disc (VID is cached, but PMSN is not and BD-J code tends to try to retrieve it even when there is no PMSN on the disc). Fix this by removing MKB retrieval in _mmc_read_auth(). This only causes a warning not to be displayed, however there still will be an information if the host certificate is revoked (drive will simply reject it). 1 file changed, 67 deletions(-) commit cbc200ffc454b142f5def611cac607997f7983e5 Author: Janusz Dziemidowicz <rraptorr@nails.eu.org> Date: Wed Dec 25 20:20:34 2013 +0100 Support gcrypt 1.6.0 There seems to be a slight change in S-expressions (fortunately backward compatible). There is also additional flag needed in rather strange place (data section instead of key section), most probably a bug in gcrypt. Decrypting a 350MB file with gcrypt 1.5 takes around 4 seconds on Core Quad Q9450 2.66GHz while with gcrypt 1.6 around 2.8s (the processor does not support AES-NI). commit 81599b23fbe2fd37317d5a7a5642fa7dd9cf7bb4 Author: npzacs <npzacs@gmail.com> Date: Tue Dec 17 18:48:37 2013 +0200 _update_drl() -> _update_rl(): update both revocation lists commit c40399597ca863b4f542fb4e1bf9cb63c1a3b4a1 Author: npzacs <npzacs@gmail.com> Date: Tue Dec 17 18:47:04 2013 +0200 Do not do same check twice commit a57a4b1ebd0f1f689ab16e5e9b01485ca0c9ff14 Author: npzacs <npzacs@gmail.com> Date: Tue Dec 17 18:49:55 2013 +0200 mmc: added logging commit f0ba1f9c21f10d6e58ddcef859fb20c741d6c46a Author: npzacs <npzacs@gmail.com> Date: Tue Dec 17 18:44:28 2013 +0200 Added aacs_get_mk() commit 0837c5fa55eeb61b9d79e10ca22fbac47e75773a Author: npzacs <npzacs@gmail.com> Date: Tue Dec 17 20:43:24 2013 +0200 Fix cache_remove() commit 5406e03266cf440ef77addd1085165b3ec161d14 Author: anonymous <anonymous@anonymous.org> Date: Mon Dec 16 12:27:47 2013 +0200 mkb_open(): fixed leak in error path commit 3fa97c179ac8e61ed53dfcd7a0f3e3f2e8a91c58 Author: Janusz Dziemidowicz <rraptorr@nails.eu.org> Date: Sun Dec 15 21:16:21 2013 +0200 Fix parsing of first title entry f888ebf caused first title entry from KEYDB.cfg to be ignored as it is trying to add entries to uninitialized list, and just prints following warning: Error: No title list passed as parameter. Fix it by moving initialization to proper place. commit e3def00a3096d647779fb47948a68d21033610db Author: Janusz Dziemidowicz <rraptorr@nails.eu.org> Date: Sun Dec 15 21:11:37 2013 +0200 add_entry() receives a hexstring, so the length check should be twice the number of bytes. commit 30eb6eae216cd8629cb7a69478b78635ddb67489 Author: npzacs <npzacs@gmail.com> Date: Fri Dec 13 12:15:46 2013 +0200 Call _mmc_check_aacs() in windows, but do not fail if it does not succeed commit 0b14663bce977ae8b7f8a8911d3f9e4f60d3a417 Author: npzacs <npzacs@gmail.com> Date: Wed Dec 11 14:45:36 2013 +0200 Fix error path in aacs_open() commit 9f2c509f947c9b599bf0d88a147cbf603b9bb73b Author: npzacs <npzacs@gmail.com> Date: Wed Dec 11 14:44:39 2013 +0200 Avoid PRIu64 commit df5c3f686da95cea541e01f192f27d493fd0318a Author: npzacs <npzacs@gmail.com> Date: Wed Dec 11 14:41:44 2013 +0200 Use more portable printf format commit fa1a705c1555706835c6c705df081d93c62800f0 Author: npzacs <npzacs@gmail.com> Date: Wed Dec 11 14:34:46 2013 +0200 Hide warning (_mmc_check_aacs() is not used in Windows) commit 306d7b8f413f44d82aaaffbd4ed1852cb14fe51b Author: npzacs <npzacs@gmail.com> Date: Wed Dec 11 14:32:07 2013 +0200 Avoid %zd in format strings commit b9a3090450bd5ea320d46edb721ef1a04c96b6b6 Author: npzacs <npzacs@gmail.com> Date: Wed Dec 11 11:34:44 2013 +0200 Fix PK calculation when there are multiple devices commit 5ff6b0d6a9a2ae2bbed3864ef76db68d59426aa2 Author: npzacs <npzacs@gmail.com> Date: Wed Dec 11 11:31:11 2013 +0200 DK uv value can not be 0 commit 2bb0fcc4b6821d8f1c9584522bbe9862c4aec643 Author: npzacs <npzacs@gmail.com> Date: Wed Dec 11 10:57:36 2013 +0200 0.7.0 commit 57c0bd3766821426828068260fd0b952597c7613 Author: anonymous <anonymous@anonymous.org> Date: Wed Nov 27 12:41:51 2013 +0200 Fix segfault in win32 file_get_config_system() commit 9c313f6ba978c67cf40347d6d6ff27730169521c Author: npzacs <npzacs@gmail.com> Date: Wed Nov 27 09:47:03 2013 +0200 Restore HAVE_LIBGPG_ERROR to config.h commit fc5a368f63910556f912e5f9933907426876a7d4 Author: npzacs <npzacs@gmail.com> Date: Mon Nov 25 10:33:26 2013 +0200 Fix linking against gpg-error commit bf5cf76fc145ed452e4d1cb439b3be3204543e64 Author: npzacs <npzacs@gmail.com> Date: Fri Nov 15 10:09:40 2013 +0200 Merge file/dirs* from libbluray commit 1e8083217606393e6ff58cebbe4a19d49338716f Author: npzacs <npzacs@gmail.com> Date: Thu Oct 24 13:57:51 2013 +0300 Fixed wrong header commit d0a4d77889e9f7891e20306830fa2a7e3f706137 Author: npzacs <npzacs@gmail.com> Date: Thu Oct 24 13:51:18 2013 +0300 Avoid using realpath create mode 100644 src/file/path.c create mode 100644 src/file/path.h commit e9329e428c627e0e350fedc5c7b16f85381d54dd Author: npzacs <npzacs@gmail.com> Date: Mon Oct 21 16:17:11 2013 +0300 internal key db support create mode 100644 src/file/keydb.h commit 9c5bd8eb170c7bac8dc1f9d74c0d92ac28081e01 Author: npzacs <npzacs@gmail.com> Date: Mon Oct 21 16:40:45 2013 +0300 Fix device key looping commit fdfc19aa23ba055c87eafc72fd537deac9473bf7 Author: npzacs <npzacs@gmail.com> Date: Mon Oct 21 13:16:42 2013 +0300 Calculate processing key using device keys commit 2165219123b36ae2b1a772e64a98a40f85ec2673 Author: npzacs <npzacs@gmail.com> Date: Mon Oct 21 13:07:02 2013 +0300 Update KEYDB.cfg documentation commit 56ac906a7620737cc2e73233bcaca24671177243 Author: npzacs <npzacs@gmail.com> Date: Sun Oct 20 21:56:48 2013 +0300 config: parse hex strings commit f888ebf580f248d12d0ad693bc27f555a04a0165 Author: npzacs <npzacs@gmail.com> Date: Sun Oct 20 21:46:05 2013 +0300 Avoid empty config entries commit d1fd10278917322c195c1669ce1b8dab893372b9 Author: npzacs <npzacs@gmail.com> Date: Sun Oct 20 12:47:08 2013 +0300 keydb.cfg: validate key length commit 13af8e960f7622b5dda7a288ee1ccb120155aefe Author: npzacs <npzacs@gmail.com> Date: Sun Oct 20 22:30:55 2013 +0300 Remove leftover fprintf() commit 0601de8b50f2b2432946805d375db9fd37e049c9 Author: npzacs <npzacs@gmail.com> Date: Tue Oct 15 13:45:08 2013 +0300 Do not fail if vid is known but config file does not exist commit 923c886178063112a70162717de8e85bff179b4e Author: npzacs <npzacs@gmail.com> Date: Tue Oct 15 13:51:39 2013 +0300 Factorize common code commit 07e540c962b0dc090c3417e4c01ca6d4f5fe762c Author: npzacs <npzacs@gmail.com> Date: Tue Oct 15 09:38:51 2013 +0300 Improved error logging when drive and certificate are incompatible commit 8564b415e77091120f80cf268942196b335710d9 Author: npzacs <npzacs@gmail.com> Date: Tue Oct 15 09:34:22 2013 +0300 mmc_read_drive_cert(): verify and cache certificate commit 9897cfb858d87202f6c438c67e0fb9f888fea9e4 Author: npzacs <npzacs@gmail.com> Date: Tue Oct 15 09:37:39 2013 +0300 mmc: read drive certificate in mmc_open() if drive supports reading it commit 05e66147394a2b4c8acf4948c99c806f28bd21b6 Author: npzacs <npzacs@gmail.com> Date: Tue Oct 15 09:35:39 2013 +0300 _mmc_check_aacs(): print flags as 0 or 1 commit 7d3b0df1a8969f076da58b77b6ff797166f6d32c Author: Janusz Dziemidowicz <rraptorr@nails.eu.org> Date: Sun Oct 20 11:30:10 2013 +0300 Those parameters are unused since 622fbe0, makes them optional in configuration file. commit cd72e8ee5076dce9bf7106e26d4bcca22732ec49 Author: Janusz Dziemidowicz <rraptorr@nails.eu.org> Date: Tue Oct 8 11:48:23 2013 +0200 Properly report AACS version from AACS drive feature AACS version is located at offset 7, not at offset 5 which contains binding nonce block count. commit 18d7c70a5986d8f4ec64556fff18e652284bbd39 Author: npzacs <npzacs@gmail.com> Date: Tue Oct 8 11:39:35 2013 +0300 Updated .gitignore commit 9b6e7bbb832b9680e207884c21a2a82bf52c1e2c Author: npzacs <npzacs@gmail.com> Date: Tue Oct 8 11:38:17 2013 +0300 Use crypto_aes128d() commit a4e5a32a4eaaedd6a7319ea26c5800f2c834d4cd Author: npzacs <npzacs@gmail.com> Date: Tue Oct 8 11:29:54 2013 +0300 mmc: removed obsolete flag commit 89cf717f9c4a35c243a179e08edda13d3c95db4e Author: npzacs <npzacs@gmail.com> Date: Tue Oct 8 11:24:20 2013 +0300 Rename *_dirs.c delete mode 100644 src/file/darwin.c create mode 100644 src/file/dirs_darwin.c create mode 100644 src/file/dirs_win32.c create mode 100644 src/file/dirs_xdg.c delete mode 100644 src/file/win32.c delete mode 100644 src/file/xdg.c commit f26483a0a96559cf6f7af8ff1bf7df10cafc957c Author: npzacs <npzacs@gmail.com> Date: Tue Oct 8 11:20:10 2013 +0300 Simplify building system-specific config dir stuff delete mode 100644 src/file/darwin.h create mode 100644 src/file/dirs.h delete mode 100644 src/file/win32.h delete mode 100644 src/file/xdg.h commit 2a4ef4b0013e34b06586b068ad4fc35f96672201 Author: npzacs <npzacs@gmail.com> Date: Tue Oct 8 10:58:13 2013 +0300 Reduce make recursion: merge src/examples/Makefile.am to src/Makefile.am delete mode 100644 src/examples/Makefile.am commit 6e1153b07540fd0d964f6e40ee1eb4696453a6b2 Author: npzacs <npzacs@gmail.com> Date: Tue Oct 8 10:39:01 2013 +0300 Fix include paths in aacs_info.c commit 60f8977257405d515515cbe1c46dcb5180be5af8 Author: npzacs <npzacs@gmail.com> Date: Tue Oct 8 10:32:30 2013 +0300 Fixed aacs_info source file name commit 08d869c8122ae4c6a73c8e7d8aed60bdacba339b Author: npzacs <npzacs@gmail.com> Date: Tue Oct 8 09:57:07 2013 +0300 Added aacs_get_device_binding_id() and aacs_get_device_nonce() commit 61463b4fc30dcfee7fddfe83de1a08c08fe03e16 Author: npzacs <npzacs@gmail.com> Date: Tue Oct 8 09:56:09 2013 +0300 ChangeLog update commit a7de165a0361d9cc7f3091850969853b63100c19 Author: npzacs <npzacs@gmail.com> Date: Mon Oct 7 13:39:39 2013 +0300 Added missing debug_mask default initialization commit 7fcf05e653f9bb829bdc9a6d8b24739872d9a3c6 Author: npzacs <npzacs@gmail.com> Date: Mon Oct 7 13:29:56 2013 +0300 Allow opening config files in write mode commit c2ee655101137a65f92c2419987609ce673d8d39 Author: npzacs <npzacs@gmail.com> Date: Mon Oct 7 13:27:27 2013 +0300 Increase log level of failed directory creation commit 5b8eb9aa839d24a053dd13bd5683e5f80587ec3b Author: npzacs <npzacs@gmail.com> Date: Mon Oct 7 13:27:04 2013 +0300 Cosmetics commit e274ebb0924d1f0367833be99f2bbbac0b454465 Author: npzacs <npzacs@gmail.com> Date: Mon Oct 7 13:18:53 2013 +0300 Simple logging optimization commit 5bde0423edda8a7734b433fd3148584e916f4e8c Author: npzacs <npzacs@gmail.com> Date: Mon Oct 7 12:58:44 2013 +0300 Erase sensitive data in close commit 9ad1cd75b70e2b4a73417e5891848d3ff5891354 Author: Janusz Dziemidowicz <rraptorr@nails.eu.org> Date: Fri Sep 13 15:19:15 2013 +0200 Fix reading PMSN While working on bus encryption I've found out that some drives (if not all) require a new AACS-Auth for reading data keys. It seems that the same goes for reading PMSN. After digging through my discs I've finally found one with PMSN and I was able to verify this with two LG drives. Fix it by moving PMSN reading to a separate function with a new AACS-Auth. commit 393a51275360a2945d946bad88e10f8f5ee95c7e Author: npzacs <npzacs@gmail.com> Date: Mon Oct 7 12:23:12 2013 +0300 Restore aacs_open2() semantics. aacs_open2() returns aacs handle even if disc can not be decrypted. This allows app to query disc id, mkb version etc. commit 7e1038cc10b34ef267332e684391c1d951b59b9a Author: npzacs <npzacs@gmail.com> Date: Mon Oct 7 11:35:01 2013 +0300 _decrypt_bus(): Avoid memcpy (bus decryption can't be retried with another key) - we have only one key - data is still encrypted and can't be verified commit 11b043ebc18d1f325be1859a4c16bea1d8a47234 Author: npzacs <npzacs@gmail.com> Date: Mon Oct 7 10:49:17 2013 +0300 Reduced data duplication: store only one copy of AES IV. Mark it static const. commit fb59dc8a04b58c60565138d4952c3aad2a26fa10 Author: npzacs <npzacs@gmail.com> Date: Mon Oct 7 09:46:06 2013 +0300 Fixed using uninitialized agid in _mmc_aacs_auth() commit 91bda6ce62b5111cc5ccaf526c06c3b3c6234356 Author: npzacs <npzacs@gmail.com> Date: Mon Oct 7 09:43:43 2013 +0300 Dropped support for compile-time PATCHED_DRIVE flag. If this is still needed, it should be implemented as run-time option (environment variable ?). commit 583df16fa867ccda948a6c760ee8912684fb7b9d Author: Janusz Dziemidowicz <rraptorr@nails.eu.org> Date: Sat Sep 7 01:54:09 2013 +0200 Support for AACS bus encryption Due to the fact that AACS bus encryption was only hinted by early AACS specification there seems to be some misconceptions. First, what bus encryption is _not_: - it does not encrypt all communication between drive and host - it does not encrypt VID retrieval - it does not use bus key (this is only poor wording in the specification) Second, what is required for bus encryption to be activated: - a bus encryption capable drive, drive certificate will have 0x01 as a second byte - a bus encryption capable disc, content certificate (located in AACS/Content000.cer) will have 0x80 as a second byte - a bus encryption capable host, host certificate will have 0x01 as a second byte There are various combinations of all of those flags, so let's provide a short summary: - if drive is not bus encryption capable, then bus encryption will not be used, other flags are not relevant and normal AACS procedure will work as usual - if drive is bus encryption capable but disc is not bus encryption enabled then bus encryption will not be used; however, drive will only allow hosts with bus encryption capable certificates, without one normal VID retrieval will fail, but getting VID from other source will make the disc playable - if drive is bus encryption capable and disc is bus encryption enabled then bus encryption will be used, only hosts with bus encryption capable certificates can read such discs; getting VID from other source is not enought to read such disc as one must also have Read Data Key to decrypt bus encryption which is drive specific While most of the current drives are supposed to be bus encryption capable, most of the discs currently are not and it is quite hard to come across one. Obviously this might change in the future. So what is encrypted by bus encryption? Excatly the same data that is encrypted by normal AACS, this means .m2ts files located in BDMV/STREAM directory. Only this and nothing else. Bus encryption is applied on the fly by the drive. Since the disc is already AACS encrypted the host must first decrypt bus encryption and then perform normal AACS decryption. So what is the difference? Bus encryption uses encryption key that is drive specific, this means that the same disc read on another drive model will produce differently encrypted data. Without bus encryption, files simply copied from disc can be decrypted if one gets proper VID. With bus encryption, such copy is useless, unless proper decryption key is retrieved from the exact same model of the drive. I am not sure if the encryption key is specific to the drive model or every drive unit will have a different one. This and several previous commits implement everything that is needed to support bus encryption: - determining if bus encryption is enabled from certificates - retrieval of read data key that is used to encrypt data - proper decryption (bus encryption works on sector boundary) before main AACS decryption Code was tested with mplayer on LG BH16NS40 with "The Alien Anthology Archives" disc from Alien Anthology (it is the only bus encryption enabled disc out of 6 in the anthology). commit 3637d44b0ca92a10d7c15b19cbf7a484d5c66a0b Author: npzacs <npzacs@gmail.com> Date: Fri Sep 13 12:02:04 2013 +0300 Added aacs_free_rl() commit 63579eae42b99f146e53baee17da2e6b59fdc7ab Author: npzacs <npzacs@gmail.com> Date: Fri Sep 13 11:52:38 2013 +0300 Added bus encryption status to aacs_info commit 53fd3ed22d05bbe5736ee0303f6f5d470cd64f25 Author: npzacs <npzacs@gmail.com> Date: Fri Sep 13 10:45:18 2013 +0300 mmc: cache drive certificate All drives do not support REPORT_KEY with format 0x38, so we need to cache the certificate from aacs authentication procedure. commit 7c8c7b43dfa85e5dc34bba11b200e0fb968a2004 Author: Janusz Dziemidowicz <rraptorr@nails.eu.org> Date: Sat Sep 7 01:16:14 2013 +0200 Retrieve bus encryption flags from drive and content certificate For bus encryption to be active it must be enabled both by the drive and the disc. Drive certificate contains Bus Encryption Capable (BEC) flag in the least significant bit in the second byte of the certificate. Content certificate contains Bus Encryption Enabled (BEE) flag in the most significant bit in the second byte of the certificate. Retrieve both bits so it is now possible to check if bus encryption is active (it will not be active if the disc does not enable it, even on bus encryption drive; most discs currently do not enable it). commit af331cf37d71ca0b590cf05af1082bff329f16e3 Author: npzacs <npzacs@gmail.com> Date: Thu Sep 12 12:29:12 2013 +0300 mmc_read_data_keys(): added comment from previous commit message (It seems that at least some drives require a new AACS-Auth every time keys are being read) commit e3ae3eecf0b61072906b84acaa400d348ffe2ab2 Author: Janusz Dziemidowicz <rraptorr@nails.eu.org> Date: Fri Sep 6 23:47:52 2013 +0200 Function for reading data keys from drive Bus encryption uses data keys (separate one for reads and writes) that can be retrieved from drive after sucessful AACS-Auth. Add function to retrieve those keys. It seems that it requires a new AACS-Auth every time keys are being read (at least reading the keys right after reading VID fails on my drive). commit 569b8ea1eec01bc6f91b7d848374db5d8b8d6af1 Author: Janusz Dziemidowicz <rraptorr@nails.eu.org> Date: Fri Sep 6 22:41:01 2013 +0200 Split AACS-Auth into separate function AACS-Auth is required for bus encryption, not only VID retrieval, move it to a separate function from _mmc_read_vid(). commit 3444827e559dcfca1ab77fd4ec35f6138bbf522c Author: Janusz Dziemidowicz <rraptorr@nails.eu.org> Date: Fri Sep 6 23:42:14 2013 +0200 Convenience function implementing AES-128D commit 2708c77d26d28f46b138729da8abfd4af2c20ff9 Author: npzacs <npzacs@gmail.com> Date: Thu Jul 4 13:08:48 2013 +0300 Reduced logof failed PMSN read (PMSN is optional) commit ece6afdb73546be4aadf05ccc30dc4e745f27999 Author: npzacs <npzacs@gmail.com> Date: Thu Jul 4 13:06:50 2013 +0300 Calculate bus key and use it to verify message authentication codes commit 1e4b1307656ed2b1f9633d317a6ab4146a935948 Author: npzacs <npzacs@gmail.com> Date: Sun Jun 30 20:49:03 2013 +0300 Fixed aacs_get_pmsn() when using cached vid commit ad0a3bba79937755e354bf792f1a6975d7a9117b Author: npzacs <npzacs@gmail.com> Date: Sun Jun 30 20:20:06 2013 +0300 Fixed aacs_get_vid() and aacs_get_pmsn() return value when key is not available commit 73c0b1c234fdbed72b6a07d9410806b0d6f50fb3 Author: npzacs <npzacs@gmail.com> Date: Sun Jun 30 20:06:41 2013 +0300 Store VID in key cache. VID is required for BD-J and BD+, VUK is not enough. commit dc46ea184e05f37507d89c3a6dd5ded2ce002dd2 Author: npzacs <npzacs@gmail.com> Date: Sun Jun 30 12:20:25 2013 +0300 Added check for too long hex strings in config file commit 23c2f9f8f7ac14035e263c86171df1affa228552 Author: npzacs <npzacs@gmail.com> Date: Sun Jun 30 12:03:20 2013 +0300 aacs_info: print pmsn commit d5d3ae2260e17b33991660dde00407f2cb79d0db Author: npzacs <npzacs@gmail.com> Date: Sun Jun 23 10:43:56 2013 +0300 Log error message when drive requires bus encryption. Some new drives implement bus encryption. Such drives do not work with libaacs currently. commit 863e0a50ed9ee7b9bf4695a74bc4d607d12a67ff Author: npzacs <npzacs@gmail.com> Date: Mon Mar 4 14:44:13 2013 +0200 0.6.0 release commit 74e0b49938a4dbbad1de396f1e94461834229a26 Author: npzacs <npzacs@gmail.com> Date: Mon Mar 4 14:36:07 2013 +0200 Removed aacs/mmc pointers from log messages commit f096d17343735bdab11fab6cabb0ae2a7555e94b Author: npzacs <npzacs@gmail.com> Date: Mon Mar 4 14:35:30 2013 +0200 Fixed logging pointers commit fe06d7f06f1ff531113d62ae9460b7fdf59e0d6a Author: npzacs <npzacs@gmail.com> Date: Mon Mar 4 14:26:30 2013 +0200 Fixed DEBUG() definition to be C99 compatible commit 37c12015440d2c6ba7589dfbde97cd90d64753a1 Author: npzacs <npzacs@gmail.com> Date: Mon Mar 4 14:01:46 2013 +0200 Hide warnings in parser/lexer commit de06c581a8ddb8bb27bac3b54df4fc8a0bcac545 Author: npzacs <npzacs@gmail.com> Date: Mon Mar 4 13:26:00 2013 +0200 Hide shadowed declaration warnings commit 9b7f2450f08d719e3f6be5a484a13fbb4171010a Author: npzacs <npzacs@gmail.com> Date: Tue Feb 26 00:16:05 2013 +0200 build: use pkginclude for headers commit 1ebf608792bf5c1bc7e5883d0908aca244d622a4 Author: npzacs <npzacs@gmail.com> Date: Sun Feb 24 13:50:42 2013 +0200 build: cleanup the whole handling of CFLAGS Simplify --enable parameters in configure, and use a more common default output. Use attributes.m4 from xine/feng instead of a custom piece of code that uses mktemp. create mode 100644 m4/attributes.m4 commit 334eb960c728d7b3cbf386ecb3b45ee8942229bf Author: npzacs <npzacs@gmail.com> Date: Sun Feb 24 13:33:30 2013 +0200 build: avoid an extra variable commit 04c3af2f519dc50ace00c5ad942ea9e8d629b0ab Author: npzacs <npzacs@gmail.com> Date: Sun Feb 24 13:27:47 2013 +0200 build: remove the subdirs recursion at src level commit 5e3c27248d64f696624a158ae9ff5270724a16dd Author: npzacs <npzacs@gmail.com> Date: Sun Feb 24 13:18:27 2013 +0200 configure: updated pthread test commit 5052152c235195f5fa780d0aafcb3053fe3b4ec8 Author: Stephan Raue <stephan@openelec.tv> Date: Sun Feb 24 13:09:03 2013 +0200 support bison-2.6 Patch grabbed from OpenELEC.tv commit 491da2919dea5e624a2344eed1c5dc77a461be4d Author: npzacs <npzacs@gmail.com> Date: Sun Feb 24 11:19:52 2013 +0200 centralize automake options within configure.ac commit 1ccda125c3a52bf4b9b21caa178925bdbbda62f6 Author: npzacs <npzacs@gmail.com> Date: Sun Feb 24 11:07:02 2013 +0200 configure.ac: # -> dnl commit 3dca8ecb5a737b9a8ee6eef081be1f3f76d07399 Author: npzacs <npzacs@gmail.com> Date: Sun Feb 24 10:59:09 2013 +0200 AM_CONFIG_HEADER -> AC_CONFIG_HEADERS commit 5cb7a50fc986c291f7936af46f33b784318cd10b Author: npzacs <npzacs@gmail.com> Date: Fri Jan 4 12:22:14 2013 +0200 Added reading of PMSN (Pre-recorded Media Serial Number) commit c7af2ba138ffa16bc4b2136fca3f7c29ff825a78 Author: John Doe <john@doe.org> Date: Mon Aug 27 23:35:16 2012 +0300 key parser: Fix resource leak commit 584f6c090a6a8eadcbbbf1074536036df693b425 Author: Konstantin Pavlov <pavlov.konstantin@gmail.com> Date: Fri Aug 17 12:40:18 2012 +0400 Use proper paths to search for keydb and friends on Darwin. create mode 100644 src/file/darwin.c create mode 100644 src/file/darwin.h commit 1f7301947d7f35d66a012705c06df4c54ed990c5 Author: npzacs <npzacs@gmail.com> Date: Fri Aug 17 10:39:48 2012 +0300 0.5.0 release commit be06475c72b94a35e2f5f06671448067e95b866a Author: Ano Nymous <ano@anonymous.org> Date: Thu Aug 16 12:09:52 2012 +0200 Deactivate the _mmc_check_aacs on Win32, until it is fixed commit 6bd4bf2c0c0880c75a676c632b95230254475648 Author: Ano Nymous <ano@anonymous.org> Date: Thu Aug 16 12:06:23 2012 +0200 Mac: kill a warning commit 10f3fc073debc20ecce21c5a74b52452e6e8b535 Author: Nathan Hjelm <hjelmn@me.com> Date: Tue Aug 14 18:57:34 2012 -0600 Fix various bugs in iokit support, improve logs and comments Signed-off-by: Ano Nymous <ano@anonymous.org> commit 71e510879d380b808a6d517b76d2f6d2117ab633 Author: Nathan Hjelm <hjelmn@mac.com> Date: Sun Aug 12 01:27:46 2012 +0200 Support for Mac OS X using IOKit commit ea80c9fb293f35a927d127fd12ec066e57ff521b Author: Ano Nymous <ano@anonymous.org> Date: Sun May 27 18:35:10 2012 +0200 Support for build outside of srcdir commit 668bd765cd3bdaf8216ad0fa26e01286029c0499 Author: npzacs <npzacs@gmail.com> Date: Mon May 7 13:19:45 2012 +0300 0.4.0 release date commit a556c3f0f35f806d7f1ed440871b82eed56c0082 Author: npzacs <npzacs@gmail.com> Date: Mon May 7 11:39:42 2012 +0300 Fixed include path commit 765a35d084c5800cbed52cb127527ec267e8c031 Author: npzacs <npzacs@gmail.com> Date: Mon May 7 11:35:30 2012 +0300 Check host certificates against latest seen revocation list commit 6ff177eaadefde6895028f27d49f3f289d614b26 Author: npzacs <npzacs@gmail.com> Date: Fri May 4 10:41:54 2012 +0300 Added revocation lists to aacs_info commit 3ea58ea80d7cc6aa46f6306b79e7019a4c486b2b Author: npzacs <npzacs@gmail.com> Date: Mon May 7 11:09:59 2012 +0300 Read and cache host revocation list when drive is opened commit 8c95f8a54b7d51c38c3b2a5701f8cffbd6ea00e0 Author: npzacs <npzacs@gmail.com> Date: Fri May 4 10:44:06 2012 +0300 Update cached drive revocation list when mkb is opened commit 9fe352aec1bcd838c260073f3c47e71ca4333350 Author: npzacs <npzacs@gmail.com> Date: Fri May 4 10:10:14 2012 +0300 Added cache_get_or_update() and cache_remove() commit ec918064cdc8f3d0101ee741293b4a5d8fa26ec6 Author: npzacs <npzacs@gmail.com> Date: Sun May 6 21:56:05 2012 +0300 Added mkb_host_cert_is_revoked() and mkb_drive_cert_is_revoked() commit e962a93245e54f86ecc03063c58d392125680815 Author: npzacs <npzacs@gmail.com> Date: Mon May 7 10:41:26 2012 +0300 .gitignore: added aacs_info commit 65fb40ea60a29da286e8c6354689010e87a512a0 Author: npzacs <npzacs@gmail.com> Date: Thu May 3 21:46:22 2012 +0300 Added mmc_read_mkb() commit 7de9111341aa53d0ad2b4b22ca234524ac482085 Author: npzacs <npzacs@gmail.com> Date: Thu May 3 22:10:16 2012 +0300 Fixed using uninitialized pointers commit 5fabeaf32b9df131373ec6d5e1d18801a44a9c96 Author: npzacs <npzacs@gmail.com> Date: Thu May 3 22:07:14 2012 +0300 Fixed memory leak in parser commit c3e76f601dfd4029488506ec2c41c626882d3ed5 Author: npzacs <npzacs@gmail.com> Date: Thu May 3 21:43:21 2012 +0300 Fixed buffer overflow when logging large MMC data buffers commit 260b8add3f1a09f32098fef8b419d56b0842040c Author: npzacs <npzacs@gmail.com> Date: Thu May 3 21:35:20 2012 +0300 Fixed memory leak in lexer commit 9e39d14365e7fb725d30bbf605db42acd874f67f Author: npzacs <npzacs@gmail.com> Date: Wed May 2 22:48:51 2012 +0300 Check for drive AACS capability and AACS presence commit d5b18dc7cacb77f28b42e3e0b77e9271f7b8f8ad Author: npzacs <npzacs@gmail.com> Date: Wed May 2 15:27:15 2012 +0300 mkb: added initialization from memory and access to raw data commit fed9d7b6f962659185c62525c3327d3be96256e3 Author: npzacs <npzacs@gmail.com> Date: Wed May 2 14:54:38 2012 +0300 Added non-volatile cache commit 186f79d25f20af399fb659b85c15fe6639e447e5 Author: npzacs <npzacs@gmail.com> Date: Wed May 2 14:53:22 2012 +0300 Fixed logging long strings commit b5c1884cfe3936377c3cc97027a72bf873d745f3 Author: npzacs <npzacs@gmail.com> Date: Wed May 2 09:51:01 2012 +0300 install aacs_info commit 1c921ea28c2f6eb8c9ef3dca6c178b962cbc4224 Author: npzacs <npzacs@gmail.com> Date: Wed May 2 08:54:37 2012 +0300 Fixed printing hex strings in aacs_info commit 69ed4e4742eca3e9cfd0ccf32c07d2351a973f76 Author: npzacs <npzacs@gmail.com> Date: Tue May 1 22:00:30 2012 +0300 Fixed aacs_get_vid() when vuk is cached. vid is needed for BD+. commit 72f9323fa9c1eef2c88bfc231cf61708b1319274 Author: npzacs <npzacs@gmail.com> Date: Tue May 1 21:59:51 2012 +0300 Removed mk, vid and config file from struct aacs commit 574b609c58d0dec11a87dff49deb18f3f4c635bf Author: npzacs <npzacs@gmail.com> Date: Tue May 1 21:58:37 2012 +0300 Cosmetics commit fdef27fb3ce9186b4b5b50de6a4751788bfc65ac Author: npzacs <npzacs@gmail.com> Date: Tue May 1 21:51:17 2012 +0300 Moved _load_config() to keydbcfg.c commit 83b6b7b16a685c6523e9ebef9376893e4f9d9b7b Author: npzacs <npzacs@gmail.com> Date: Tue May 1 13:21:52 2012 +0300 Cosmetics commit 54eb8832a0bbcad5e7f7be72e3d50dda55802268 Author: npzacs <npzacs@gmail.com> Date: Mon Apr 30 23:40:58 2012 +0300 Removed unneeded member from struct aacs commit b0950da1a0023618297c8eba36896d31ce61a9ef Author: npzacs <npzacs@gmail.com> Date: Mon Apr 30 23:25:27 2012 +0300 Added aacs_get_mkb_version() commit 0eb8803368dbb882fbb02be20a2d5a779516f469 Author: npzacs <npzacs@gmail.com> Date: Mon Apr 30 23:15:30 2012 +0300 Always free config in aacs_close() commit 045634ed79d230d773a396625532214d5570beb7 Author: npzacs <npzacs@gmail.com> Date: Mon Apr 30 23:15:03 2012 +0300 Log version number in open() commit c1117421b5e9da3b01312631b6b87fd0a59d2c66 Author: npzacs <npzacs@gmail.com> Date: Mon Apr 30 20:21:15 2012 +0300 Cosmetics (fixed indent) commit 80ea3e06b6b4b18998cbe59e780b567bddd78e75 Author: npzacs <npzacs@gmail.com> Date: Mon Apr 30 20:16:07 2012 +0300 Renamed libaacs_test -> aacs_info create mode 100644 src/examples/aacs_info.c delete mode 100644 src/examples/libaacs_test.c commit 88d21f313b468de1380b789ce3a604a68b2706b1 Author: npzacs <npzacs@gmail.com> Date: Sun Apr 29 20:55:06 2012 +0300 Added aacs_open2() + error codes commit 9ad9c476730ce41bdff249f0c45be7efb2eb1710 Author: npzacs <npzacs@gmail.com> Date: Wed Apr 25 14:51:29 2012 +0300 Improved logging of fatal errors commit f76462336b1f332398c5e51a40bd09c696a417d7 Author: npzacs <npzacs@gmail.com> Date: Wed Apr 25 14:50:41 2012 +0300 Start log lines with libaacs commit 4e9d74708c0b90d922e127084ca0609c86e71bef Author: npzacs <npzacs@gmail.com> Date: Wed Apr 25 14:25:35 2012 +0300 Failing title hash calculation is fatal. We need either the keys from that file or hash for config file. commit 8b2c68d0a2a855e5d817948bebff001d088f45f2 Author: npzacs <npzacs@gmail.com> Date: Wed Apr 25 14:19:42 2012 +0300 Removed unused return value commit 940232f05bf5ac2f7c590d47fce389524c39ce7b Author: npzacs <npzacs@gmail.com> Date: Wed Apr 25 14:15:12 2012 +0300 Fixed using uninitialized data commit 2deaa026341ee06a6b42b065f80b32140deb7504 Author: npzacs <npzacs@gmail.com> Date: Wed Apr 25 13:18:29 2012 +0300 Return error code from mmc_read_vid() commit 487dbdeef8aa4dd7b055a8a04f21ec2bb3bc3902 Author: npzacs <npzacs@gmail.com> Date: Wed Mar 21 10:50:33 2012 +0200 Fixed building examples commit cbc42074bcafd54b550e7accc5d90e352cfa5cb7 Author: npzacs <npzacs@gmail.com> Date: Wed Mar 21 09:42:28 2012 +0200 Version bump (0.3.1) commit d1c46734fab61164ffcd1d1a86b205fb9f53c15c Author: npzacs <npzacs@gmail.com> Date: Wed Mar 21 09:42:16 2012 +0200 Cosmetics commit 41b0365deaf697a2aedd90abd45d5ae9f2db0621 Author: hpi1 <hpi1@anonymous.org> Date: Thu Feb 9 14:15:21 2012 +0200 Added configure option for libgcrypt prefix commit 1989edb8af5ceadbd34c7a914a95e7d6809a026c Author: John Doe <john@doe.org> Date: Thu Feb 9 12:38:20 2012 +0200 Build shared library on windows Call AC_LIBTOOL_WIN32_DLL macro See http://sourceware.org/autobook/autobook/autobook_254.html Hack lt_cv_deplibs_check_method to allow linking static libraries inside a shared library (Hack comes from VLC) commit a2ed690bd41d588ca4d6f602c7e8881ecbd70814 Author: hpi1 <hpi1@anonymous.org> Date: Thu Feb 9 12:32:16 2012 +0200 Fixed typo commit 2a4e4ec7cff2b9cfb9d0ee0d46e4c1f20929bcbe Author: John Doe <john@doe.org> Date: Thu Feb 9 12:25:56 2012 +0200 Move libraries being linked to LIBADD commit 287e83092a89896f1899a17138d0b901defe9798 Author: npzacs <npzacs@gmail.com> Date: Sat Dec 17 15:41:36 2011 +0200 Fixed segfault when mount point path can't be resolved commit ca77cc7fb7179d88aa52b1167b799c7ca480fc29 Author: npzacs <npzacs@gmail.com> Date: Thu Dec 8 12:33:25 2011 +0200 Do not export internal symbols from generated parser/lexer commit f60f46da1dc5e87f70b6edc965a8909d3f21c247 Author: npzacs <npzacs@gmail.com> Date: Thu Dec 8 12:07:11 2011 +0200 Do not distribute generated parser files commit 9c975baacebf169878a7a8a2350050f7ae21ca55 Author: npzacs <npzacs@gmail.com> Date: Thu Dec 8 12:05:23 2011 +0200 Remove generated sources in "make clean" commit 668792d6a3aea4bab99a6fbf948dc5543394baa3 Author: npzacs <npzacs@gmail.com> Date: Thu Dec 8 12:03:51 2011 +0200 Cosmetics commit 8a4fb9edc8b5b9aa0b63aff40bb1df903a3646e6 Author: npzacs <npzacs@gmail.com> Date: Thu Dec 8 11:59:23 2011 +0200 Added missing static to local unction commit 0b1494be92e55f71bb140a94405f84451188a3d3 Author: npzacs <npzacs@gmail.com> Date: Thu Dec 8 11:58:17 2011 +0200 Properly link against libgpg-error when it is used commit 1c52531a8a49034ba75b0c7084287d6d978ff3b8 Author: npzacs <npzacs@gmail.com> Date: Thu Dec 8 11:44:10 2011 +0200 Distribute README.txt commit 9cb50b1e3d56ad51d5f6024fe2c5735ba9a71d4c Author: npzacs <npzacs@gmail.com> Date: Thu Dec 8 11:43:24 2011 +0200 Added ChangeLog create mode 100644 ChangeLog commit f88d80d8d1f435169cd248d1127a2801235d558a Author: npzacs <npzacs@gmail.com> Date: Wed Nov 30 16:02:48 2011 +0200 Fixed paths commit 7ca74d52b4187f987a6835d945d6936afc8c8464 Author: npzacs <npzacs@gmail.com> Date: Wed Nov 30 15:47:12 2011 +0200 Include ec.c in packages commit 0b58c7ee2dba29a118541ca20959c751b0661205 Author: npzacs <npzacs@gmail.com> Date: Wed Nov 30 15:46:10 2011 +0200 Create .bz2 packages commit 402e07a8dd99fba2c3e3cc61763d08dc82bf5567 Author: npzacs <npzacs@gmail.com> Date: Wed Nov 30 15:45:50 2011 +0200 Fixed include path commit cffe7436f2b1bb079daa5659b9057b3d27943bd2 Author: npzacs <npzacs@gmail.com> Date: Wed Nov 30 14:32:05 2011 +0200 Updated web page commit c3365b623a0ee6439b2fdfb909f57e5cbdafe75c Author: npzacs <npzacs@gmail.com> Date: Fri Nov 18 14:36:12 2011 +0200 Bumped verson commit 7aa576d3f894893e747fde07cb9aaab8480778c3 Author: npzacs <npzacs@gmail.com> Date: Fri Nov 18 14:34:24 2011 +0200 Moved .so version to configure.ac. Documented how .so version is formed. commit d22669379aa38289579256ccb1174ca561aa452b Author: npzacs <npzacs@gmail.com> Date: Fri Nov 18 12:05:05 2011 +0200 Added version information to API create mode 100644 src/libaacs/aacs-version.h.in commit 73a0a8d8d24101e92b69f51b1489b46c3dcb829b Author: npzacs <npzacs@gmail.com> Date: Fri Nov 18 12:04:17 2011 +0200 Changed version number to major.minor.micro commit 5d8a75c08e2957bd555845567055dd930d328424 Author: npzacs <npzacs@gmail.com> Date: Fri Nov 18 12:02:33 2011 +0200 All .in files are not autogenerated commit 8227284bbf9ba62551a4d46d1b49c5f768fbf3e3 Author: npzacs <npzacs@gmail.com> Date: Mon Nov 7 21:32:44 2011 +0200 Splitted _read_vid() from _calc_vuk(). Simplified _calc_vuk(): factorized duplicated key calculation code. Call mmc_open() only once. No need to call mmc_open() for every key... commit e7b4ccc8d09f15454e24f636cdd2fa5912a6b648 Author: npzacs <npzacs@gmail.com> Date: Mon Nov 7 21:28:54 2011 +0200 mmc: keys are not needed in open() commit 13e9ec1ef92cbaa18631cb3fb177fc09a9e3640a Author: npzacs <npzacs@gmail.com> Date: Fri Oct 28 15:27:39 2011 +0300 #if -> #ifdef commit 740e326af2dfe7ba5b191c9947dae532bdbb94c3 Author: npzacs <npzacs@gmail.com> Date: Fri Oct 28 15:23:23 2011 +0300 Resolve symbolic links from path (device can't be resolved without real mount point) commit de80345984a3265c5d1c03e320f8e4914347f021 Author: npzacs <npzacs@gmail.com> Date: Sat Oct 1 00:08:46 2011 +0300 Fixed mkdir() in windows commit 3a7563020cc209ceefe2b7357fd14c635e5e7d34 Author: npzacs <npzacs@gmail.com> Date: Sun Sep 25 03:44:41 2011 +0300 Bumped version to 0.2 commit 68899517c4d56f70b7bc11dae0e7fc678bdd82dd Author: npzacs <npzacs@gmail.com> Date: Sun Sep 25 03:34:52 2011 +0300 Win32: Use %appdata%/aacs as cache directory commit ee193b395549327c49d461618afbc3624de947d2 Author: npzacs <npzacs@gmail.com> Date: Sun Sep 25 03:19:13 2011 +0300 mmc: added signature checks and more key logging commit a37a4870b3162b76763c0c23b8030f4a1ea6b0e8 Author: npzacs <npzacs@gmail.com> Date: Sun Sep 25 03:02:50 2011 +0300 Removed incorrect check from hexstring_to_hex_array() commit 44c891792dae052275fcaadff1046520d9314762 Author: npzacs <npzacs@gmail.com> Date: Sun Sep 25 03:00:41 2011 +0300 Added simple caching for VUKs commit 0333c7cfcfcb5831371b8e4e5640b01ac55bee06 Author: npzacs <npzacs@gmail.com> Date: Sun Sep 25 02:55:32 2011 +0300 Fixed leak commit 71350c93262d4cf6e1fb5e59fc4436e2c43a9100 Author: npzacs <npzacs@gmail.com> Date: Sun Sep 25 02:54:48 2011 +0300 Removed redundant code commit c5319dcf58ad76986e56b54830d22d4fdbf0dbb9 Author: npzacs <npzacs@gmail.com> Date: Sun Sep 25 02:52:47 2011 +0300 Chained key calculation so that cached keys can be used commit 32cccee4f619172c8637c061bb6bb19ef8a64e5d Author: npzacs <npzacs@gmail.com> Date: Sun Sep 25 02:23:38 2011 +0300 Added aacs_get_disc_id() commit c2340fad1170c2be918d8a7e0ab70f76fd7a6a47 Author: npzacs <npzacs@gmail.com> Date: Sat Sep 24 16:54:44 2011 +0300 Verify host certificate before using it commit e6ede20745981c36e98e30163584a00371252ea6 Author: npzacs <npzacs@gmail.com> Date: Sat Sep 24 16:44:52 2011 +0300 Logging updates commit 6e28fc0bac4737db9054fd4fd43bd166e0ce3305 Author: npzacs <npzacs@gmail.com> Date: Sat Sep 24 16:35:46 2011 +0300 Fixed crypto_aacs_sign(). Sometimes gcry_sexp_nth_string() returns more than 20 bytes (data prefixed with 0). This results returning invalid signature. commit 31e8a17459d01e81876a96aa27e4d89c28752374 Author: npzacs <npzacs@gmail.com> Date: Sat Sep 24 15:36:07 2011 +0300 Added functions to verify host/drive certificates commit 87be221995d1095c9b6605e57c5f83fa289acd8d Author: npzacs <npzacs@gmail.com> Date: Sat Sep 24 15:29:43 2011 +0300 crypto_aacs_verify_cert(): check certificate length commit 46783398125d2a6ba28d5195e86a1058b19f4919 Author: John Doe <john@doe.org> Date: Wed Jun 22 16:56:51 2011 +0200 Win32 configuration directories support create mode 100644 src/file/win32.c create mode 100644 src/file/win32.h commit 9acda993123f0327e7c032e023ed8934bd8987c0 Author: Ano Nymous <ano@anonymous.org> Date: Wed Jun 22 15:22:13 2011 +0200 Fix pthread detection on Win32 commit 2a7427078cac41c84599c30054500dae92dc54b5 Author: npzacs <npzacs@gmail.com> Date: Tue May 17 14:51:13 2011 +0300 Added mkb_type_and_version_record() commit ddd765f6885e8a69706f64def86efd0988fc062e Author: npzacs <npzacs@gmail.com> Date: Tue May 17 14:50:23 2011 +0300 Fixed key length in crypto_create_host_key_pair() commit 497c22423d0e7f4548a4a4a560b2d37fb5d9cdc2 Author: npzacs <npzacs@gmail.com> Date: Fri Apr 22 12:16:24 2011 +0300 Use hex numbers for debug flags Commented out flags that should not be used by libaacs commit 79ac3ee5d0f5b5b397721e1495fe09fcf3edfba8 Author: npzacs <npzacs@gmail.com> Date: Sun Apr 17 21:36:35 2011 +0300 Use BD_DEBUG_MASK when AACS_DEBUG_MASK is undefined commit 3a714da675c967bef5b6239881981dcc9c4f30e9 Author: npzacs <npzacs@gmail.com> Date: Sun Apr 17 21:33:56 2011 +0300 Changed names of log control environment variables. libbluray can't use same log file. BD_DEBUG_FILE -> AACS_DEBUG_FILE BD_DEBUG_MASK -> AACS_DEBUG_MASK commit da3c5b4e49e47b3fe5177da91f6991a012dcb44c Author: npzacs <npzacs@gmail.com> Date: Sun Apr 17 21:33:15 2011 +0300 Fixed segfault when BD_DEBUG_FILE can't be opened commit e7aa4fd42c0d4df771db41881bf3aaee956758c2 Author: npzacs <npzacs@gmail.com> Date: Thu Dec 30 16:31:21 2010 +0200 Added functions to verify signatures: crypto_aacs_verify(): verify signature using public key from certificate crypto_aacs_verify_aacsla(): verify AACS LA signature crypto_aacs_verify_cert(): verify certificate signature commit 7d43afbade21e1f521c331231dacd9a8b9f93848 Author: npzacs <npzacs@gmail.com> Date: Thu Dec 30 16:14:33 2010 +0200 Splitted _aacs_sexp_sha1() from crypto_aacs_sign(). Added error checking. commit 1f6b5983412652f7f1d1dcc167069ca86b5560c3 Author: npzacs <npzacs@gmail.com> Date: Thu Dec 30 16:07:17 2010 +0200 Splitted _aacs_sexp_key() from crypto_aacs_sign(). Added support for public keys. commit f7d23b49b0a4d441e733ac4343b6001d61ed2a6f Author: npzacs <npzacs@gmail.com> Date: Thu Dec 30 15:55:01 2010 +0200 Improved libgcrypt error logging. Fixed possible leak. commit 231641234ca4f33d272601bbe0cf5329a04530af Author: npzacs <npzacs@gmail.com> Date: Mon Dec 27 15:09:11 2010 +0200 Filter out duplicate entries when reading simple config files commit 15dfb8d0fb7092c8e14d6c5ba7bfafc504099f21 Author: npzacs <npzacs@gmail.com> Date: Mon Dec 27 14:48:14 2010 +0200 Use simple config files if present commit d44f39debc6d74bb8a1d6f452af1dfd12531a52a Author: npzacs <npzacs@gmail.com> Date: Mon Dec 27 14:44:06 2010 +0200 Check for NULL pointers in keydbcfg_parse_config() commit f5c5b88f843d5dcb6ebe8cd01044d04f276985ea Author: Ian Campbell <ijc@hellion.org.uk> Date: Fri Dec 17 15:13:26 2010 +0200 Fixed run-time linking problems: When using libaacs with mythtv I was getting the following crash: Program received signal SIGSEGV, Segmentation fault. 0xb052085a in yylex () from /usr/lib/dri/i965_dri.so (gdb) bt #0 0xb052085a in yylex () from /usr/lib/dri/i965_dri.so #1 0xafe1529a in yyparse (scanner=0xafd24b48, dklist=0xafd3fa60, pklist=0xae054a70, clist=0xafd39af8, celist=0xae086908, dkplist=0x0) at keydbcfg-parser.c:1537 #2 0xafe15a22 in keydbcfg_parse_config (cfgfile=0xae036898, path=0xae0517c8 "/var/lib/mythtv/.mythtv/KEYDB.cfg") at file/keydbcfg-parser.y:440 Obviously the linker has picked the wrong yylex. I solved this with the following patch which renames all the yy* symbols to libaacs_yy*. commit fb77542a8f6c74ca5bf98d02836f08aaadc20a86 Author: npzacs <npzacs@gmail.com> Date: Thu Nov 11 12:42:34 2010 +0200 Added DEBUG_KEYS define commit 622fbe051f48d6902c039efa7e7cbce5a5fa9ac9 Author: npzacs <npzacs@gmail.com> Date: Thu Nov 11 12:36:23 2010 +0200 mmc_open(): removed deprecated parameters nonce and host_key_point commit 2caf1f635abfb4212dfd2eb6a2b816700593e319 Author: npzacs <npzacs@gmail.com> Date: Thu Nov 11 12:31:23 2010 +0200 _calc_vuk(): require host certificate commit 7f4b6ac9072eea2242ef74970052ca393ddf8bf3 Author: npzacs <npzacs@gmail.com> Date: Wed Nov 10 20:30:32 2010 +0200 Search for KEYDB.cfg from xdg directories. NOTE: DOES NOT SEARCH FROM ~/.libaacs/ or /etc/aacs/ ANYMORE ! commit bd30c06d63376ea6440a97670d837dd9ff37e12f Author: npzacs <npzacs@gmail.com> Date: Tue Nov 9 19:34:46 2010 +0200 Use xdg directories for simple config files commit b8ce893242ad680d8e809959fe68fd9c6129b55d Author: npzacs <npzacs@gmail.com> Date: Tue Nov 9 19:26:36 2010 +0200 Cosmetics: removed tabs commit aa302074085ae11707276da5149e9bc7643d10d3 Author: npzacs <npzacs@gmail.com> Date: Tue Nov 9 18:38:36 2010 +0200 Create random Hk and calculate corresponding Hv instead of reading Hv from config file (AACS spec, section 4.3, steps 23-24) commit 128b578dc80ff15eb30e0666e2dc3149b7defe18 Author: npzacs <npzacs@gmail.com> Date: Tue Nov 9 18:30:36 2010 +0200 Use sizeof() instead of constant value with memset() commit 56a452e85e2075b89dcfe98da503043a50184add Author: npzacs <npzacs@gmail.com> Date: Tue Nov 9 16:57:45 2010 +0200 mmc_open(): malloc --> calloc Make sure all fields are initialized even if some parameters are not given commit ff876a49858f0db7cc6d9649020efc30f43b04ab Author: npzacs <npzacs@gmail.com> Date: Tue Nov 9 14:34:31 2010 +0200 Cosmetics: removed tabs commit 16bc9fade39695b35595b8a90ecdc97ebf9f4e13 Author: npzacs <npzacs@gmail.com> Date: Tue Nov 9 14:30:40 2010 +0200 Added crypto_create_host_key_pair() Removed (unused) crypto_randomize() commit 94553b13aef1c29ad5679dbe69bbcbbabb18b07f Author: npzacs <npzacs@gmail.com> Date: Tue Nov 9 14:13:34 2010 +0200 Copied _gcry_mpi_ec_mul_point() from libgcrypt. This function is used when creating ECDSA key pairs. (gcrypt does not export any elliptic curve functions. Creating ECDSA key pair using AACS curve parameters is impossible with current libcrypt API.) create mode 100644 src/libaacs/ec.c commit 33cdec7e2f97a04c01c01301defecb25b3a73daa Author: npzacs <npzacs@gmail.com> Date: Tue Nov 9 14:09:59 2010 +0200 Allow using relative disc root path commit ffc10f40c80f6cd5be5db726301280c1a36dc432 Author: npzacs <npzacs@gmail.com> Date: Tue Nov 9 14:08:01 2010 +0200 MKB: added const (MKB data is read-only) commit 230665708e4d4bd884add05999e3a1188e626aa9 Author: npzacs <npzacs@gmail.com> Date: Tue Nov 9 14:06:42 2010 +0200 Cosmetics: fixed indent commit 2665c0e89989deeac67f5311f2d75d4f09c51fe6 Author: npzacs <npzacs@gmail.com> Date: Sat Nov 6 14:14:19 2010 +0200 Added XDG utils create mode 100644 src/file/xdg.c create mode 100644 src/file/xdg.h commit 7e6dc054b1f5100ec0fcd798d2630c1819a6d1f1 Author: npzacs <npzacs@gmail.com> Date: Fri Nov 5 20:00:30 2010 +0200 Added missing mkb_drive_revokation_entries() and mkb_host_revokation_entries() commit 339b6db5571e42d8e27459e6175e7aa0e603c8ea Author: npzacs <npzacs@gmail.com> Date: Wed Nov 3 14:11:37 2010 +0200 mmc_open(): generate random nonce when nonce not given commit 46dfe2d14fedaba29f52e21d0495d94c62ece501 Author: npzacs <npzacs@gmail.com> Date: Wed Nov 3 14:08:25 2010 +0200 mmc_open() logging updates commit 68a33c7866eb0caaa7ea63465121acdb1500c748 Author: npzacs <npzacs@gmail.com> Date: Wed Nov 3 13:55:55 2010 +0200 Moved AACS elliptic curve constants to separate defines commit 652f37c4d0620cf6473045fa24b5c49d6bcb6776 Author: npzacs <npzacs@gmail.com> Date: Wed Nov 3 13:49:39 2010 +0200 Fixed pointer access commit 05ee93d4c566cfd6b6c45028748a3ba9ac8d7319 Author: npzacs <npzacs@gmail.com> Date: Wed Nov 3 13:39:09 2010 +0200 Added loaders for simple key files commit ae43763e3168602a7becc7f537cc2beed23b3631 Author: npzacs <npzacs@gmail.com> Date: Wed Nov 3 13:33:45 2010 +0200 Moved _find_cfg_file() to keydbcfg.c create mode 100644 src/file/keydbcfg.c commit 5d739a45ab19edb6676fc521c4ffd5abeb3e6462 Author: npzacs <npzacs@gmail.com> Date: Wed Nov 3 13:24:54 2010 +0200 file_open_linux(): log file name when open fails commit 77b112c365b42cb7fbe16894409bb7d81b1ed196 Author: npzacs <npzacs@gmail.com> Date: Wed Oct 27 14:21:25 2010 +0300 Added str_next_line() and str_get_hex_string() commit 954e6870cbcc32eb3b51057b5cbba6b040a9c5c1 Author: npzacs <npzacs@gmail.com> Date: Wed Oct 27 14:17:25 2010 +0300 crypto_aacs_sign(): nonce is const Renamed parameters commit fb6c13582043f691e1d996ddf8eeeaaafbe25e9d Author: npzacs <npzacs@gmail.com> Date: Wed Oct 27 14:14:08 2010 +0300 Cosmetics commit 0c9a09d50f08a30efa313a0a03aff362c5ed9b9d Author: npzacs <npzacs@gmail.com> Date: Wed Oct 27 14:35:57 2010 +0300 return value of aacs_get_vid() is const commit ab62e100d7bae90e4c1d689fb6bee965924a54c2 Author: npzacs <npzacs@gmail.com> Date: Wed Oct 27 14:09:41 2010 +0300 Fixed buffer overflow commit 0ec210c11fc2e5850a929e61210fb07a804194dd Author: npzacs <npzacs@gmail.com> Date: Wed Oct 27 10:34:51 2010 +0300 examples: added libaacs_test create mode 100644 src/examples/libaacs_test.c commit cd493f9a163136a12e60b7d2dcb4954d910f67af Author: npzacs <npzacs@gmail.com> Date: Tue Oct 26 14:41:59 2010 +0300 Added .gitignore create mode 100644 .gitignore commit 6d5028f36f80bc1c11ef7a27a90578941b276ace Author: npzacs <npzacs@gmail.com> Date: Fri Oct 22 15:57:25 2010 +0300 Added crypto_create_nonce() and crypto_randomize() wrappers commit 00b2df2bb7598262da44683509b50a7a983026fd Author: npzacs <npzacs@gmail.com> Date: Sun Oct 10 15:36:17 2010 +0300 Added Win32 MMC. Note: completely untested! commit ac44f760155953e6aa9e96d602109bc79ae14330 Author: npzacs <npzacs@gmail.com> Date: Tue Sep 28 22:17:49 2010 +0300 gpg_strerror_r is available only when strerror_r is available. commit 8cd2536a90be2caa4d6329ffb0b64ea683cc8430 Author: npzacs <npzacs@gmail.com> Date: Tue Sep 28 22:16:25 2010 +0300 Check for strerror_r() commit 0d794eb4b4ea8ed6e4fd5c9b86bced74af9207f9 Author: npzacs <npzacs@gmail.com> Date: Tue Sep 28 22:14:31 2010 +0300 Removed incorrect line commit 8f7103a020c3ded85b4379517b57de44582e11ce Author: npzacs <npzacs@gmail.com> Date: Mon Sep 27 22:30:50 2010 +0300 Added check for mingw. No pthread check with mingw. commit 7d644a1e7f89f125c2f358b1fc37cfcad5eed6b4 Author: npzacs <npzacs@gmail.com> Date: Mon Sep 27 22:26:28 2010 +0300 Use libgcrypt-config Link against libgcrypt (Thanks to Brynet <brynet@gmail.com>) commit 8063bb52572a51418e1a630d8bad8487f8bdb8e5 Author: npzacs <npzacs@gmail.com> Date: Mon Sep 27 19:28:26 2010 +0300 mmc_open()/mmc_close() for Win32 commit 5705b3767834f9e91cfc150c8daff7ff34fc3446 Author: npzacs <npzacs@gmail.com> Date: Mon Sep 27 19:13:03 2010 +0300 mmc_close(): check for NULL pointer commit 078bd7fc7844dc80b133497b0dfb90c7cf338c59 Author: npzacs <npzacs@gmail.com> Date: Mon Sep 27 19:04:55 2010 +0300 Added dllexport commit 29cd842791f88e16cf217e20ff74f9cea21aa5f7 Author: npzacs <npzacs@gmail.com> Date: Mon Sep 27 18:49:05 2010 +0300 mmc_open(): moved generic code (copying keys) outside of #ifdef HAVE_MNTENT_H commit 3e85bf2f7ccdef9445882aca1bf979581c6ee71e Author: npzacs <npzacs@gmail.com> Date: Mon Sep 27 18:40:12 2010 +0300 Removed unused data commit 867c07aa491195f4fb53a07523fccf202088a5e5 Author: npzacs <npzacs@gmail.com> Date: Mon Sep 27 18:38:48 2010 +0300 mmc.c: sys/ioctl.h is used only with linux/cdrom.h commit 767c3fc7716c75c3a2381ad582c7bb5dac77dfee Author: npzacs <npzacs@gmail.com> Date: Mon Sep 27 18:33:42 2010 +0300 Eliminated local variable commit 1bf30022b008fac5d9f8b025557dd7151ce39ec1 Author: npzacs <npzacs@gmail.com> Date: Mon Sep 27 14:14:02 2010 +0300 Use pthread only when available commit 850d0d15b25f5ffb376cc6a39058937a5fb8c2a5 Author: npzacs <npzacs@gmail.com> Date: Wed Sep 22 14:32:42 2010 +0300 BSD: include sys/select.h (Thanks to Brynet) commit 5830453f701e09a29e1badef248ccd1980b08337 Author: npzacs <npzacs@gmail.com> Date: Wed Sep 22 14:23:11 2010 +0300 Ported mingw compability from libbluray commit 11542bc75ac203dc4e315cdf5cc8cbae6f22cc70 Author: gates <gates@anonymous.org> Date: Sat Aug 21 14:23:45 2010 -0400 Check for pthread.h and actually link with pthread lib. commit 29b3e517f943a85f7a4acd8a00c5307d7392b8a2 Author: gates <gates@anonymous.org> Date: Sat Aug 7 12:47:37 2010 -0400 Use check if HAVE_MNTENT_H is defined for mmc_open() instead of HAVE_LINUX_CDROM_H. commit 21587d80d83e468748b52abc4979e1b1bb8b56cb Author: gates <gates@anonymous.org> Date: Sat Aug 7 12:46:32 2010 -0400 Include mntent.h only if available. commit fef41f79a9ad7aa28d25acc55973ef538867bab4 Author: gates <gates@anonymous.org> Date: Sat Aug 7 12:45:15 2010 -0400 Check if HAVE_LINUX_CDROM_H is defined rather than > 0. commit a9fe0eb52bae0f22d440d782065ca429d716a6fb Author: gates <gates@anonymous.org> Date: Sat Aug 7 01:56:21 2010 -0400 Remove files generated from lex and yacc from source tree. delete mode 100644 src/keydbcfg-lexer.c delete mode 100644 src/keydbcfg-parser.c delete mode 100644 src/keydbcfg-parser.h commit bf6c0faa26fc453b9230eb395af88ba89878f9fe Author: gates <gates@anonymous.org> Date: Sun Aug 1 14:20:25 2010 -0400 Marked function pointer file_open with extern declaration. commit 0ca99f71e80f35a2e46c3b17a53abeac5e348a4b Author: npzacs <npzacs@gmail.com> Date: Wed Jul 14 15:36:35 2010 +0300 Assign titles to CPS units (using Unit_Key_RO.inf) commit ba64f291bc6e14f696f0a807eb4d375ddb09afb2 Author: gates <gates@anonymous.org> Date: Wed Jul 28 23:24:49 2010 -0400 Fix build failure. Supply correct path to filesystem.h. commit 7af75ecf5065c1eb9c0d9529f2c06de9633c5e1e Author: npzacs <npzacs@gmail.com> Date: Mon Jul 26 12:22:01 2010 +0300 Fixed return value of file read / write commit 280c64031b2dabc11d67111007e0be29796fabe8 Author: npzacs <npzacs@gmail.com> Date: Mon Jul 26 12:21:41 2010 +0300 Added missing filesystem.h create mode 100644 src/file/filesystem.h commit 12849f84ff30f827cd495fb6d31c6c353db2db2e Author: npzacs <npzacs@gmail.com> Date: Mon Jul 26 11:51:06 2010 +0300 Simplify: removed double string constants, use str_printf() commit 6fb514c53f862b7cef5e4f086bd4211672c6c315 Author: npzacs <npzacs@gmail.com> Date: Mon Jul 26 11:40:18 2010 +0300 use str_printf() commit 39bfbf8bac2452be1ffba7e0e76e4a51edab68de Author: npzacs <npzacs@gmail.com> Date: Thu Jul 22 16:40:34 2010 +0300 Factorized _find_cfg_file() commit e0a25e0f02a10240ecb75e42ddea571cb9f462cf Author: npzacs <npzacs@gmail.com> Date: Mon Jul 26 11:34:08 2010 +0300 Merged "Allow application to replace filesystem functions used to open/read directories" from libbluray commit 2bbc070ec260fdd722d38bbaa3e87044f6f70a90 Author: npzacs <npzacs@gmail.com> Date: Mon Jul 26 11:04:51 2010 +0300 Use str_printf() to join path and file name commit 76300b5bc0a790e643a697f0fb52ddc6668cfcda Author: npzacs <npzacs@gmail.com> Date: Mon Jul 26 10:51:27 2010 +0300 Splitted _calc_title_hash() from _find_config_entry() commit becc9159d78ac34772e92af0d61c5dbe9da5c86a Author: npzacs <npzacs@gmail.com> Date: Mon Jul 26 10:45:51 2010 +0300 Copied str_printf() from libbluray commit ffd18cf8037ce7d69a4e485a4fa3098875a07cdd Author: npzacs <npzacs@gmail.com> Date: Mon Jul 26 10:40:27 2010 +0300 Fixed macros copied from libbluray (renamed BD_ATTR_* -> AACS_ATTR_*) commit 00ba45c2c33c11c87278c854739976ae56abaaf9 Author: npzacs <npzacs@gmail.com> Date: Thu Jul 22 16:39:01 2010 +0300 Check Copy_permission_indicator: - do not try to decrypt plain blocks - reset flags from decrypted block commit 5ac577deb5ddcc4aeaf7200169dc07c12a820b51 Author: npzacs <npzacs@gmail.com> Date: Wed Jul 14 15:30:45 2010 +0300 Removed unneeded parameters from aacs_decrypt_unit() commit e5961091ca0173e716bbc0f4ae15f8f2f1c1a886 Author: npzacs <npzacs@gmail.com> Date: Thu Jul 22 16:36:37 2010 +0300 Fixed leak commit 366464c816f43581a73667fc01484abac56ebd62 Author: gates <gates@anonymous.org> Date: Wed Jul 7 14:33:11 2010 -0400 Add disclaimer. create mode 100644 README.txt commit 738349a2396a1c500446abe9c000df186c634be6 Author: gates <gates@anonymous.org> Date: Sun Jul 4 13:37:00 2010 -0400 Update keydb format to new suggestion made in the forums. commit 6fbc5365cb9ee1d592a19c4e1fade341b2ddef97 Author: npzacs <npzacs@gmail.com> Date: Thu Jul 1 17:02:17 2010 +0300 Log failures instead of success in decrypt_unit() commit 0d43f917a949d8397079911df7044f5bfac0fcd6 Author: npzacs <npzacs@gmail.com> Date: Thu Jul 1 16:59:06 2010 +0300 Eliminated malloc()+free() for every aligned unit Eliminated (1+num_uks) memcpy()'s for every unit commit 7db946358048cc5bec9e2f97b79d91a9b81ff274 Author: npzacs <npzacs@gmail.com> Date: Thu Jul 1 16:49:26 2010 +0300 Removed len and offset parameters from _decrypt_unit(): Aligned unit is always 6144 bytes, the code does not work with other sizes File offset was used only for debug message commit 6eaf3fde8fae610ea4164040e18a4f782447bac8 Author: npzacs <npzacs@gmail.com> Date: Thu Jul 1 16:30:24 2010 +0300 Cosmetics commit a1b4a8552f3918c598e1967914905f175d875266 Author: gates <gates@anonymous.org> Date: Thu Jul 1 00:38:34 2010 -0400 grammer check commit e39e73bec45953f0fb7d7906c892a4ce4213bd6b Author: gates <gates@anonymous.org> Date: Wed Jun 30 13:17:47 2010 -0400 Be able to recover from any malformed entry. commit bd1eaf96a97a741e6ce718155ffe84378d043b36 Author: gates <gates@anonymous.org> Date: Wed Jun 30 13:17:29 2010 -0400 Be able to parse an empty config file. commit ce744597e116b7fc817926d9d1a0d7dbe318d3d8 Author: gates <gates@anonymous.org> Date: Wed Jun 30 13:13:45 2010 -0400 Update documentation for new config file format. commit 07d8353784d1bffcd889ee0e4bdf8166579e0017 Author: gates <gates@anonymous.org> Date: Wed Jun 30 13:12:07 2010 -0400 Allow device key and host certificate entries to be placed anywhere in config file. commit 58a6f95e72d9feda56d3e053116fe4c7986510a3 Author: gates <gates@anonymous.org> Date: Wed Jun 30 13:10:21 2010 -0400 Allow placing processing key entries in any line within a config file. commit 065cc6780f2abab15f57cfb5ddec2b63aecfce6d Author: gates <gates@anonymous.org> Date: Wed Jun 30 13:08:53 2010 -0400 Remove restriction on ordering of config entries. commit 2c36d750c794e74f6ebc6900c9c339819f63ef52 Author: gates <gates@anonymous.org> Date: Wed Jun 30 13:08:25 2010 -0400 Rename struct for title entries to appropriate name. commit 15000a4121bb47089a83c21acedcda1b0c43c234 Author: gates <gates@anonymous.org> Date: Wed Jun 30 13:04:28 2010 -0400 Enable parsing of device keys. commit 1fc09a9ce1d4bb8098b2a6567b9704e0966bd99d Author: gates <gates@anonymous.org> Date: Wed Jun 30 12:48:31 2010 -0400 Remove unused implementation for old configfile format. delete mode 100644 src/file/configfile.c delete mode 100644 src/file/configfile.h delete mode 100644 tools/Makefile delete mode 100644 tools/genconfigfile.c commit 9a91ce424d483f918d42a76faee06f6ffab0876e Author: gates <gates@anonymous.org> Date: Wed Jun 30 11:48:31 2010 -0400 Fix build for parser_test program. commit 071f16fd1d6a8977f902dfb7118eee96b6bd0006 Author: gates <gates@anonymous.org> Date: Wed Jun 30 11:47:11 2010 -0400 Fix "visibility attribute ignored" warning. commit 1265f113d576b0b0b6fec6422ad69564bd179765 Author: Ano Nymous <Ano@Nymous> Date: Wed Jun 30 12:54:05 2010 +0200 Moving file around create mode 100644 KEYDB.cfg delete mode 100644 doc/HOWTO.KEYFILE delete mode 100644 doc/README delete mode 100644 libaacs/COPYING delete mode 100644 libaacs/KEYDB.cfg delete mode 100644 libaacs/Makefile.am delete mode 100755 libaacs/bootstrap delete mode 100644 libaacs/configure.ac delete mode 100644 libaacs/m4/.dummy delete mode 100644 libaacs/src/Makefile.am delete mode 100644 libaacs/src/examples/Makefile.am delete mode 100644 libaacs/src/examples/parser_test.c delete mode 100644 libaacs/src/file/configfile.c delete mode 100644 libaacs/src/file/configfile.h delete mode 100644 libaacs/src/file/file.h delete mode 100644 libaacs/src/file/file_posix.c delete mode 100644 libaacs/src/file/keydbcfg-lexer.l delete mode 100644 libaacs/src/file/keydbcfg-parser.y delete mode 100644 libaacs/src/file/keydbcfg.h delete mode 100644 libaacs/src/keydbcfg-lexer.c delete mode 100644 libaacs/src/keydbcfg-parser.c delete mode 100644 libaacs/src/keydbcfg-parser.h delete mode 100644 libaacs/src/libaacs.pc.in delete mode 100644 libaacs/src/libaacs/aacs.c delete mode 100644 libaacs/src/libaacs/aacs.h delete mode 100644 libaacs/src/libaacs/crypto.c delete mode 100644 libaacs/src/libaacs/crypto.h delete mode 100644 libaacs/src/libaacs/mkb.c delete mode 100644 libaacs/src/libaacs/mkb.h delete mode 100644 libaacs/src/libaacs/mmc.c delete mode 100644 libaacs/src/libaacs/mmc.h delete mode 100644 libaacs/src/util/attributes.h delete mode 100644 libaacs/src/util/logging.c delete mode 100644 libaacs/src/util/logging.h delete mode 100644 libaacs/src/util/macro.h delete mode 100644 libaacs/src/util/strutl.c delete mode 100644 libaacs/src/util/strutl.h delete mode 100644 libaacs/tools/Makefile delete mode 100644 libaacs/tools/genconfigfile.c create mode 100644 src/examples/Makefile.am create mode 100644 src/examples/parser_test.c create mode 100644 src/file/configfile.c create mode 100644 src/file/configfile.h delete mode 100644 src/file/dir.h delete mode 100644 src/file/dir_posix.c delete mode 100644 src/file/dl.h delete mode 100644 src/file/dl_posix.c create mode 100644 src/file/keydbcfg-lexer.l create mode 100644 src/file/keydbcfg-parser.y create mode 100644 src/file/keydbcfg.h create mode 100644 src/keydbcfg-lexer.c create mode 100644 src/keydbcfg-parser.c create mode 100644 src/keydbcfg-parser.h create mode 100644 src/libaacs.pc.in create mode 100644 src/libaacs/aacs.c create mode 100644 src/libaacs/aacs.h create mode 100644 src/libaacs/crypto.c create mode 100644 src/libaacs/crypto.h create mode 100644 src/libaacs/mkb.c create mode 100644 src/libaacs/mkb.h create mode 100644 src/libaacs/mmc.c create mode 100644 src/libaacs/mmc.h delete mode 100644 src/libbluray.pc.in delete mode 100644 src/util/bits.h create mode 100644 tools/Makefile create mode 100644 tools/genconfigfile.c commit 95726b0429b4825a3e0e4e1330dca8f16cb3e0f1 Author: npzacs <npzacs@gmail.com> Date: Sun Jun 27 11:56:42 2010 +0000 Marked data to be written const commit db3d1fbc34ca4a2c4bb60ba15f8096290559704b Author: npzacs <npzacs@gmail.com> Date: Sun Jun 27 11:53:33 2010 +0000 Check if __GNUC__ is defined before trying to use the value commit 51f19326b46ea9f2651fcc8d4ddffb3bd94771d7 Author: npzacs <npzacs@gmail.com> Date: Sun Jun 27 11:47:37 2010 +0000 Export public interface from dynamic library commit ce31d0bc7d1d68b3badf7206d893e83ab420c733 Author: npzacs <npzacs@gmail.com> Date: Sun Jun 27 11:44:40 2010 +0000 Hide implementation details commit 9067af42530a9f1a2f2705368c0ea02b22a2f3f6 Author: npzacs <npzacs@gmail.com> Date: Sat Jun 26 21:12:44 2010 +0000 Removed extra ) commit acc4f7d9205bb37f992d876da68f5eae0330c3d5 Author: npzacs <npzacs@gmail.com> Date: Sat Jun 26 21:10:47 2010 +0000 Do not export internal symbols from library commit d664eeb5bad4edfdfae8208f8067415ba38bfb2d Author: npzacs <npzacs@gmail.com> Date: Sat Jun 26 20:05:14 2010 +0000 Marked internal function static commit 15d693180fdf57fa2a0f9f54e8a3bab3fea37c5e Author: npzacs <npzacs@gmail.com> Date: Sat Jun 26 20:00:14 2010 +0000 Marked internal function static Moved init flag to the code block it is used in commit 98bd20aca548eeedc87743bb1bbd1af098b6c061 Author: npzacs <npzacs@gmail.com> Date: Sat Jun 26 19:57:53 2010 +0000 Marked internal function static commit 6688ee21bce8b1862eaf6d357af2e5a00e20068b Author: npzacs <npzacs@gmail.com> Date: Sat Jun 26 19:54:00 2010 +0000 Marked internal functions static commit f6e86e21deecfe0615b0037fc7966624031ceb62 Author: npzacs <npzacs@gmail.com> Date: Sat Jun 26 19:52:06 2010 +0000 Marked functions static commit 65148ea9293b624948ecb965da49ccba018c2897 Author: npzacs <npzacs@gmail.com> Date: Sat Jun 26 12:46:37 2010 +0000 Do not export internal symbols from library commit e4ff91a1f23bb1eed23cf16405b5ed0d2e4f15bd Author: npzacs <npzacs@gmail.com> Date: Sat Jun 26 12:45:08 2010 +0000 Do not export internal symbols from library commit 8f2cebfa15ce7b69441e8b5494a9d98dc5b4e507 Author: npzacs <npzacs@gmail.com> Date: Sat Jun 26 12:43:59 2010 +0000 Added symbol visibility attributes commit 696dcd4f26d266934205438f1c6e228ecee0e198 Author: npzacs <npzacs@gmail.com> Date: Sat Jun 26 12:28:37 2010 +0000 Hide implementation details commit add2ac384b0167f8cf788d5bf84c480cfea64e12 Author: npzacs <npzacs@gmail.com> Date: Sat Jun 26 12:25:59 2010 +0000 Hide implementation details commit 7480f16e54256b2df42593198445386eef872607 Author: gates <gates@anonymous.org> Date: Sat Jun 26 05:45:30 2010 +0000 Name parameters appropriately. commit ad58b1237abe64749e92b938732a6a561f7e8a1d Author: gates <gates@anonymous.org> Date: Sat Jun 26 05:39:20 2010 +0000 Be able to make use media key, volume id, and volume unique key entries from config file. commit b15a881ec8ac8647bfb228b8c777932a91507dee Author: npzacs <npzacs@gmail.com> Date: Fri Jun 25 13:29:06 2010 +0000 Added symbol visibility attributes commit 1af9833674da4ea02962824016428d3fbf63226b Author: gates <gates@anonymous.org> Date: Fri Jun 25 06:27:49 2010 +0000 Make it possible to use CPS unit keys from the keydb config file. commit 53d489bacec67fa1b72617d93b6df8c1b3fee078 Author: gates <gates@anonymous.org> Date: Thu Jun 24 07:47:20 2010 +0000 Use a macro to skip certificate checks. commit a04ba9a5a48d08cffec56990a779eea1cadbb9c9 Author: gates <gates@anonymous.org> Date: Thu Jun 24 06:05:05 2010 +0000 Fix name conflicts with logging functions among the different libraries. commit 387f3c8b03fda9af7ebe7962642f6b14eddb7312 Author: gates <gates@anonymous.org> Date: Thu Jun 24 06:04:58 2010 +0000 Make note on how to convert existing hexstrings from old format to new format. commit 99a6d86215f0eedea134307cefdd8f5f3494394c Author: gates <gates@anonymous.org> Date: Thu Jun 24 06:04:52 2010 +0000 Require hexstrings to be preceded with '0x'. This allows hexstrings to be broken up by variable length. commit dad9c34ef0ee50c3b2c227ffd5e6cf0b2cce99ed Author: gates <gates@anonymous.org> Date: Thu Jun 24 06:04:45 2010 +0000 Precede the hexstrings in the certificate entry blocks with keywords to identify them. Also allow hexstring to be broken up among multiple lines for better readability. commit 598edc365a9a2510e8c305e088e794749c873ffc Author: gates <gates@anonymous.org> Date: Wed Jun 23 03:21:09 2010 +0000 Fix potential buffer overflow. commit a2e6eec335819a81560a628285076dc8ef1ff989 Author: gates <gates@anonymous.org> Date: Wed Jun 23 03:17:23 2010 +0000 Use gcry_error_t instead of gpg_error_t. commit e03d197365c0c1cbc9f679d748bac0852988b7ba Author: gates <gates@anonymous.org> Date: Wed Jun 23 03:10:15 2010 +0000 Remove OpenSSL exception now that libgcrypt is being used for crypto. commit b83e8c16a36abc6f338dde2cc988d9a6a0364694 Author: gates <gates@anonymous.org> Date: Tue Jun 22 17:02:53 2010 +0000 Only expose API from bluray.h to the public. The rest will be private. commit 3ab3c43fe8e5dfdaa54a1d80b4d24fd83f63d20d Author: gates <gates@anonymous.org> Date: Tue Jun 22 17:02:40 2010 +0000 Make keydbcfg.h private. commit 1b784cfed8c69c993a7df158fe97516080a2d40f Author: gates <gates@anonymous.org> Date: Tue Jun 22 17:02:33 2010 +0000 Ensure all structs have a tag in keydbcfg.h. commit a0265d421d8d719c6a7bd8a9b8e1eb10b585d5ec Author: gates <gates@anonymous.org> Date: Tue Jun 22 17:02:26 2010 +0000 Fix build of libbluray when not using dlopen. commit 6c6612b549953739a774fb5cbe69ef2d9e58fc2b Author: gates <gates@anonymous.org> Date: Tue Jun 22 17:02:19 2010 +0000 Fix unused parameter warning commit 925ee22316559b7b0f3323cd6cb51db864a6244b Author: gates <gates@anonymous.org> Date: Tue Jun 22 17:02:13 2010 +0000 Fix -Wundef warnings. commit 8027a2f24fe2dda8db201d1167540fd96bd0d043 Author: gates <gates@anonymous.org> Date: Tue Jun 22 16:59:03 2010 +0000 Free MPI and S-expression objects in libaacs. commit 96cc85a2146b96697ffd8092a869fb236f1928b2 Author: gates <gates@anonymous.org> Date: Tue Jun 22 16:58:44 2010 +0000 Convert libaacs completely over to libgcrypt. commit 9f2e08c9afef7c1fdf1d00aae1e1fec0a6c28342 Author: gates <gates@anonymous.org> Date: Tue Jun 22 16:58:36 2010 +0000 Use a block with 'n' and 'dhp' blocks concatenated as block to calculate SHA1 hash. commit 41a88440a1dd63e6c5d16559d3331de2bad3d267 Author: gates <gates@anonymous.org> Date: Tue Jun 22 16:58:28 2010 +0000 EVP_ecdsa() results in a SHA1 hash anyway, so just use EVP_sha1(). commit 29d630248f5893659de3f72224eff60909fe59a3 Author: gates <gates@anonymous.org> Date: Thu Jun 17 17:45:16 2010 +0000 fixup multi line entries example commit 3bd69a30c812273aa436ca71001bc37c21f2f8c0 Author: gates <gates@anonymous.org> Date: Thu Jun 17 17:38:44 2010 +0000 Close and free the config file object when done using it. commit 059a4db41d74f9018aa812f72ad10f11f9b099cc Author: gates <gates@anonymous.org> Date: Thu Jun 17 17:38:37 2010 +0000 close the config file in the parser test program. commit be60278e9e781b93674f1240722ce7fd4002fdfd Author: gates <gates@anonymous.org> Date: Thu Jun 17 17:38:30 2010 +0000 Implement function to close and free a config file object. commit 315f9078089c72262f5d55746e9781dd52b1f9b2 Author: gates <gates@anonymous.org> Date: Thu Jun 17 17:38:16 2010 +0000 Switch from binary config file to plaintext config file. commit 295428d98139af5fae58e45e16238912427a1660 Author: gates <gates@anonymous.org> Date: Thu Jun 17 07:21:30 2010 +0000 Clarify how comments are supported. commit 139bf056c2fee963510aad6a264fdcf1087714ec Author: gates <gates@anonymous.org> Date: Thu Jun 17 07:09:38 2010 +0000 Allow for newline escapes in the keydb config file. commit 31c8a12d88a1b78f2a510e8298adca0c1ed1852a Author: gates <gates@anonymous.org> Date: Thu Jun 17 05:48:27 2010 +0000 Transfer over rights for cRTrn13's contributions over to Obliter0n, as requested by cRTrn13. commit 403e32db1d9127a2368e42ac00eef74cab61708b Author: gates <gates@anonymous.org> Date: Thu Jun 17 04:00:15 2010 +0000 Terminate strings with null string in trim_string function commit 0dd9664e15f8236da9637f0eeb74365314998a56 Author: gates <gates@anonymous.org> Date: Wed Jun 16 17:49:06 2010 +0000 Add utility functions for transforming hexstring to a hex array create mode 100644 libaacs/src/util/strutl.c create mode 100644 libaacs/src/util/strutl.h commit 59cf726552b7dae0b2c5f14fd80674185b48d71d Author: gates <gates@anonymous.org> Date: Wed Jun 16 03:31:22 2010 +0000 Update OpenSSL exception for LGPL conversion. commit 361228d04aaaba87057e0997cebbe4866ae3a90f Author: gates <gates@anonymous.org> Date: Wed Jun 16 03:02:21 2010 +0000 Convert to LGPL-2.1. License change for src/util/bits.h will require permission from someone in VideoLAN team. commit a13586da4dfac14db5e9e40bcbea5889216ed7a6 Author: npzacs <npzacs@gmail.com> Date: Tue Jun 15 21:52:30 2010 +0000 Added loader for sound.bdmv (sounds for HDMV interactive graphics applications) commit 0a4c00d032716645197c851307dbfe7781672ee3 Author: gates <gates@anonymous.org> Date: Mon Jun 14 17:31:02 2010 +0000 Optimize the parser. Get rid of need to traverse lists for every entry addition. commit e1cca814a9b0100a86ed71dafbbecc9d665e40d6 Author: gates <gates@anonymous.org> Date: Mon Jun 14 16:16:14 2010 +0000 spell check commit 6ec7da9121204bca4f67dc252dd9b6f9789cc008 Author: gates <gates@anonymous.org> Date: Mon Jun 14 16:16:08 2010 +0000 Revert "Slight update to keydb documentation." Host nonce and key point are now needed. This reverts commit acef7c5be578eaa81792391ff687a31ad5b4ac48. commit 2cbc462f0403287335245327494f96db9f76a1d4 Author: gates <gates@anonymous.org> Date: Mon Jun 14 16:16:01 2010 +0000 Revert "Allow the ommission of host noonce and host key point entries." The nonce and key point are needed AFAIK. This reverts commit 33aac737fa0a8038f02d4318c9d31f93e4d2330e. commit 4c1c72b566902a802c2cb4f3fed53263f0f20076 Author: npzacs <npzacs@gmail.com> Date: Sun Jun 13 12:03:20 2010 +0000 Optimized out unnecessarily memcpy() commit 8e5ec00cbb051616b4ac84f9bb4209309184effa Author: npzacs <npzacs@gmail.com> Date: Sun Jun 13 11:51:53 2010 +0000 Fixed incorrect modes (r296) commit ba913fde86a2b0c7b1d4f7e9b1196d411e0a918a Author: npzacs <npzacs@gmail.com> Date: Sun Jun 13 09:20:55 2010 +0000 Fixed mem leaks and removed unneeded dynamic memory allocations commit 262af05b1ab211aecd3b5ba286f84887fbce96d6 Author: npzacs <npzacs@gmail.com> Date: Sun Jun 13 09:07:59 2010 +0000 Fixed segfaults (r296: writing to *(int*)16) commit eb49b94f981b40d8554b09bb11e10cfb499037c3 Author: gates <gates@anonymous.org> Date: Sun Jun 13 06:22:53 2010 +0000 Slight update to keydb documentation. commit 1cf859bd415d4167cc6cd6dce5128f78033c11d4 Author: gates <gates@anonymous.org> Date: Sun Jun 13 06:21:55 2010 +0000 Allow the ommission of host noonce and host key point entries. commit 1806adcf2d25f0c6ae5afe31fb820aabf2771e62 Author: gates <gates@anonymous.org> Date: Sun Jun 13 05:28:48 2010 +0000 Add some general clarifications to the keydb documentation. commit d7e3b7cdef73daa8a3183b8772704bc13f9ca2cb Author: gates <gates@anonymous.org> Date: Sun Jun 13 05:28:41 2010 +0000 Fix issue where space between keywords "BEGIN" and "END" could be ommitted. commit a1706f6c717c4f966c7706b836e535c877ea2395 Author: gates <gates@anonymous.org> Date: Sun Jun 13 05:28:35 2010 +0000 Clarify what is considered to be a line delimiter. commit 421d677ef4d8f55f2cae91aec3c68c75ad7ee05d Author: gates <gates@anonymous.org> Date: Sun Jun 13 04:59:52 2010 +0000 Remove unnecessary check to see whether "\n\r" or "\r\n" is used as a new line. commit 20c5181a5f7ce7fc80be99bb9f2feaaaa72dbddc Author: gates <gates@anonymous.org> Date: Sun Jun 13 04:59:46 2010 +0000 General proofreading of documentation for keydb file. commit 651ceb2955022782a1f558a4cf00c1bb3d313831 Author: gates <gates@anonymous.org> Date: Sun Jun 13 04:46:46 2010 +0000 Make using the keywords case-insensitive. commit 528b30fce0ce81349b9507dd06731e1a478333c7 Author: gates <gates@anonymous.org> Date: Sun Jun 13 04:40:14 2010 +0000 Augment the config file again, add ability to insert host certificates inside keydb config files. commit 40de3398783418333b197383a900a42d34c372ab Author: npzacs <npzacs@gmail.com> Date: Sat Jun 12 21:02:06 2010 +0000 Fixed debug format strings commit ff257c1c48bb2de47230dc50a9710c454dfe180b Author: gates <gates@anonymous.org> Date: Sat Jun 12 18:50:13 2010 +0000 Augment the keydb config file format to allow processing keys to be placed in config file. Update KEYDB.cfg example file accordingly. commit 3c11317c4c135d2f19f76c3b6c08f8d7793479f0 Author: gates <gates@anonymous.org> Date: Sat Jun 12 05:32:14 2010 +0000 Changed digit to an unsigned int for data key pair entries. commit cd191737dc10d1af883548df12655a8cbe3394ff Author: gates <gates@anonymous.org> Date: Fri Jun 11 05:59:32 2010 +0000 Cope with config files that may have not ended with newlines anyway. commit 4c864f6408d5bd109ee8825a41b42ebdaa59cb52 Author: gates <gates@anonymous.org> Date: Fri Jun 11 04:55:47 2010 +0000 Fixup grammer to be able to cope with bad entries in config file. commit c7a0403219a2fe837bc02c016484001def285235 Author: gates <gates@anonymous.org> Date: Fri Jun 11 04:10:47 2010 +0000 Have parser report what line numbers have errors. commit acf5949219cfa806171fa9fb6f9068412ba12542 Author: gates <gates@anonymous.org> Date: Fri Jun 11 03:55:30 2010 +0000 Use CC and CFLAGS for tools directory Makefile commit 5aa89756e4150fa55f2431008fc5f895d5417862 Author: gates <gates@anonymous.org> Date: Fri Jun 11 03:55:24 2010 +0000 Remove parser and lexer from tools directory. delete mode 100644 libaacs/tools/keydbcfg-lexer.l delete mode 100644 libaacs/tools/keydbcfg-parser.y commit 6b4b919f4ef0f1e72fc109a7540a0c06b6821321 Author: gates <gates@anonymous.org> Date: Fri Jun 11 03:50:48 2010 +0000 define yyerror so dependency on -ly can be dropped. commit 98f9ffab4e427164159333d7fcd894ad030a3020 Author: gates <gates@anonymous.org> Date: Fri Jun 11 03:40:11 2010 +0000 Add test program for keydb parser. create mode 100644 libaacs/src/examples/Makefile.am create mode 100644 libaacs/src/examples/parser_test.c commit d6b32834d940649a3107b6e853b130023cec64eb Author: gates <gates@anonymous.org> Date: Fri Jun 11 03:12:09 2010 +0000 Make 'digit' an unsigned int everywhere, since it will be returned as unsigned int from the lexer. commit 0c2ca70be6f677088c72fb07608cf52cdb154efd Author: gates <gates@anonymous.org> Date: Fri Jun 11 03:01:59 2010 +0000 Track the generated lexer and parser files for platforms that don't have the proper tools to generate them. create mode 100644 libaacs/src/keydbcfg-lexer.c create mode 100644 libaacs/src/keydbcfg-parser.c create mode 100644 libaacs/src/keydbcfg-parser.h commit 6efd651a0e8c4bd2e7a670d5bbdd983736be53fa Author: gates <gates@anonymous.org> Date: Fri Jun 11 03:01:52 2010 +0000 Add KEYDB.cfg parser to library. create mode 100644 libaacs/src/file/keydbcfg-lexer.l create mode 100644 libaacs/src/file/keydbcfg-parser.y create mode 100644 libaacs/src/file/keydbcfg.h commit 895ecfed3304769cde6776daa3ef14677e1cf34c Author: npzacs <npzacs@gmail.com> Date: Thu Jun 10 10:41:24 2010 +0000 Added bd_set_debug_mask() and bd_get_debug_mask() commit c172a6cc011f13a79c9e5a0d37c69f88e6fe35e6 Author: gates <gates@anonymous.org> Date: Wed Jun 9 06:30:48 2010 +0000 Remove unneeded check for lone semicolon commit 92b215b1676c60c9c306d0fa456ca65742825c7f Author: gates <gates@anonymous.org> Date: Wed Jun 9 00:03:01 2010 +0000 Using only one string variable. It's not necessary to use two to guard against a race condition here. commit c32f4ce9910420af5364345f69b98012c15b4c7e Author: gates <gates@anonymous.org> Date: Tue Jun 8 22:20:12 2010 +0000 Fix logging functions for use of logfile variable and minimize race conditions as much as possible. commit 2869ced2e9db0d73602a9f38de2c65eaaf068500 Author: gates <gates@anonymous.org> Date: Tue Jun 8 18:05:37 2010 +0000 Make a clarification about entry delimiters in the spec. commit c36e67c3c721a9f8e1534b2c15f52e89e52dd7d3 Author: gates <gates@anonymous.org> Date: Tue Jun 8 18:05:31 2010 +0000 Resolve grammer to allow key database files to end with multiple new lines. commit b70ce823953b91c9341e741d8914cc072b74eefc Author: gates <gates@anonymous.org> Date: Tue Jun 8 18:05:24 2010 +0000 Resolve shift/reduce conflicts. The spec calls for a line delimiter to be used after every entry anyway, including the last entry. commit 9d1d707ec070496164ed5983d761f1d13a7d86b7 Author: gates <gates@anonymous.org> Date: Tue Jun 8 16:37:11 2010 +0000 Make debug_init and debug_mask static globals. This should be safe to call in threads, since their values change only once during the life of a program using these functions. commit 7471b6bc38e0b21eb0c6c51da6125fa97ca05220 Author: npzacs <npzacs@gmail.com> Date: Tue Jun 8 12:27:41 2010 +0000 Added mobj_sprint_cmd() [moved code from examples/mobj_dump.c to bdnav/mobj_print.c] commit 0c302613897a9eea35409eb16982c98d49c771f6 Author: npzacs <npzacs@gmail.com> Date: Tue Jun 8 12:00:45 2010 +0000 Fixed memleaks introduced in r452: make print_hex() use caller-supplied buffer commit 6cc76c41cdabe29ea51dbd34f8f4f9d0fb10024d Author: npzacs <npzacs@gmail.com> Date: Tue Jun 8 11:48:27 2010 +0000 print_hex(): Use caller-supplied buffer commit f5a488068512b85365167a6456792b0c445b4b43 Author: npzacs <npzacs@gmail.com> Date: Tue Jun 8 11:38:48 2010 +0000 Added DBG_HDMV for movie object interpreter logging commit 67c988a1f33778771fb5fae120214d4570774ad1 Author: gates <gates@anonymous.org> Date: Tue Jun 8 07:10:21 2010 +0000 Make the logging functions for libbluray reentrant as well. commit f20c606b4f7c7b4ab6c71fbc478caa62d4430b64 Author: gates <gates@anonymous.org> Date: Tue Jun 8 06:30:52 2010 +0000 Move unnecessary global variables into functions, making it possible to make corresponding functions reentrant. commit dad05026ecabf28131c5b00fc63a1bea2c25ce61 Author: gates <gates@anonymous.org> Date: Tue Jun 8 05:34:09 2010 +0000 Begin support of a tool that can read the standard key database files used in the forums. The parser and lexer generated is reentrant, for future support within libaacs. create mode 100644 libaacs/KEYDB.cfg create mode 100644 libaacs/tools/keydbcfg-lexer.l create mode 100644 libaacs/tools/keydbcfg-parser.y commit 18abcfa96b52a66d54a80234d0b5dd6cd9f74c71 Author: gates <gates@anonymous.org> Date: Fri Jun 4 03:27:59 2010 +0000 Don't require key path to be set anymore. Instead, check some common places when NULL is passed as key path. commit 976844cad9d99ca11ac2fa31e2f267ddbf63c026 Author: npzacs <npzacs@gmail.com> Date: Thu Jun 3 12:04:25 2010 +0000 Added player registers commit 411c7737b72d3ae4748153e3f6e4f7708265954a Author: npzacs <npzacs@gmail.com> Date: Wed Jun 2 12:13:26 2010 +0000 Eliminated malloc() + free() for every block (now len <= 6144) commit 7c1124de813f358fc2a0cb0ce209343855f47091 Author: npzacs <npzacs@gmail.com> Date: Wed Jun 2 12:06:49 2010 +0000 Fail if len or offset is invalid commit 6aec936710c1429cc3f301fe1fd3e8cb6eb2d1e7 Author: npzacs <npzacs@gmail.com> Date: Wed Jun 2 11:54:26 2010 +0000 Fixed memory leak commit 69c1e0e132e46ba600d73e3773caa8e3251f869d Author: gates <gates@anonymous.org> Date: Wed Jun 2 06:06:14 2010 +0000 Enable debug opts via configure switch for all libs commit 5fa29f9cda68bcc3c527c6751f26906b28217cec Author: gates <gates@anonymous.org> Date: Wed Jun 2 05:57:37 2010 +0000 Set debug option via configure switch and enable it by default commit 12fe6ee60e47d0a2f72e7115f795a7e1e912aae1 Author: gates <gates@anonymous.org> Date: Tue Jun 1 17:18:08 2010 +0000 Make headers needed by bluray.h public and fix build accordingly commit 64e111037c1f5c2edb8aaafe24908fa01177ca33 Author: gates <gates@anonymous.org> Date: Tue Jun 1 16:59:23 2010 +0000 Fix includes path for top_srcdir commit b797110b0f3c6ed698e8ad80bf9a12c15a2b1a5c Author: gates <gates@anonymous.org> Date: Tue Jun 1 16:53:29 2010 +0000 Add configfile.h as public header and fixup aacs.h to use it. commit 2a5a3ff477f8cf533cba642309071f2fd4efab1e Author: gates <gates@anonymous.org> Date: Tue Jun 1 04:44:54 2010 +0000 Remove empty directory commit 7e3a29dab2f5df440da28d619b21a3488f02d1f4 Author: gates <gates@anonymous.org> Date: Tue Jun 1 04:43:29 2010 +0000 Clarify what part is the GPL and what part is the OpenSSL exception in the COPYING files commit 6ceeb9bfc8bb695747e354938570c86d5a76d494 Author: gates <gates@anonymous.org> Date: Tue Jun 1 04:43:13 2010 +0000 Fix copyright header for libaacs source file. commit 828e8ef1d51ce348f531fdd9beec5b0d1aa1c65e Author: gates <gates@anonymous.org> Date: Tue Jun 1 04:42:57 2010 +0000 Move aacs tools into libaacs create mode 100644 libaacs/tools/Makefile create mode 100644 libaacs/tools/genconfigfile.c delete mode 100644 tools/Makefile delete mode 100644 tools/genconfigfile.c commit 1601d80be89f0b98ed6be24ed0ae857a67dca717 Author: gates <gates@anonymous.org> Date: Tue Jun 1 04:42:20 2010 +0000 Add copyright headers and license terms for libaacs. create mode 100644 libaacs/COPYING commit 6ebed7858529d18fbf3b4da82336d5c15fc44958 Author: gates <gates@anonymous.org> Date: Tue Jun 1 04:42:12 2010 +0000 Add copyright headers to all remaining files. commit ead0c0c9e926a0fc56b94287d82e81e7f11b6031 Author: gates <gates@anonymous.org> Date: Tue Jun 1 04:41:55 2010 +0000 Remove genkeyfile.c. Effort is being made to distribute all libs under GPLv2 with OpenSSL exception. Nobody seems to have heard from the author of genkeyfile.c, NXZeche, for some time, to be able to get some agreement as to what licensing terms to distribute genkeyfile.c under. Because of this, genkeyfile.c is being removed. delete mode 100644 tools/genkeyfile.c commit 3354cad1c966111663d01b3abe1687cf260ff1c0 Author: gates <gates@anonymous.org> Date: Tue Jun 1 04:41:42 2010 +0000 Fix use of mktemp for platforms that need to supply a template commit dd5de612fb35157c4b2b482494e4414e06d4ae05 Author: j45 <j45@anonymous.org> Date: Mon May 31 17:43:27 2010 +0000 Prevent "large-function-growth" warning due to inlining with gcc 4.4.3 bs_read is used a lot and inflates function size when inlined. So don't inline it. commit 36d14fec7fa07acebce537dddfbd54066f60d865 Author: gates <gates@anonymous.org> Date: Mon May 31 16:59:22 2010 +0000 Fix use of mktemp for all libraries. commit 923bbf74bc17e05ae4e12865244b74331380868c Author: gates <gates@anonymous.org> Date: Mon May 31 16:55:12 2010 +0000 Fix use of mktemp on platforms that don't support suffixes commit 15b5dd569501f0e4a66d7970238a1a87b0d9c4a7 Author: gates <gates@anonymous.org> Date: Mon May 31 08:25:51 2010 +0000 Change dlopening of libs to call libraries with their major version on linux systems commit be1fbf4068f8d35d02477ab855c483d4c208659e Author: gates <gates@anonymous.org> Date: Mon May 31 08:11:59 2010 +0000 Set version info for all libraries commit cbf468ad891aa54cc98d342882e2c473c6f15970 Author: gates <gates@anonymous.org> Date: Mon May 31 08:01:24 2010 +0000 Add some modifications to make it easier to set library's version info commit 107b5879d179251161be0e1ec028bd7fb8fa685c Author: gates <gates@anonymous.org> Date: Mon May 31 07:52:42 2010 +0000 Use "n.n" for package version This is to avoid confusion with soname version ... |