Progetti Linux

git-svn-id: svn://10.65.10.50/trunk@11940 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2004-04-06 21:28:46 +00:00
parent 47c3c3483b
commit 0bee10929f
26 changed files with 119 additions and 99 deletions

View File

@ -1,53 +1,62 @@
EUTRON SPA
INFORMATION SECURITY SOLUTION
Phone +39-(0)35-697011
Fax +39-(0)35-697092
EUTRON
Internet : http://www.smartkey.eutron.it
Technical support : helpdesk@eutron.it
Commercial info : info@eutron.it
Helpdesk email : helpdesk@eutron.it
Commercial email : info@eutron.it
Commercial phone : 035697080
Fax : 035697092
SmartKey Parallel and USB driver for Linux
------------------------------------------
Questo driver funziona per kernel dal 2.4.20 al 2.4.21 compilato con gcc-3.2.3
Questo driver funziona per kernel dal 2.4.21-144 (Suse 9) compilato con gcc-3.2.3
Il pacchetto fornisce un'interfaccia tra i programmi scritti in
linguaggio C e il driver della chiave SMARTKEY. L'interfaccia e`
completamete compatibile con quella disponibile in ambiente MS-DOS.
Questo permette un facile trasporto in ambiente Unix dei programmi
sviluppati per il sistema operativo MS-DOS.
Il pacchetto fornisce un'interfaccia tra i programmi scritti in
linguaggio C e il driver della chiave SMARTKEY. L'interfaccia e`
completamete compatibile con quella disponibile in ambiente MS-DOS.
Questo permette un facile trasporto in ambiente Unix dei programmi
sviluppati per il sistema operativo MS-DOS.
CONTENUTO DEL PACCHETTO
-----------------------
CONTENUTO
---------
Il pacchetto e` costituito dai seguenti file:
LEGGIMI Contiene delle informazioni relative al pacchetto.
E' il file che state leggendo.
clink.o Costituisce l'interfaccia tra le applicazioni in
linguaggio C e il driver della chiave SMARTKEY.
clink.h Definisce la struttura dell'interfaccia di clink.o.
Deve essere incluso nei file C che utilizzano la
chiave SMARTKEY.
smartdem.c Esempio di utilizzo della chiave SMARTKEY scritto in
linguaggio C.
smartdem Forma eseguibile del programma esempio.
skey*.o Driver della chiave
skinstall Script per l'installazione automatica
skuninstall Script per la disinstallazione automatica
skeyver Utility per impostare la versione del kernel nel modulo skey.o
clink.o
Costituisce l'interfaccia tra le applicazioni in linguaggio C e
il driver della chiave SMARTKEY.
clink.h
Definisce la struttura dell'interfaccia di clink.o. Deve essere
incluso nei file C che utilizzano la chiave SMARTKEY.
smartdem.c
Esempio di utilizzo della chiave SMARTKEY scritto in linguaggio C.
smartdem
Forma eseguibile del programma esempio.
skey*.o
Driver della chiave
skinstall
Script per l'installazione automatica
skuninstall
Script per la disinstallazione automatica
skeyver
Utility per impostare la versione del kernel nel modulo skey.o
SUPPORTO USB
------------
Il driver SmartKey, come ogni altro driver USB, richiede che i moduli USB
del kernel siano caricati ed attivi.
Generalmente questo si puo' ottenere con i comandi :
Il driver SmartKey, come ogni altro driver USB, richiede che i moduli
USB del kernel siano caricati ed attivi. Generalmente questo si puo'
ottenere con i comandi :
insmod usbcore
insmod usb-uhci
@ -99,7 +108,7 @@ Per avviare il l'applicazione di demo utilizzare i comandi :
INSTALLAZIONE MANUALE
---------------------
Per installare il driver si segua la procedura seguente:
1) Entrare nel sistema come super-user.
@ -188,26 +197,23 @@ Per installare il driver si segua la procedura seguente:
e' avvenuto.
UTILIZZO
--------
Per utilizzare l'interfaccia clink.o e` necessario copiare il file nel
direttorio di lavoro e collegarlo agli altri file oggetto costituenti
il programma da proteggere. Nei file del programma applicativo che
utilizzano il modulo clink.o e` necessario includere il file clink.h.
Nel caso in cui il compilatore C utilizzato non sia ANSI-C e`
necessario usare l'opzione di compilazione -DNO_ANSI_C.
Per utilizzare l'interfaccia clink.o e` necessario copiare il file nel
direttorio di lavoro e collegarlo agli altri file oggetto costituenti il
programma da proteggere. Nei file del programma applicativo che
utilizzano il modulo clink.o e` necessario includere il file clink.h.
CONFIGURAZIONE
--------------
Se si sta utilizzando una porta Parallela PCI che usa un indirizzo di IO
non standard, e' necessario specificare l'indirizzo effettivo di IO della
porta con l'argomento "port" del modulo.
Se si sta utilizzando una porta Parallela PCI che usa un indirizzo di IO
non standard, e' necessario specificare l'indirizzo effettivo di IO
della porta con l'argomento "port" del modulo.
L'argomento accetta fino a tre valori separati da virgole. I valori di
L'argomento accetta fino a tre valori separati da virgole. I valori di
default sono 0x378, 0x278, 0x3bc.
Per esempio :
@ -219,9 +225,9 @@ o
insmod skey port=0x800,0x810,0x820
Su sistemi con bus usb OHCI (Open Host Controller Interface),
generalmenti presenti su tutte le schede aggiuntive PCI USB,
e' necessario aggiungere l'argomento "fastusb=0"
Su sistemi con bus usb OHCI (Open Host Controller Interface),
generalmenti presenti su tutte le schede aggiuntive PCI USB, e'
necessario aggiungere l'argomento "fastusb=0"
Per esempio :

View File

@ -1,50 +1,62 @@
EUTRON SPA
INFORMATION SECURITY SOLUTION
Phone +39-(0)35-697011
Fax +39-(0)35-697092
EUTRON
Internet : http://www.smartkey.eutron.com
Technical support : helpdesk@eutron.com
Commercial info : info@eutron.com
Helpdesk email : helpdesk@eutron.com
Commercial email : info@eutron.com
Commercial phone : +39-035697080
Fax : +39-035697092
SmartKey Parallel and USB driver for Linux
------------------------------------------
This driver works for kernel from 2.4.20 to 2.4.21 compiled with gcc-3.2.3
This driver works for kernel from 2.4.21-144 (Suse 9) compiled with gcc-3.2.3
The application provides an interface between the C language and
the driver of the SMARTKEY key. The application is totally compatible
with the one available under MS-DOS. This makes it easy to port
programs written for the MS-DOS operating system to the Unix environment.
The application provides an interface between the C language and the
driver of the SMARTKEY key. The application is totally compatible with
the one available under MS-DOS. This makes it easy to port programs
written for the MS-DOS operating system to the Unix environment.
CONTENTS OF THE APPLICATION
---------------------------
The application contains the following files:
CONTENTS
--------
The package contains the following files:
clink.o
This is the interface between C programs and the SMARTKEY
driver.
clink.h
This outlines the structure of the clink.o interface. It has to be used
in the C files that use the SMARTKEY key.
smartdem.c
An example, written in C, of how to use the SMARTKEY key.
smartdem
Executable of the sample program.
skey*.o
Drivers of the key
skinstall
Script for automatic installation
skuninstall
Script for automatic uninstalling
skeyver
Utility for setting the version of the kernel in the skey.o
module
README This contains information about the application.
It's the file you are reading now.
clink.o This is the interface between C programs and the SMARTKEY
driver.
clink.h This outlines the structure of the clink.o interface.
It has to be used in the C files that use the SMARTKEY key.
smartdem.c An example, written in C, of how to use the SMARTKEY key.
smartdem Executable of the sample program.
skey*.o Drivers of the key
skinstall Script for automatic installation
skuninstall Script for automatic uninstalling
skeyver Utility for setting the version of the kernel in the skey.o
module
USB SUPPORT
-----------
The Smarkey driver, like any other USB driver, requires that the USB
modules of the kernel are active and running.
Generally you can obtain this running these commands :
The Smarkey driver, like any other USB driver, requires that the USB
modules of the kernel are active and running. Generally you can obtain
this running these commands :
insmod usbcore
insmod usb-uhci
@ -60,12 +72,12 @@ for PCs with an USB controller OHCI by Compaq, iMacs, OPTi, SiS, ALi...
UPGRADING
---------
To upgrade from the previous version of the SmartKey driver you need
to relink your application with the new clink.o object.
To upgrade from the previous version of the SmartKey driver you need to
relink your application with the new clink.o object.
If you don't relink, your application will work only with the first USB
key inserted and with the parallel port addresses 0x3BC and 0x378.
You will lose the access at the parallel port at address 0x278 substituted
If you don't relink, your application will work only with the first USB
key inserted and with the parallel port addresses 0x3BC and 0x378. You
will lose the access at the parallel port at address 0x278 substituted
with the first USB key.
@ -77,16 +89,16 @@ Start the skinstall script with root rights using the commands:
chmod a+x skinstall
./skinstall
The installation will configure the system for the automatic loading of the
SmartKey module the first time it is run.
The installation will configure the system for the automatic loading of
the SmartKey module the first time it is run.
To uninstall the driver use the commands:
chmod a+x skuninstall
./skuninstall
Every time the version of the kernel changes, you will have to perform the
installation again.
Every time the version of the kernel changes, you will have to perform
the installation again.
To start the demo application use the commands:
@ -95,14 +107,14 @@ To start the demo application use the commands:
MANUAL INSTALLATION PROCEDURE
MANUAL INSTALLATION PROCEDURE
-----------------------------
To install the driver follow this procedure:
1) Access the system as a super-user.
2) Go to the /dev directory using the command:
2) Go to the /dev directory using the command:
cd /dev

View File

@ -1,6 +1,6 @@
/*
* SmartKey Driver
* Copyright EUTRON 1993-2002
* Copyright EUTRON 1993-2004
*/
#ifndef __SMARTKEY_H

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
/*
* SmartKey Demo Program
* Copyright EUTRON 1993-2002
* Copyright EUTRON 1993-2004
*/
#include <string.h>
@ -57,7 +57,7 @@ int main(void)
exit(EXIT_FAILURE);
}
printf("SmartKey found on port %d\n", skey.lpt);
printf("SmartKey found on port %d\n", (unsigned)skey.lpt);
/* Scrambling */
printf("Scrambling ");
@ -109,14 +109,15 @@ int main(void)
case SKEY_EP : printf("model EP"); break;
case SKEY_SP : printf("model SP"); break;
case SKEY_NET : printf("model NET"); break;
default : printf("model unknow"); break;
default : printf("model unknown"); break;
}
switch (skey.data[1]) {
case '0' : printf(", memory 0 byte"); break;
case '1' : printf(", memory 64 byte"); break;
case '2' : printf(", memory 192 byte"); break;
case '3' : printf(", memory 416 byte"); break;
default : printf(", memory unknow"); break;
case '4' : printf(", memory 896 byte"); break;
default : printf(", memory unknown"); break;
}
printf("\n");
@ -138,21 +139,22 @@ int main(void)
case SKEY_EP : printf("model EP"); break;
case SKEY_SP : printf("model SP"); break;
case SKEY_NET : printf("model NET"); break;
default : printf("model unknow"); break;
default : printf("model unknown"); break;
}
switch (skey.data[1]) {
case '0' : printf(", memory 0 byte"); break;
case '1' : printf(", memory 64 byte"); break;
case '2' : printf(", memory 192 byte"); break;
case '3' : printf(", memory 416 byte"); break;
default : printf(", memory unknow"); break;
case '4' : printf(", memory 896 byte"); break;
default : printf(", memory unknown"); break;
}
switch (skey.data[2]) {
case 0 : printf(", type A"); break;
case 1 : printf(", type B"); break;
case 2 : printf(", type ASIC"); break;
case 3 : printf(", type USB"); break;
default : printf(", type unknow"); break;
default : printf(", type unknown"); break;
}
printf("\n");

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.