Mercurial > mplayer.hg
annotate libdvdcss/css.h @ 36195:d2c43a00a9c9
Make comment clearer.
| author | reimar |
|---|---|
| date | Mon, 27 May 2013 20:36:58 +0000 |
| parents | 691431d2289e |
| children |
| rev | line source |
|---|---|
| 20613 | 1 /***************************************************************************** |
| 2 * css.h: Structures for DVD authentication and unscrambling | |
| 3 ***************************************************************************** | |
| 4 * Copyright (C) 1999-2001 VideoLAN | |
| 5 * | |
| 27442 | 6 * Author: Stéphane Borel <stef@via.ecp.fr> |
| 20613 | 7 * |
| 8 * based on: | |
| 9 * - css-auth by Derek Fawcus <derek@spider.com> | |
| 10 * - DVD CSS ioctls example program by Andrew T. Veliath <andrewtv@usa.net> | |
| 11 * - DeCSSPlus by Ethan Hawke | |
| 12 * - The Divide and conquer attack by Frank A. Stevenson <frank@funcom.com> | |
| 13 * | |
| 14 * This program is free software; you can redistribute it and/or modify | |
| 15 * it under the terms of the GNU General Public License as published by | |
| 16 * the Free Software Foundation; either version 2 of the License, or | |
| 17 * (at your option) any later version. | |
| 18 * | |
| 19 * This program is distributed in the hope that it will be useful, | |
| 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 22 * GNU General Public License for more details. | |
| 23 * | |
|
31098
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27442
diff
changeset
|
24 * You should have received a copy of the GNU General Public License along |
|
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27442
diff
changeset
|
25 * with libdvdcss; if not, write to the Free Software Foundation, Inc., |
|
9e9595c779cf
libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents:
27442
diff
changeset
|
26 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20613 | 27 *****************************************************************************/ |
|
32265
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31806
diff
changeset
|
28 |
|
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31806
diff
changeset
|
29 #ifndef DVDCSS_CSS_H |
|
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31806
diff
changeset
|
30 #define DVDCSS_CSS_H |
|
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31806
diff
changeset
|
31 |
|
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31806
diff
changeset
|
32 #include "dvdcss/dvdcss.h" |
|
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31806
diff
changeset
|
33 |
| 20613 | 34 #define KEY_SIZE 5 |
| 35 | |
| 36 typedef uint8_t dvd_key_t[KEY_SIZE]; | |
| 37 | |
| 38 typedef struct dvd_title_s | |
| 39 { | |
| 40 int i_startlb; | |
| 41 dvd_key_t p_key; | |
| 42 struct dvd_title_s *p_next; | |
| 43 } dvd_title_t; | |
| 44 | |
| 45 typedef struct css_s | |
| 46 { | |
| 35952 | 47 int i_agid; /* Current Authentication Grant ID. */ |
| 20613 | 48 dvd_key_t p_bus_key; /* Current session key. */ |
| 49 dvd_key_t p_disc_key; /* This DVD disc's key. */ | |
| 50 dvd_key_t p_title_key; /* Current title key. */ | |
| 51 } css_t; | |
| 52 | |
| 53 /***************************************************************************** | |
| 54 * Prototypes in css.c | |
| 55 *****************************************************************************/ | |
| 35952 | 56 int _dvdcss_test ( dvdcss_t ); |
| 20613 | 57 int _dvdcss_title ( dvdcss_t, int ); |
| 58 int _dvdcss_disckey ( dvdcss_t ); | |
| 59 int _dvdcss_unscramble ( uint8_t *, uint8_t * ); | |
| 60 | |
|
32265
cda66f57f7a5
Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents:
31806
diff
changeset
|
61 #endif /* DVDCSS_CSS_H */ |
