cert.c
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
- /* $Id: cert.c,v 1.1.4.1 2001/11/20 14:19:35 kai Exp $
- *
- * Author Karsten Keil
- * Copyright by Karsten Keil <keil@isdn4linux.de>
- *
- * This software may be used and distributed according to the terms
- * of the GNU General Public License, incorporated herein by reference.
- *
- * For changes and modifications please read
- * ../../../Documentation/isdn/HiSax.cert
- *
- */
-
- #include <linux/kernel.h>
- int
- certification_check(int output) {
- #ifdef CERTIFICATION
- #if CERTIFICATION == 0
- if (output) {
- printk(KERN_INFO "HiSax: Approval certification validn");
- printk(KERN_INFO "HiSax: Approved with ELSA Microlink PCI cardsn");
- printk(KERN_INFO "HiSax: Approved with Eicon Technology Diva 2.01 PCI cardsn");
- printk(KERN_INFO "HiSax: Approved with Sedlbauer Speedfax + cardsn");
- printk(KERN_INFO "HiSax: Approved with HFC-S PCI A based cardsn");
- }
- return(0);
- #endif
- #if CERTIFICATION == 1
- if (output) {
- printk(KERN_INFO "HiSax: Approval certification failed because ofn");
- printk(KERN_INFO "HiSax: unauthorized source code changesn");
- }
- return(1);
- #endif
- #if CERTIFICATION == 127
- if (output) {
- printk(KERN_INFO "HiSax: Approval certification not possiblen");
- printk(KERN_INFO "HiSax: because "md5sum" is not availablen");
- }
- return(2);
- #endif
- #else
- if (output) {
- printk(KERN_INFO "HiSax: Certification not verifiedn");
- }
- return(3);
- #endif
- }