1 /* $Id: cert.c,v 1.1.4.1 2001/11/20 14:19:35 kai Exp $ 2 * 3 * Author Karsten Keil 4 * Copyright by Karsten Keil <keil@isdn4linux.de> 5 * 6 * This software may be used and distributed according to the terms 7 * of the GNU General Public License, incorporated herein by reference. 8 * 9 * For changes and modifications please read 10 * ../../../Documentation/isdn/HiSax.cert 11 * 12 */ 13 14 #include <linux/kernel.h> 15 16 int certification_check(int output)17certification_check(int output) { 18 19 #ifdef CERTIFICATION 20 #if CERTIFICATION == 0 21 if (output) { 22 printk(KERN_INFO "HiSax: Approval certification valid\n"); 23 printk(KERN_INFO "HiSax: Approved with ELSA Microlink PCI cards\n"); 24 printk(KERN_INFO "HiSax: Approved with Eicon Technology Diva 2.01 PCI cards\n"); 25 printk(KERN_INFO "HiSax: Approved with Sedlbauer Speedfax + cards\n"); 26 printk(KERN_INFO "HiSax: Approved with HFC-S PCI A based cards\n"); 27 } 28 return(0); 29 #endif 30 #if CERTIFICATION == 1 31 if (output) { 32 printk(KERN_INFO "HiSax: Approval certification failed because of\n"); 33 printk(KERN_INFO "HiSax: unauthorized source code changes\n"); 34 } 35 return(1); 36 #endif 37 #if CERTIFICATION == 127 38 if (output) { 39 printk(KERN_INFO "HiSax: Approval certification not possible\n"); 40 printk(KERN_INFO "HiSax: because \"md5sum\" is not available\n"); 41 } 42 return(2); 43 #endif 44 #else 45 if (output) { 46 printk(KERN_INFO "HiSax: Certification not verified\n"); 47 } 48 return(3); 49 #endif 50 } 51