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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? req.c

?? openssl中req程序的VC實現
?? C
?? 第 1 頁 / 共 3 頁
字號:
			goto end;			}		}	else		{		req_conf=config;		BIO_printf(bio_err,"Using configuration from %s\n",			default_config_file);		if (req_conf == NULL)			{			BIO_printf(bio_err,"Unable to load config info\n");			}		}	if (req_conf != NULL)		{		p=CONF_get_string(req_conf,NULL,"oid_file");		if (p != NULL)			{			BIO *oid_bio;			oid_bio=BIO_new_file(p,"r");			if (oid_bio == NULL) 				{				/*				BIO_printf(bio_err,"problems opening %s for extra oid's\n",p);				ERR_print_errors(bio_err);				*/				}			else				{				OBJ_create_objects(oid_bio);				BIO_free(oid_bio);				}			}		}		if(!add_oid_section(bio_err, req_conf)) goto end;	if ((md_alg == NULL) &&		((p=CONF_get_string(req_conf,SECTION,"default_md")) != NULL))		{		if ((md_alg=EVP_get_digestbyname(p)) != NULL)			digest=md_alg;		}	if(!extensions)		extensions = CONF_get_string(req_conf, SECTION, V3_EXTENSIONS);	if(extensions) {		/* Check syntax of file */		X509V3_CTX ctx;		X509V3_set_ctx_test(&ctx);		X509V3_set_conf_lhash(&ctx, req_conf);		if(!X509V3_EXT_add_conf(req_conf, &ctx, extensions, NULL)) {			BIO_printf(bio_err,			 "Error Loading extension section %s\n", extensions);			goto end;		}	}	if(!passin)		passin = CONF_get_string(req_conf, SECTION, "input_password");	if(!passout)		passout = CONF_get_string(req_conf, SECTION, "output_password");	p = CONF_get_string(req_conf, SECTION, STRING_MASK);	if(p && !ASN1_STRING_set_default_mask_asc(p)) {		BIO_printf(bio_err, "Invalid global string mask setting %s\n", p);		goto end;	}	if(!req_exts)		req_exts = CONF_get_string(req_conf, SECTION, REQ_EXTENSIONS);	if(req_exts) {		/* Check syntax of file */		X509V3_CTX ctx;		X509V3_set_ctx_test(&ctx);		X509V3_set_conf_lhash(&ctx, req_conf);		if(!X509V3_EXT_add_conf(req_conf, &ctx, req_exts, NULL)) {			BIO_printf(bio_err,			 "Error Loading request extension section %s\n",								req_exts);			goto end;		}	}	in=BIO_new(BIO_s_file());	out=BIO_new(BIO_s_file());	if ((in == NULL) || (out == NULL))		goto end;	if (keyfile != NULL)		{		if (BIO_read_filename(in,keyfile) <= 0)			{			perror(keyfile);			goto end;			}		if (keyform == FORMAT_ASN1)			pkey=d2i_PrivateKey_bio(in,NULL);		else if (keyform == FORMAT_PEM)			{			pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,passin);			}		else			{			BIO_printf(bio_err,"bad input format specified for X509 request\n");			goto end;			}		if (pkey == NULL)			{			BIO_printf(bio_err,"unable to load Private key\n");			goto end;			}                if (EVP_PKEY_type(pkey->type) == EVP_PKEY_DSA)			{			char *randfile = CONF_get_string(req_conf,SECTION,"RANDFILE");			app_RAND_load_file(randfile, bio_err, 0);                	}		}	if (newreq && (pkey == NULL))		{		char *randfile = CONF_get_string(req_conf,SECTION,"RANDFILE");		app_RAND_load_file(randfile, bio_err, 0);		if (inrand)			app_RAND_load_files(inrand);			if (newkey <= 0)			{			newkey=(int)CONF_get_number(req_conf,SECTION,BITS);			if (newkey <= 0)				newkey=DEFAULT_KEY_LENGTH;			}		if (newkey < MIN_KEY_LENGTH)			{			BIO_printf(bio_err,"private key length is too short,\n");			BIO_printf(bio_err,"it needs to be at least %d bits, not %d\n",MIN_KEY_LENGTH,newkey);			goto end;			}		BIO_printf(bio_err,"Generating a %d bit %s private key\n",			newkey,(pkey_type == TYPE_RSA)?"RSA":"DSA");		if ((pkey=EVP_PKEY_new()) == NULL) goto end;#ifndef NO_RSA		if (pkey_type == TYPE_RSA)			{			if (!EVP_PKEY_assign_RSA(pkey,				RSA_generate_key(newkey,0x10001,					req_cb,bio_err)))				goto end;			}		else#endif#ifndef NO_DSA			if (pkey_type == TYPE_DSA)			{			if (!DSA_generate_key(dsa_params)) goto end;			if (!EVP_PKEY_assign_DSA(pkey,dsa_params)) goto end;			dsa_params=NULL;			}#endif		app_RAND_write_file(randfile, bio_err);		if (pkey == NULL) goto end;		if (keyout == NULL)			keyout=CONF_get_string(req_conf,SECTION,KEYFILE);		if (keyout == NULL)			{			BIO_printf(bio_err,"writing new private key to stdout\n");			BIO_set_fp(out,stdout,BIO_NOCLOSE);#ifdef VMS			{			BIO *tmpbio = BIO_new(BIO_f_linebuffer());			out = BIO_push(tmpbio, out);			}#endif			}		else			{			BIO_printf(bio_err,"writing new private key to '%s'\n",keyout);			if (BIO_write_filename(out,keyout) <= 0)				{				perror(keyout);				goto end;				}			}		p=CONF_get_string(req_conf,SECTION,"encrypt_rsa_key");		if (p == NULL)			p=CONF_get_string(req_conf,SECTION,"encrypt_key");		if ((p != NULL) && (strcmp(p,"no") == 0))			cipher=NULL;		if (nodes) cipher=NULL;				i=0;loop:		if (!PEM_write_bio_PrivateKey(out,pkey,cipher,			NULL,0,NULL,passout))			{			if ((ERR_GET_REASON(ERR_peek_error()) ==				PEM_R_PROBLEMS_GETTING_PASSWORD) && (i < 3))				{				ERR_clear_error();				i++;				goto loop;				}			goto end;			}		BIO_printf(bio_err,"-----\n");		}	if (!newreq)		{		/* Since we are using a pre-existing certificate		 * request, the kludge 'format' info should not be		 * changed. */		kludge= -1;		if (infile == NULL)			BIO_set_fp(in,stdin,BIO_NOCLOSE);		else			{			if (BIO_read_filename(in,infile) <= 0)				{				perror(infile);				goto end;				}			}		if	(informat == FORMAT_ASN1)			req=d2i_X509_REQ_bio(in,NULL);		else if (informat == FORMAT_PEM)			req=PEM_read_bio_X509_REQ(in,NULL,NULL,NULL);		else			{			BIO_printf(bio_err,"bad input format specified for X509 request\n");			goto end;			}		if (req == NULL)			{			BIO_printf(bio_err,"unable to load X509 request\n");			goto end;			}		}	if (newreq || x509)		{		if (pkey == NULL)			{			BIO_printf(bio_err,"you need to specify a private key\n");			goto end;			}#ifndef NO_DSA		if (pkey->type == EVP_PKEY_DSA)			digest=EVP_dss1();#endif		if (req == NULL)			{			req=X509_REQ_new();			if (req == NULL)				{				goto end;				}			i=make_REQ(req,pkey,!x509);			if (kludge >= 0)				req->req_info->req_kludge=kludge;			if (!i)				{				BIO_printf(bio_err,"problems making Certificate Request\n");				goto end;				}			}		if (x509)			{			EVP_PKEY *tmppkey;			X509V3_CTX ext_ctx;			if ((x509ss=X509_new()) == NULL) goto end;			/* Set version to V3 */			if(!X509_set_version(x509ss, 2)) goto end;			if (!ASN1_INTEGER_set(X509_get_serialNumber(x509ss),0L)) goto end;			if (!X509_set_issuer_name(x509ss, X509_REQ_get_subject_name(req))) goto end;			if (!X509_gmtime_adj(X509_get_notBefore(x509ss),0)) goto end;			if (!X509_gmtime_adj(X509_get_notAfter(x509ss), (long)60*60*24*days)) goto end;			if (!X509_set_subject_name(x509ss, X509_REQ_get_subject_name(req))) goto end;			tmppkey = X509_REQ_get_pubkey(req);			if (!tmppkey || !X509_set_pubkey(x509ss,tmppkey)) goto end;			EVP_PKEY_free(tmppkey);			/* Set up V3 context struct */			X509V3_set_ctx(&ext_ctx, x509ss, x509ss, NULL, NULL, 0);			X509V3_set_conf_lhash(&ext_ctx, req_conf);			/* Add extensions */			if(extensions && !X509V3_EXT_add_conf(req_conf, 				 	&ext_ctx, extensions, x509ss))			    {			    BIO_printf(bio_err,				       "Error Loading extension section %s\n",				       extensions);			    goto end;			    }			if (!(i=X509_sign(x509ss,pkey,digest)))				goto end;			}		else			{			X509V3_CTX ext_ctx;			/* Set up V3 context struct */			X509V3_set_ctx(&ext_ctx, NULL, NULL, req, NULL, 0);			X509V3_set_conf_lhash(&ext_ctx, req_conf);			/* Add extensions */			if(req_exts && !X509V3_EXT_REQ_add_conf(req_conf, 				 	&ext_ctx, req_exts, req))			    {			    BIO_printf(bio_err,				       "Error Loading extension section %s\n",				       req_exts);			    goto end;			    }			if (!(i=X509_REQ_sign(req,pkey,digest)))				goto end;			}		}	if (verify && !x509)		{		int tmp=0;		if (pkey == NULL)			{			pkey=X509_REQ_get_pubkey(req);			tmp=1;			if (pkey == NULL) goto end;			}		i=X509_REQ_verify(req,pkey);		if (tmp) {			EVP_PKEY_free(pkey);			pkey=NULL;		}		if (i < 0)			{			goto end;			}		else if (i == 0)			{			BIO_printf(bio_err,"verify failure\n");			}		else /* if (i > 0) */			BIO_printf(bio_err,"verify OK\n");		}	if (noout && !text && !modulus)		{		ex=0;		goto end;		}	if (outfile == NULL)		{		BIO_set_fp(out,stdout,BIO_NOCLOSE);#ifdef VMS		{		BIO *tmpbio = BIO_new(BIO_f_linebuffer());		out = BIO_push(tmpbio, out);		}#endif		}	else		{		if ((keyout != NULL) && (strcmp(outfile,keyout) == 0))			i=(int)BIO_append_filename(out,outfile);		else			i=(int)BIO_write_filename(out,outfile);		if (!i)			{			perror(outfile);			goto end;			}		}	if (text)		{		if (x509)			X509_print(out,x509ss);		else				X509_REQ_print(out,req);		}	if (modulus)		{		EVP_PKEY *pubkey;		if (x509)			pubkey=X509_get_pubkey(x509ss);		else			pubkey=X509_REQ_get_pubkey(req);		if (pubkey == NULL)			{			fprintf(stdout,"Modulus=unavailable\n");			goto end; 			}		fprintf(stdout,"Modulus=");#ifndef NO_RSA		if (pubkey->type == EVP_PKEY_RSA)			BN_print(out,pubkey->pkey.rsa->n);		else#endif			fprintf(stdout,"Wrong Algorithm type");		fprintf(stdout,"\n");		}	if (!noout && !x509)		{

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲激情欧美激情| 国产偷国产偷亚洲高清人白洁| 亚洲激情网站免费观看| 91蜜桃婷婷狠狠久久综合9色| 欧美国产精品一区| 99久久国产综合精品女不卡| 亚洲欧美激情小说另类| 日本韩国欧美在线| 亚洲电影一级片| 欧美一区二区三区人| 久久www免费人成看片高清| 欧美一区二区三区免费在线看| 亚洲成av人片一区二区梦乃| 日韩一级精品视频在线观看| 老司机免费视频一区二区| 久久久久成人黄色影片| 播五月开心婷婷综合| 亚洲h动漫在线| 宅男在线国产精品| 国产乱人伦偷精品视频免下载| 国产精品免费视频网站| 欧美无乱码久久久免费午夜一区 | 制服丝袜一区二区三区| 男人的j进女人的j一区| 国产午夜精品久久久久久免费视 | 91福利在线播放| 免费久久99精品国产| 国产欧美日产一区| 在线日韩av片| 国产精品88av| 午夜欧美电影在线观看| 国产清纯白嫩初高生在线观看91 | 欧美大黄免费观看| 91麻豆swag| 久久精品国产成人一区二区三区 | 亚洲成人自拍偷拍| 日本一区二区视频在线| 欧美性一区二区| 成人午夜电影小说| 日韩在线播放一区二区| 亚洲天堂a在线| 亚洲精品在线电影| 欧美精品自拍偷拍| 91偷拍与自偷拍精品| 国产在线不卡视频| 午夜精品福利一区二区蜜股av | 91免费国产在线观看| 蜜臀a∨国产成人精品| 亚洲美女在线国产| 中文字幕精品一区二区三区精品| 欧美日韩精品三区| 色诱视频网站一区| 国产成人综合精品三级| 日韩电影免费在线| 亚洲一级二级三级在线免费观看| 日本一区二区三区四区| 日韩精品在线一区| 欧美精品99久久久**| 色哟哟一区二区在线观看| 国产精品白丝jk黑袜喷水| 日韩精品国产精品| 亚洲国产成人av网| 亚洲视频在线一区观看| 国产精品久久三| 国产日韩一级二级三级| 亚洲精品一区二区三区四区高清| 欧美一区二区视频网站| 欧美三级在线看| 91久久香蕉国产日韩欧美9色| 成人app下载| 成人小视频在线观看| 国产高清精品在线| 国产激情一区二区三区四区 | 亚洲欧美乱综合| 亚洲同性同志一二三专区| 国产精品久久久久久亚洲毛片 | 国产精品成人免费精品自在线观看| 亚洲精品一区二区三区影院| 欧美成人官网二区| 日韩免费成人网| 精品久久久久久最新网址| 欧美一级淫片007| 欧美精品一区二区不卡| 精品欧美一区二区久久| 久久综合色综合88| 国产欧美一区二区精品性色超碰 | 91视频在线看| 91麻豆国产香蕉久久精品| 色综合网色综合| 欧美日韩国产高清一区二区| 欧美一三区三区四区免费在线看| 91精品国产一区二区| 精品99一区二区三区| 中文字幕免费不卡| 国产精品久久一卡二卡| 亚洲欧洲99久久| 亚洲午夜电影在线观看| 免费成人在线观看| 精品一区二区精品| 成人精品视频一区二区三区尤物| 成人网在线播放| 日本道精品一区二区三区| 51精品秘密在线观看| 久久综合九色综合欧美98| 国产精品福利一区| 亚洲.国产.中文慕字在线| 久久99精品国产麻豆婷婷| 成人免费视频一区二区| 欧美亚日韩国产aⅴ精品中极品| 欧美一区二区精品在线| 久久精品夜色噜噜亚洲aⅴ| 亚洲女人****多毛耸耸8| 天天综合日日夜夜精品| 国产九色精品成人porny| 日本韩国欧美在线| 欧美精品一区二区蜜臀亚洲| 亚洲人一二三区| 久久99精品久久久久婷婷| 91污片在线观看| 久久综合久久综合亚洲| 亚洲一区二区五区| 国产东北露脸精品视频| 欧美午夜理伦三级在线观看| 精品粉嫩超白一线天av| 亚洲免费av高清| 国产经典欧美精品| 制服丝袜在线91| 亚洲自拍欧美精品| 高清beeg欧美| 3atv一区二区三区| 国产精品国产精品国产专区不蜜| 蜜桃一区二区三区在线观看| 一本一本大道香蕉久在线精品 | 久久综合给合久久狠狠狠97色69| 亚洲线精品一区二区三区| 国产精品一区专区| 日韩丝袜美女视频| 一区二区三区影院| 国产成人精品免费看| 日韩三级精品电影久久久 | 日韩精品亚洲一区二区三区免费| av中文字幕一区| 国产亚洲午夜高清国产拍精品 | 欧美日韩国产免费一区二区| 国产精品久久久久三级| 国产精品影视在线| 精品国产乱码久久久久久1区2区| 亚洲成人精品一区二区| 99精品欧美一区二区蜜桃免费| 久久精品人人做人人综合 | 99精品热视频| 日本一区免费视频| 国产精品123| 国产欧美日韩在线| 国产一区二区三区电影在线观看| 91精品国产综合久久久久| 亚洲一区二区三区四区五区中文| av一区二区三区黑人| 国产精品美女久久久久久| 黄色小说综合网站| 欧美成人video| 国产自产视频一区二区三区| 欧美一级理论片| 日韩成人dvd| 9191精品国产综合久久久久久| 亚洲小说欧美激情另类| 欧美三级乱人伦电影| 亚洲最新在线观看| 欧美视频一区在线| 五月激情六月综合| 欧美精品v日韩精品v韩国精品v| 天使萌一区二区三区免费观看| 欧美日韩午夜影院| 日韩va欧美va亚洲va久久| 欧美一区二区视频在线观看2020 | 亚洲成人免费观看| 欧美精品18+| 狠狠色丁香婷婷综合| 亚洲欧美日韩一区| 一本到三区不卡视频| 亚洲成a人片在线观看中文| 欧美色大人视频| 免费高清在线一区| 久久久精品日韩欧美| av电影天堂一区二区在线观看| 亚洲视频 欧洲视频| 欧美日韩精品一区二区三区| 久久精品久久综合| 久久精品欧美一区二区三区不卡 | 成人精品鲁一区一区二区| 国产精品素人视频| 在线观看网站黄不卡| 视频一区在线播放| 日韩欧美美女一区二区三区| 粉嫩av亚洲一区二区图片| 亚洲人成网站色在线观看| 欧美日韩国产首页在线观看| 国产一区二区精品久久99| 中文字幕一区二区三区四区| 欧美日韩精品一区二区三区四区|