亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? apps.c

?? OpenSSL的RSA算法應(yīng)用舉例。是用VC寫的
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* apps/apps.c *//* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. *  * This library is free for commercial and non-commercial use as long as * the following conditions are aheared to.  The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code.  The SSL documentation * included with this distribution is covered by the same copyright terms * except that the holder is Tim Hudson (tjh@cryptsoft.com). *  * Copyright remains Eric Young's, and as such any Copyright notices in * the code are not to be removed. * If this package is used in a product, Eric Young should be given attribution * as the author of the parts of the library used. * This can be in the form of a textual message at program startup or * in documentation (online or textual) provided with the package. *  * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *    "This product includes cryptographic software written by *     Eric Young (eay@cryptsoft.com)" *    The word 'cryptographic' can be left out if the rouines from the library *    being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from  *    the apps directory (application code) you must include an acknowledgement: *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" *  * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *  * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed.  i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <sys/stat.h>#define NON_MAIN#include "apps.h"#undef NON_MAIN#include <openssl/err.h>#include <openssl/x509.h>#include <openssl/pem.h>#include <openssl/pkcs12.h>#include <openssl/safestack.h>#ifdef WINDOWS#  include "bss_file.c"#endifint app_init(long mesgwin);#ifdef undef /* never finished - probably never will be :-) */int args_from_file(char *file, int *argc, char **argv[])	{	FILE *fp;	int num,i;	unsigned int len;	static char *buf=NULL;	static char **arg=NULL;	char *p;	struct stat stbuf;	if (stat(file,&stbuf) < 0) return(0);	fp=fopen(file,"r");	if (fp == NULL)		return(0);	*argc=0;	*argv=NULL;	len=(unsigned int)stbuf.st_size;	if (buf != NULL) OPENSSL_free(buf);	buf=(char *)OPENSSL_malloc(len+1);	if (buf == NULL) return(0);	len=fread(buf,1,len,fp);	if (len <= 1) return(0);	buf[len]='\0';	i=0;	for (p=buf; *p; p++)		if (*p == '\n') i++;	if (arg != NULL) OPENSSL_free(arg);	arg=(char **)OPENSSL_malloc(sizeof(char *)*(i*2));	*argv=arg;	num=0;	p=buf;	for (;;)		{		if (!*p) break;		if (*p == '#') /* comment line */			{			while (*p && (*p != '\n')) p++;			continue;			}		/* else we have a line */		*(arg++)=p;		num++;		while (*p && ((*p != ' ') && (*p != '\t') && (*p != '\n')))			p++;		if (!*p) break;		if (*p == '\n')			{			*(p++)='\0';			continue;			}		/* else it is a tab or space */		p++;		while (*p && ((*p == ' ') || (*p == '\t') || (*p == '\n')))			p++;		if (!*p) break;		if (*p == '\n')			{			p++;			continue;			}		*(arg++)=p++;		num++;		while (*p && (*p != '\n')) p++;		if (!*p) break;		/* else *p == '\n' */		*(p++)='\0';		}	*argc=num;	return(1);	}#endifint str2fmt(char *s)	{	if 	((*s == 'D') || (*s == 'd'))		return(FORMAT_ASN1);	else if ((*s == 'T') || (*s == 't'))		return(FORMAT_TEXT);	else if ((*s == 'P') || (*s == 'p'))		return(FORMAT_PEM);	else if ((*s == 'N') || (*s == 'n'))		return(FORMAT_NETSCAPE);	else if ((*s == 'S') || (*s == 's'))		return(FORMAT_SMIME);	else if ((*s == '1')		|| (strcmp(s,"PKCS12") == 0) || (strcmp(s,"pkcs12") == 0)		|| (strcmp(s,"P12") == 0) || (strcmp(s,"p12") == 0))		return(FORMAT_PKCS12);	else		return(FORMAT_UNDEF);	}#if defined(MSDOS) || defined(WIN32) || defined(WIN16)void program_name(char *in, char *out, int size)	{	int i,n;	char *p=NULL;	n=strlen(in);	/* find the last '/', '\' or ':' */	for (i=n-1; i>0; i--)		{		if ((in[i] == '/') || (in[i] == '\\') || (in[i] == ':'))			{			p= &(in[i+1]);			break;			}		}	if (p == NULL)		p=in;	n=strlen(p);	/* strip off trailing .exe if present. */	if ((n > 4) && (p[n-4] == '.') &&		((p[n-3] == 'e') || (p[n-3] == 'E')) &&		((p[n-2] == 'x') || (p[n-2] == 'X')) &&		((p[n-1] == 'e') || (p[n-1] == 'E')))		n-=4;	if (n > size-1)		n=size-1;	for (i=0; i<n; i++)		{		if ((p[i] >= 'A') && (p[i] <= 'Z'))			out[i]=p[i]-'A'+'a';		else			out[i]=p[i];		}	out[n]='\0';	}#else#ifdef VMSvoid program_name(char *in, char *out, int size)	{	char *p=in, *q;	char *chars=":]>";	while(*chars != '\0')		{		q=strrchr(p,*chars);		if (q > p)			p = q + 1;		chars++;		}	q=strrchr(p,'.');	if (q == NULL)		q = p + strlen(p);	strncpy(out,p,size-1);	if (q-p >= size)		{		out[size-1]='\0';		}	else		{		out[q-p]='\0';		}	}#elsevoid program_name(char *in, char *out, int size)	{	char *p;	p=strrchr(in,'/');	if (p != NULL)		p++;	else		p=in;	strncpy(out,p,size-1);	out[size-1]='\0';	}#endif#endif#ifdef WIN32int WIN32_rename(char *from, char *to)	{#ifdef WINNT	int ret;/* Note: MoveFileEx() doesn't work under Win95, Win98 */	ret=MoveFileEx(from,to,MOVEFILE_REPLACE_EXISTING|MOVEFILE_COPY_ALLOWED);	return(ret?0:-1);#else	unlink(to);	return MoveFile(from, to);#endif	}#endifint chopup_args(ARGS *arg, char *buf, int *argc, char **argv[])	{	int num,len,i;	char *p;	*argc=0;	*argv=NULL;	len=strlen(buf);	i=0;	if (arg->count == 0)		{		arg->count=20;		arg->data=(char **)OPENSSL_malloc(sizeof(char *)*arg->count);		}	for (i=0; i<arg->count; i++)		arg->data[i]=NULL;	num=0;	p=buf;	for (;;)		{		/* first scan over white space */		if (!*p) break;		while (*p && ((*p == ' ') || (*p == '\t') || (*p == '\n')))			p++;		if (!*p) break;		/* The start of something good :-) */		if (num >= arg->count)			{			arg->count+=20;			arg->data=(char **)OPENSSL_realloc(arg->data,				sizeof(char *)*arg->count);			if (argc == 0) return(0);			}		arg->data[num++]=p;		/* now look for the end of this */		if ((*p == '\'') || (*p == '\"')) /* scan for closing quote */			{			i= *(p++);			arg->data[num-1]++; /* jump over quote */			while (*p && (*p != i))				p++;			*p='\0';			}		else			{			while (*p && ((*p != ' ') &&				(*p != '\t') && (*p != '\n')))				p++;			if (*p == '\0')				p--;			else				*p='\0';			}		p++;		}	*argc=num;	*argv=arg->data;	return(1);	}#ifndef APP_INITint app_init(long mesgwin)	{	return(1);	}#endifint dump_cert_text (BIO *out, X509 *x){	char buf[256];	X509_NAME_oneline(X509_get_subject_name(x),buf,256);	BIO_puts(out,"subject=");	BIO_puts(out,buf);	X509_NAME_oneline(X509_get_issuer_name(x),buf,256);	BIO_puts(out,"\nissuer= ");	BIO_puts(out,buf);	BIO_puts(out,"\n");        return 0;}static char *app_get_pass(BIO *err, char *arg, int keepbio);int app_passwd(BIO *err, char *arg1, char *arg2, char **pass1, char **pass2){	int same;	if(!arg2 || !arg1 || strcmp(arg1, arg2)) same = 0;	else same = 1;	if(arg1) {		*pass1 = app_get_pass(err, arg1, same);		if(!*pass1) return 0;	} else if(pass1) *pass1 = NULL;	if(arg2) {		*pass2 = app_get_pass(err, arg2, same ? 2 : 0);		if(!*pass2) return 0;	} else if(pass2) *pass2 = NULL;	return 1;}static char *app_get_pass(BIO *err, char *arg, int keepbio){	char *tmp, tpass[APP_PASS_LEN];	static BIO *pwdbio = NULL;	int i;	if(!strncmp(arg, "pass:", 5)) return BUF_strdup(arg + 5);	if(!strncmp(arg, "env:", 4)) {		tmp = getenv(arg + 4);		if(!tmp) {			BIO_printf(err, "Can't read environment variable %s\n", arg + 4);			return NULL;		}		return BUF_strdup(tmp);	}	if(!keepbio || !pwdbio) {

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本韩国一区二区三区| 综合激情成人伊人| 国产精品天美传媒| 日韩精品乱码av一区二区| 成人免费视频app| 欧美变态tickle挠乳网站| 亚洲欧美日韩久久精品| 粉嫩aⅴ一区二区三区四区五区| 欧美欧美欧美欧美首页| 亚洲男女毛片无遮挡| 国产成人精品影视| 久久综合九色综合97婷婷| 亚洲bdsm女犯bdsm网站| 色域天天综合网| 亚洲欧洲国产日本综合| 国产91富婆露脸刺激对白| 欧美成人欧美edvon| 午夜精品爽啪视频| 国产精品久久久久国产精品日日| 蜜臀久久99精品久久久画质超高清| 国产成人99久久亚洲综合精品| 欧美日韩国产另类不卡| 一区二区三区资源| 成人av电影免费观看| 久久精品亚洲精品国产欧美 | 日韩欧美色电影| 亚洲国产中文字幕| 欧美专区日韩专区| 亚洲免费大片在线观看| 91丝袜美女网| 一区在线中文字幕| 91在线丨porny丨国产| 国产精品大尺度| 91在线视频18| 亚洲综合色成人| 欧美系列亚洲系列| 午夜伦理一区二区| 在线播放中文字幕一区| 日本在线不卡一区| 欧美一区三区二区| 卡一卡二国产精品 | 另类小说一区二区三区| 欧美一区二区成人| 精品在线亚洲视频| 国产亚洲综合在线| 波多野结衣欧美| 亚洲精选免费视频| 欧美系列亚洲系列| 久久国产精品露脸对白| 国产日韩欧美高清在线| 91浏览器入口在线观看| 亚洲妇熟xx妇色黄| 欧美一区二区三区在线电影| 激情图片小说一区| 国产精品久久久久久久久免费樱桃 | 日韩一卡二卡三卡国产欧美| 久热成人在线视频| 国产午夜精品在线观看| 91亚洲精品一区二区乱码| 一区二区三区四区不卡在线 | 精品国产制服丝袜高跟| 粉嫩一区二区三区性色av| 亚洲欧美韩国综合色| 欧美一区二区视频在线观看2022 | 男人的j进女人的j一区| 久久久99久久| 欧美日韩中文字幕一区| 国产在线观看一区二区| 伊人开心综合网| 又紧又大又爽精品一区二区| 亚洲18影院在线观看| 欧美日韩aaaaa| 国产99一区视频免费| 亚洲成人动漫一区| 中文字幕av在线一区二区三区| 欧美在线观看视频一区二区 | 综合久久久久久| 欧美一区二区视频网站| 91视频91自| 黄网站免费久久| 亚洲国产你懂的| 中文字幕精品—区二区四季| 在线不卡欧美精品一区二区三区| 国产成人高清在线| 奇米影视一区二区三区| 亚洲欧美日韩在线| 国产欧美日韩三级| 日韩女同互慰一区二区| 日本乱码高清不卡字幕| 国产成人综合视频| 久久精品国产秦先生| 亚洲成人自拍网| 日韩一区中文字幕| 国产日韩精品一区二区浪潮av| 3d成人动漫网站| 欧美最猛黑人xxxxx猛交| 国产suv精品一区二区三区| 亚洲欧洲综合另类| 亚洲免费观看视频| 精品裸体舞一区二区三区| 91网址在线看| 成人午夜短视频| 国产成人在线网站| 美女爽到高潮91| 视频一区二区不卡| 亚洲成人免费在线观看| 一区二区在线观看视频在线观看| 亚洲国产精品精华液2区45| 久久伊人中文字幕| 日韩免费高清电影| 日韩精品一区在线观看| 91精品婷婷国产综合久久竹菊| 欧美日韩一区二区三区视频| 色欧美日韩亚洲| 欧美中文字幕一区| 在线亚洲一区二区| 欧美在线观看视频一区二区| 在线观看免费视频综合| 欧美自拍偷拍午夜视频| 欧美揉bbbbb揉bbbbb| 欧美日韩1234| 在线综合亚洲欧美在线视频| 亚洲成a人v欧美综合天堂下载| 久久综合999| 久久久不卡影院| 欧美激情艳妇裸体舞| 亚洲国产激情av| 亚洲你懂的在线视频| 亚洲综合一区二区| 亚洲第一福利一区| 免费成人深夜小野草| 精品伊人久久久久7777人| 久久国产精品免费| 成人精品一区二区三区四区| 一道本成人在线| 欧美精品乱人伦久久久久久| 欧美成人女星排名| 欧美激情一区二区三区全黄| 一区二区三区四区高清精品免费观看| 亚洲成av人片观看| 国产一区二区日韩精品| 成人av电影免费在线播放| 欧美无砖专区一中文字| 精品久久久久久无| 国产精品麻豆欧美日韩ww| 亚洲第一激情av| 国产丶欧美丶日本不卡视频| 91美女片黄在线观看91美女| 欧美精品18+| 国产欧美一区二区三区在线老狼| 国产精品一区二区久久不卡| 国产高清精品网站| av在线一区二区| 欧美一级理论片| 国产精品久久久久婷婷| 午夜激情久久久| 99久久亚洲一区二区三区青草| 欧美日韩卡一卡二| 欧美激情中文字幕一区二区| 亚洲一二三区在线观看| 国产精品一区三区| 欧美性受xxxx| 欧美经典一区二区| 日本在线不卡视频一二三区| 99在线精品一区二区三区| 日韩无一区二区| 亚洲精品乱码久久久久| 国产精品一线二线三线| 3d成人h动漫网站入口| 亚洲免费观看在线视频| 国产高清久久久久| 精品国产乱码久久久久久蜜臀| 亚洲一区在线观看视频| 成人免费毛片高清视频| 久久―日本道色综合久久| 婷婷中文字幕一区三区| 日韩欧美一二三| 国产亚洲一区二区三区四区| 婷婷成人激情在线网| 91免费观看在线| 国产精品乱人伦| 国产精品77777| 日韩欧美成人午夜| 日本伊人精品一区二区三区观看方式| 99视频国产精品| 欧美激情综合网| 国产91在线观看| 国产亚洲va综合人人澡精品| 久久精品国产一区二区| 日韩欧美黄色影院| 丝袜美腿亚洲色图| 欧美精品免费视频| 男女激情视频一区| 日韩一级片在线观看| 免费观看一级欧美片| 欧美一级夜夜爽| 精品一区二区三区影院在线午夜| 7777精品伊人久久久大香线蕉超级流畅| 亚洲国产一区二区视频| 欧美精品黑人性xxxx|