⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 general.h

📁 SecuDe是一个由安全应用程序接口组成,对验证机制、证件处理、PEM、X.400报文处理和密钥管理提供支持。SecuDe提供DES、 RSA杂凑函数、密钥生成以及数字签名的生成和核实等多种密码机制。
💻 H
字号:
/* general.h - general compatibility *//*  * $Header: /xtel/isode/isode/h/RCS/general.h,v 9.0 1992/06/16 12:17:57 isode Rel $ * * * $Log: general.h,v $ * Revision 9.0  1992/06/16  12:17:57  isode * Release 8.0 * *//* *				  NOTICE * *    Acquisition, use, and distribution of this module and related *    materials are subject to the restrictions of a license agreement. *    Consult the Preface in the User's Manual for the full terms of *    this agreement. * */#ifndef	_GENERAL_#define	_GENERAL_#ifndef	_CONFIG_#include "config.h"		/* system-specific configuration */#endif/* target-dependent defines:	BSDFORK -	target has BSD vfork	BSDLIBC -	target has real BSD libc	BSDSTRS -	target has BSD strings	SWABLIB -	target has byteorder(3n) routines */#ifdef	SOCKETS#define	SWABLIB#endif#ifdef	WINTLI#define	SWABLIB#endif#ifdef	EXOS#define	SWABLIB#endif#ifdef	BSD42#define	BSDFORK#define	BSDLIBC#define	BSDSTRS#endif#ifdef  SVR4_UCB#ifndef SVR4#define SVR4#endif#endif#ifdef  SVR4#ifndef SVR3#define SVR3#endif#endif#ifdef	ROS#undef	BSDFORK#undef	BSDLIBC#define	BSDSTRS#ifndef	BSD42#define	BSD42#endif#undef	SWABLIB#endif#ifdef	SYS5#undef	BSDFORK#undef	BSDLIBC#undef	BSDSTRS#endif#ifdef	sgi#undef	BSDFORK#undef	BSDLIBC#undef	BSDSTRS#endif#ifdef	HPUX#define	BSDFORK#undef	BSDLIBC#undef	BSDSTRS#undef	SWABLIB#endif#ifdef	pyr#undef	SWABLIB#endif#ifdef	XOS#undef	SWABLIB#endif#ifdef	XOS_2#undef	SWABLIB#endif#ifdef  apollo#undef  SWABLIB#endif#ifdef	AUX#undef	BSDFORK#define BSDSTRS#undef SWABLIB#define BSDLIBC#endif #if defined(_AIX) && defined(SYS5)#define BSDSTRS#endif#ifndef	BSDFORK#define	vfork	fork#endif/*    STRINGS */#if defined(SVR4) || defined (__NeXT__)#include <stdio.h>#include <stdlib.h>#else /* SVR4 */#if	defined(BSDSTRS) && !defined(BSD44) && (!defined(BSD43) || defined(SUNOS4) || defined(vax) || defined(RT) || (defined(mips) && defined(ultrix))) && !defined(XOS_2)#if !(defined(__STDC__) && defined(__GNUC__) && defined(mips) && defined(ultrix)) && !defined(__HP__)char   *sprintf ();#endif#elseint     sprintf ();#endifchar   *getenv ();char   *mktemp ();#endif /* SVR4 */#ifdef __STDC__#ifndef __NeXT__#include <malloc.h>#endif#else#if defined(BSD44) || defined(_AIX)void   *calloc (), *malloc (), *realloc ();void free();#elsechar   *calloc (), *malloc (), *realloc ();int free();#endif /* defined BSD44 */#endif#include "MF_check.h"#ifndef	BSDSTRS#define	index	strchr#define	rindex	strrchr#include <string.h>#else#include <strings.h>#endif#if	defined(SYS5) && !defined(_AIX) && !defined(XOS) && !defined(XOS_2)#include <memory.h>#define	bcopy(b1,b2,length)	(void) memcpy ((b2), (b1), (length))#define	bcmp(b1,b2,length)	memcmp ((b1), (b2), (length))#define	bzero(b,length)		(void) memset ((b), 0, (length))#endif/*    HEXIFY */int	explode (), implode ();/*    SPRINTB */char   *sprintb ();/*    STR2VEC */#define	NVEC	100#define	NSLACK	10#define	str2vec(s,v)	str2vecX ((s), (v), 0, NULLIP, NULL, 1)int	str2vecX ();/*    STR2ELEM */#define	NELEM	100int	str2elem ();/*    STR2SEL */int	str2sel ();char   *sel2str ();/*    GETPASS */char   *getpassword ();/*    BADUSER */int	baduser ();/*   UTILITIES */extern char chrcnv[], nochrcnv[];int	lexequ (), lexnequ ();int	log_tai ();int	sstr2arg ();void	(*set_smalloc_handler()) ();char    *smalloc (), *strdup ();/*    MISC */char   *sys_errname ();#ifdef	lint#define	insque(e,p)	INSQUE ((char *) (e), (char *) (p))#define	remque(e)	REMQUE ((char *) (e))#endifvoid	asprintf (), _asprintf ();void	isodetailor ();		/* also in tailor.h *//*  time */#ifndef makedev#include <sys/types.h>#endif#ifndef	OSX#ifndef	BSD42#ifdef _AIX#include <sys/time.h>		/* Why is AIX always different ! */#endif#include <time.h>#else  /* BSD42 */#ifndef	timerisset#include <sys/time.h>#endif /* timerisset */#endif /* BSD42 */#endif /* OSX */#ifndef __STDC__extern time_t time ();#endif/*  ntohs etc */#ifndef	ntohsunsigned short	ntohs ();#endif#ifndef	htonsunsigned short	htons ();#endif#ifndef	ntohlunsigned long	ntohl ();#endif#ifndef	htonlunsigned long	htonl ();#endifint	char2bcd ();int	bcd2char ();#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -