1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
$NetBSD: patch-ac,v 1.2 2001/12/25 18:02:08 wiz Exp $
--- dvdauth.c.orig Thu Jun 21 04:06:40 2001
+++ dvdauth.c Mon Jul 30 22:10:09 2001
@@ -74,6 +74,14 @@
* With the old libcss-0.1 api, we have to find out the LBA for
* a title for title authentication.
*/
+
+int CSSDVDAuthTitlePath(DVDHandle hdl,unsigned char *key_title,char *path)
+{
+ int lba=path_to_lba(path);
+ if (lba==-1) return -1;
+ return CSSAuthTitle(hdl,key_title,lba);
+}
+
#ifdef __linux__
#include <linux/fs.h>
#include <errno.h>
@@ -121,13 +129,6 @@
return lba;
}
-
-int CSSDVDAuthTitlePath(DVDHandle hdl,unsigned char *key_title,char *path)
-{
- int lba=path_to_lba(path);
- if (lba==-1) return -1;
- return CSSAuthTitle(hdl,key_title,lba);
-}
#else /*linux*/
|