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

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

?? a_utf8.c

?? openssl包含TLS
?? C
字號:
/* crypto/asn1/a_utf8.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 "cryptlib.h"#include <openssl/asn1.h>/* UTF8 utilities *//* This parses a UTF8 string one character at a time. It is passed a pointer * to the string and the length of the string. It sets 'value' to the value of * the current character. It returns the number of characters read or a * negative error code: * -1 = string too short * -2 = illegal character * -3 = subsequent characters not of the form 10xxxxxx * -4 = character encoded incorrectly (not minimal length). */int UTF8_getc(const unsigned char *str, int len, unsigned long *val){	const unsigned char *p;	unsigned long value;	int ret;	if(len <= 0) return 0;	p = str;	/* Check syntax and work out the encoded value (if correct) */	if((*p & 0x80) == 0) {		value = *p++ & 0x7f;		ret = 1;	} else if((*p & 0xe0) == 0xc0) {		if(len < 2) return -1;		if((p[1] & 0xc0) != 0x80) return -3;		value = (*p++ & 0x1f) << 6;		value |= *p++ & 0x3f;		if(value < 0x80) return -4;		ret = 2;	} else if((*p & 0xf0) == 0xe0) {		if(len < 3) return -1;		if( ((p[1] & 0xc0) != 0x80)		   || ((p[2] & 0xc0) != 0x80) ) return -3;		value = (*p++ & 0xf) << 12;		value |= (*p++ & 0x3f) << 6;		value |= *p++ & 0x3f;		if(value < 0x800) return -4;		ret = 3;	} else if((*p & 0xf8) == 0xf0) {		if(len < 4) return -1;		if( ((p[1] & 0xc0) != 0x80)		   || ((p[2] & 0xc0) != 0x80) 		   || ((p[3] & 0xc0) != 0x80) ) return -3;		value = ((unsigned long)(*p++ & 0x7)) << 18;		value |= (*p++ & 0x3f) << 12;		value |= (*p++ & 0x3f) << 6;		value |= *p++ & 0x3f;		if(value < 0x10000) return -4;		ret = 4;	} else if((*p & 0xfc) == 0xf8) {		if(len < 5) return -1;		if( ((p[1] & 0xc0) != 0x80)		   || ((p[2] & 0xc0) != 0x80) 		   || ((p[3] & 0xc0) != 0x80) 		   || ((p[4] & 0xc0) != 0x80) ) return -3;		value = ((unsigned long)(*p++ & 0x3)) << 24;		value |= ((unsigned long)(*p++ & 0x3f)) << 18;		value |= ((unsigned long)(*p++ & 0x3f)) << 12;		value |= (*p++ & 0x3f) << 6;		value |= *p++ & 0x3f;		if(value < 0x200000) return -4;		ret = 5;	} else if((*p & 0xfe) == 0xfc) {		if(len < 6) return -1;		if( ((p[1] & 0xc0) != 0x80)		   || ((p[2] & 0xc0) != 0x80) 		   || ((p[3] & 0xc0) != 0x80) 		   || ((p[4] & 0xc0) != 0x80) 		   || ((p[5] & 0xc0) != 0x80) ) return -3;		value = ((unsigned long)(*p++ & 0x1)) << 30;		value |= ((unsigned long)(*p++ & 0x3f)) << 24;		value |= ((unsigned long)(*p++ & 0x3f)) << 18;		value |= ((unsigned long)(*p++ & 0x3f)) << 12;		value |= (*p++ & 0x3f) << 6;		value |= *p++ & 0x3f;		if(value < 0x4000000) return -4;		ret = 6;	} else return -2;	*val = value;	return ret;}/* This takes a character 'value' and writes the UTF8 encoded value in * 'str' where 'str' is a buffer containing 'len' characters. Returns * the number of characters written or -1 if 'len' is too small. 'str' can * be set to NULL in which case it just returns the number of characters. * It will need at most 6 characters. */int UTF8_putc(unsigned char *str, int len, unsigned long value){	if(!str) len = 6;	/* Maximum we will need */	else if(len <= 0) return -1;	if(value < 0x80) {		if(str) *str = (unsigned char)value;		return 1;	}	if(value < 0x800) {		if(len < 2) return -1;		if(str) {			*str++ = (unsigned char)(((value >> 6) & 0x1f) | 0xc0);			*str = (unsigned char)((value & 0x3f) | 0x80);		}		return 2;	}	if(value < 0x10000) {		if(len < 3) return -1;		if(str) {			*str++ = (unsigned char)(((value >> 12) & 0xf) | 0xe0);			*str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);			*str = (unsigned char)((value & 0x3f) | 0x80);		}		return 3;	}	if(value < 0x200000) {		if(len < 4) return -1;		if(str) {			*str++ = (unsigned char)(((value >> 18) & 0x7) | 0xf0);			*str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);			*str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);			*str = (unsigned char)((value & 0x3f) | 0x80);		}		return 4;	}	if(value < 0x4000000) {		if(len < 5) return -1;		if(str) {			*str++ = (unsigned char)(((value >> 24) & 0x3) | 0xf8);			*str++ = (unsigned char)(((value >> 18) & 0x3f) | 0x80);			*str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);			*str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);			*str = (unsigned char)((value & 0x3f) | 0x80);		}		return 5;	}	if(len < 6) return -1;	if(str) {		*str++ = (unsigned char)(((value >> 30) & 0x1) | 0xfc);		*str++ = (unsigned char)(((value >> 24) & 0x3f) | 0x80);		*str++ = (unsigned char)(((value >> 18) & 0x3f) | 0x80);		*str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);		*str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);		*str = (unsigned char)((value & 0x3f) | 0x80);	}	return 6;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
√…a在线天堂一区| 91精品国产黑色紧身裤美女| 免费观看30秒视频久久| 一区二区三区四区高清精品免费观看 | 国产精品国产成人国产三级| 久久久久久久久久久99999| 欧美一区二区三区在线观看| 欧美日韩成人在线| 欧美日韩精品欧美日韩精品| 欧美日韩国产首页| 欧美一区二区三区在| 精品国产乱子伦一区| 日韩精品一区二区三区视频| 久久婷婷一区二区三区| 久久久久久黄色| 国产精品久久久久精k8| 一个色妞综合视频在线观看| 午夜免费久久看| 日韩av一区二| 国产精品一二三| 99精品久久只有精品| 日本道色综合久久| 欧美酷刑日本凌虐凌虐| 精品久久久久久综合日本欧美| 国产亚洲va综合人人澡精品 | 国产精品女主播av| 中文字幕欧美一| 日韩成人免费看| 国产精品 欧美精品| 色香蕉久久蜜桃| 日韩女优毛片在线| 最新日韩av在线| 免费日韩伦理电影| www.日本不卡| 欧美一区二区性放荡片| 国产精品少妇自拍| 视频一区欧美精品| 成人毛片视频在线观看| 欧美日韩久久久| 国产精品美女久久久久久久网站| 亚洲一级电影视频| 国产黑丝在线一区二区三区| 色一情一乱一乱一91av| 久久这里只有精品首页| 亚洲自拍都市欧美小说| 国产黄色91视频| 日韩欧美一二三四区| 亚洲免费电影在线| 成人亚洲一区二区一| 欧美精品欧美精品系列| 国产精品成人午夜| 国产专区综合网| 欧美日韩免费视频| 亚洲欧美经典视频| 国产成人精品在线看| 精品久久人人做人人爰| 午夜精品在线视频一区| 91麻豆免费在线观看| 国产日韩欧美一区二区三区综合| 人人精品人人爱| 8x8x8国产精品| 亚洲精品高清在线| 99精品视频一区二区三区| 久久久久久一二三区| 蜜桃av噜噜一区二区三区小说| 欧美视频中文字幕| 亚洲手机成人高清视频| 成人动漫一区二区三区| 久久婷婷久久一区二区三区| 精品一区二区av| 日韩一区二区高清| 三级不卡在线观看| 欧美精品在线观看一区二区| 亚洲在线一区二区三区| 91黄色免费网站| 亚洲小少妇裸体bbw| 欧美日韩国产a| 亚洲第一会所有码转帖| 色欧美88888久久久久久影院| 亚洲色图19p| 在线观看欧美日本| 天堂va蜜桃一区二区三区漫画版| 欧美日韩一级二级| 天天综合日日夜夜精品| 在线播放/欧美激情| 麻豆91在线看| 久久蜜桃一区二区| hitomi一区二区三区精品| 亚洲欧美激情一区二区| 欧美日韩免费高清一区色橹橹| 日韩福利电影在线观看| 精品国产一区二区亚洲人成毛片| 国产精品一区二区不卡| 中文字幕一区二区三区不卡| 在线一区二区视频| 奇米精品一区二区三区四区| 久久综合九色综合97婷婷| 成人激情校园春色| 亚洲午夜激情av| 26uuu国产电影一区二区| 成人免费看的视频| 亚洲国产精品人人做人人爽| 欧美一级夜夜爽| 国产999精品久久久久久绿帽| 国产精品美女久久久久久久网站| 色吧成人激情小说| 精品一区二区三区香蕉蜜桃| 国产精品乱人伦| 精品婷婷伊人一区三区三| 六月婷婷色综合| 亚洲精品国产精华液| 久久夜色精品国产欧美乱极品| 91麻豆自制传媒国产之光| 免费人成黄页网站在线一区二区| 久久久精品中文字幕麻豆发布| 91丨九色porny丨蝌蚪| 精品一区二区在线免费观看| 亚洲人成影院在线观看| www国产成人免费观看视频 深夜成人网 | 欧美一级片在线看| av亚洲产国偷v产偷v自拍| 男人的天堂久久精品| 国产精品视频线看| 精品处破学生在线二十三| 欧美吻胸吃奶大尺度电影| 国产电影一区在线| 日韩影院精彩在线| 一区二区欧美精品| 中文字幕在线不卡一区| 精品三级在线看| 欧美肥妇free| 欧洲一区二区三区在线| av在线一区二区三区| 国产精品自拍三区| 九九热在线视频观看这里只有精品| 一区二区三区鲁丝不卡| 国产日韩av一区二区| 日韩一级二级三级| 在线成人高清不卡| 在线亚洲欧美专区二区| 99久久精品免费| 91首页免费视频| av激情综合网| 成人不卡免费av| 成人激情文学综合网| 国产91精品欧美| 不卡的av电影| 成人黄色网址在线观看| 国产91露脸合集magnet | 亚洲综合免费观看高清完整版在线| 欧美国产禁国产网站cc| 中文字幕+乱码+中文字幕一区| 精品国产3级a| 国产午夜精品在线观看| 久久久久久久久久久黄色| 久久九九久精品国产免费直播| 精品国产三级电影在线观看| 欧美成人猛片aaaaaaa| 欧美精品一区二区三区蜜桃| 久久先锋影音av鲁色资源网| 久久久久97国产精华液好用吗| 久久精品免费在线观看| 久久久www免费人成精品| 久久人人爽爽爽人久久久| 国产亚洲综合在线| ...av二区三区久久精品| 亚洲永久免费av| 首页亚洲欧美制服丝腿| 精品一区二区三区免费播放| 国产在线精品一区二区不卡了 | 国产一区二区三区美女| 国产91露脸合集magnet| 91丝袜国产在线播放| 欧美日韩日日骚| 日韩午夜电影在线观看| 久久免费偷拍视频| 怡红院av一区二区三区| 日韩专区一卡二卡| 国产精品性做久久久久久| 色综合久久综合网| 日韩欧美在线1卡| 国产日韩欧美电影| 性欧美大战久久久久久久久| 久久精品国产第一区二区三区| 国产福利电影一区二区三区| 色久综合一二码| 精品久久久网站| 亚洲免费视频成人| 极品美女销魂一区二区三区免费 | 综合在线观看色| 日韩综合一区二区| 成人激情校园春色| 日韩欧美aaaaaa| 亚洲精品成人在线| 国产一区二区三区免费观看| 欧美日韩精品欧美日韩精品| 亚洲国产岛国毛片在线| 三级精品在线观看| 色8久久人人97超碰香蕉987| www久久久久|