pre-2.3.4..
[davej-history.git] / drivers / isdn / hisax / cert.c
bloba76736b600347bbebff05914c36206d12ee229d5
1 /* $Id: cert.c,v 2.1 1998/11/15 23:51:15 keil Exp $
3 * Author Karsten Keil (keil@isdn4linux.de)
5 * This file is (c) under GNU PUBLIC LICENSE
6 * For changes and modifications please read
7 * ../../../Documentation/isdn/HiSax.cert
9 * $Log: cert.c,v $
10 * Revision 2.1 1998/11/15 23:51:15 keil
11 * certification stuff
13 * Revision 1.2.2.1 1998/11/03 21:46:37 keil
14 * first version
19 #include <linux/kernel.h>
21 int
22 certification_check(int output) {
24 #ifdef CERTIFICATION
25 #if CERTIFICATION == 0
26 if (output) {
27 printk(KERN_INFO "HiSax: Approval certification valid\n");
28 printk(KERN_INFO "HiSax: Approved with ELSA Quickstep series cards\n");
29 printk(KERN_INFO "HiSax: Approval registration numbers:\n");
30 printk(KERN_INFO "HiSax: German D133361J CETECOM ICT Services GmbH\n");
31 printk(KERN_INFO "HiSax: EU (D133362J) CETECOM ICT Services GmbH\n");
33 return(0);
34 #endif
35 #if CERTIFICATION == 1
36 if (output) {
37 printk(KERN_INFO "HiSax: Approval certification failed because of\n");
38 printk(KERN_INFO "HiSax: unauthorized source code changes\n");
40 return(1);
41 #endif
42 #if CERTIFICATION == 127
43 if (output) {
44 printk(KERN_INFO "HiSax: Approval certification not possible\n");
45 printk(KERN_INFO "HiSax: because \"md5sum\" is not available\n");
47 return(2);
48 #endif
49 #else
50 if (output) {
51 printk(KERN_INFO "HiSax: Certification not verified\n");
53 return(3);
54 #endif