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

📄 ssl_stat.c

📁 mediastreamer2是开源的网络传输媒体流的库
💻 C
📖 第 1 页 / 共 2 页
字号:
case SSL2_ST_SEND_SERVER_VERIFY_B:		str="2SSV_B"; break;case SSL2_ST_SEND_SERVER_VERIFY_C:		str="2SSV_C"; break;case SSL2_ST_GET_CLIENT_FINISHED_A:		str="2GCF_A"; break;case SSL2_ST_GET_CLIENT_FINISHED_B:		str="2GCF_B"; break;case SSL2_ST_SEND_SERVER_FINISHED_A:		str="2SSF_A"; break;case SSL2_ST_SEND_SERVER_FINISHED_B:		str="2SSF_B"; break;case SSL2_ST_SEND_REQUEST_CERTIFICATE_A:	str="2SRC_A"; break;case SSL2_ST_SEND_REQUEST_CERTIFICATE_B:	str="2SRC_B"; break;case SSL2_ST_SEND_REQUEST_CERTIFICATE_C:	str="2SRC_C"; break;case SSL2_ST_SEND_REQUEST_CERTIFICATE_D:	str="2SRC_D"; break;case SSL2_ST_X509_GET_SERVER_CERTIFICATE:	str="2X9GSC"; break;case SSL2_ST_X509_GET_CLIENT_CERTIFICATE:	str="2X9GCC"; break;#endif#ifndef OPENSSL_NO_SSL3/* SSLv3 additions */case SSL3_ST_SW_FLUSH:case SSL3_ST_CW_FLUSH:				str="3FLUSH"; break;case SSL3_ST_CW_CLNT_HELLO_A:			str="3WCH_A"; break;case SSL3_ST_CW_CLNT_HELLO_B:			str="3WCH_B"; break;case SSL3_ST_CR_SRVR_HELLO_A:			str="3RSH_A"; break;case SSL3_ST_CR_SRVR_HELLO_B:			str="3RSH_B"; break;case SSL3_ST_CR_CERT_A:				str="3RSC_A"; break;case SSL3_ST_CR_CERT_B:				str="3RSC_B"; break;case SSL3_ST_CR_KEY_EXCH_A:			str="3RSKEA"; break;case SSL3_ST_CR_KEY_EXCH_B:			str="3RSKEB"; break;case SSL3_ST_CR_CERT_REQ_A:			str="3RCR_A"; break;case SSL3_ST_CR_CERT_REQ_B:			str="3RCR_B"; break;case SSL3_ST_CR_SRVR_DONE_A:			str="3RSD_A"; break;case SSL3_ST_CR_SRVR_DONE_B:			str="3RSD_B"; break;case SSL3_ST_CW_CERT_A:				str="3WCC_A"; break;case SSL3_ST_CW_CERT_B:				str="3WCC_B"; break;case SSL3_ST_CW_CERT_C:				str="3WCC_C"; break;case SSL3_ST_CW_CERT_D:				str="3WCC_D"; break;case SSL3_ST_CW_KEY_EXCH_A:			str="3WCKEA"; break;case SSL3_ST_CW_KEY_EXCH_B:			str="3WCKEB"; break;case SSL3_ST_CW_CERT_VRFY_A:			str="3WCV_A"; break;case SSL3_ST_CW_CERT_VRFY_B:			str="3WCV_B"; break;case SSL3_ST_SW_CHANGE_A:case SSL3_ST_CW_CHANGE_A:			str="3WCCSA"; break;case SSL3_ST_SW_CHANGE_B:case SSL3_ST_CW_CHANGE_B:			str="3WCCSB"; break;case SSL3_ST_SW_FINISHED_A:case SSL3_ST_CW_FINISHED_A:			str="3WFINA"; break;case SSL3_ST_SW_FINISHED_B:case SSL3_ST_CW_FINISHED_B:			str="3WFINB"; break;case SSL3_ST_SR_CHANGE_A:case SSL3_ST_CR_CHANGE_A:			str="3RCCSA"; break;case SSL3_ST_SR_CHANGE_B:case SSL3_ST_CR_CHANGE_B:			str="3RCCSB"; break;case SSL3_ST_SR_FINISHED_A:case SSL3_ST_CR_FINISHED_A:			str="3RFINA"; break;case SSL3_ST_SR_FINISHED_B:case SSL3_ST_CR_FINISHED_B:			str="3RFINB"; break;case SSL3_ST_SW_HELLO_REQ_A:			str="3WHR_A"; break;case SSL3_ST_SW_HELLO_REQ_B:			str="3WHR_B"; break;case SSL3_ST_SW_HELLO_REQ_C:			str="3WHR_C"; break;case SSL3_ST_SR_CLNT_HELLO_A:			str="3RCH_A"; break;case SSL3_ST_SR_CLNT_HELLO_B:			str="3RCH_B"; break;case SSL3_ST_SR_CLNT_HELLO_C:			str="3RCH_C"; break;case SSL3_ST_SW_SRVR_HELLO_A:			str="3WSH_A"; break;case SSL3_ST_SW_SRVR_HELLO_B:			str="3WSH_B"; break;case SSL3_ST_SW_CERT_A:				str="3WSC_A"; break;case SSL3_ST_SW_CERT_B:				str="3WSC_B"; break;case SSL3_ST_SW_KEY_EXCH_A:			str="3WSKEA"; break;case SSL3_ST_SW_KEY_EXCH_B:			str="3WSKEB"; break;case SSL3_ST_SW_CERT_REQ_A:			str="3WCR_A"; break;case SSL3_ST_SW_CERT_REQ_B:			str="3WCR_B"; break;case SSL3_ST_SW_SRVR_DONE_A:			str="3WSD_A"; break;case SSL3_ST_SW_SRVR_DONE_B:			str="3WSD_B"; break;case SSL3_ST_SR_CERT_A:				str="3RCC_A"; break;case SSL3_ST_SR_CERT_B:				str="3RCC_B"; break;case SSL3_ST_SR_KEY_EXCH_A:			str="3RCKEA"; break;case SSL3_ST_SR_KEY_EXCH_B:			str="3RCKEB"; break;case SSL3_ST_SR_CERT_VRFY_A:			str="3RCV_A"; break;case SSL3_ST_SR_CERT_VRFY_B:			str="3RCV_B"; break;#endif#if !defined(OPENSSL_NO_SSL2) && !defined(OPENSSL_NO_SSL3)/* SSLv2/v3 compatibility states *//* client */case SSL23_ST_CW_CLNT_HELLO_A:			str="23WCHA"; break;case SSL23_ST_CW_CLNT_HELLO_B:			str="23WCHB"; break;case SSL23_ST_CR_SRVR_HELLO_A:			str="23RSHA"; break;case SSL23_ST_CR_SRVR_HELLO_B:			str="23RSHA"; break;/* server */case SSL23_ST_SR_CLNT_HELLO_A:			str="23RCHA"; break;case SSL23_ST_SR_CLNT_HELLO_B:			str="23RCHB"; break;#endifdefault:					str="UNKWN "; break;		}	return(str);	}const char *SSL_alert_type_string_long(int value)	{	value>>=8;	if (value == SSL3_AL_WARNING)		return("warning");	else if (value == SSL3_AL_FATAL)		return("fatal");	else		return("unknown");	}const char *SSL_alert_type_string(int value)	{	value>>=8;	if (value == SSL3_AL_WARNING)		return("W");	else if (value == SSL3_AL_FATAL)		return("F");	else		return("U");	}const char *SSL_alert_desc_string(int value)	{	const char *str;	switch (value & 0xff)		{	case SSL3_AD_CLOSE_NOTIFY:		str="CN"; break;	case SSL3_AD_UNEXPECTED_MESSAGE:	str="UM"; break;	case SSL3_AD_BAD_RECORD_MAC:		str="BM"; break;	case SSL3_AD_DECOMPRESSION_FAILURE:	str="DF"; break;	case SSL3_AD_HANDSHAKE_FAILURE:		str="HF"; break;	case SSL3_AD_NO_CERTIFICATE:		str="NC"; break;	case SSL3_AD_BAD_CERTIFICATE:		str="BC"; break;	case SSL3_AD_UNSUPPORTED_CERTIFICATE:	str="UC"; break;	case SSL3_AD_CERTIFICATE_REVOKED:	str="CR"; break;	case SSL3_AD_CERTIFICATE_EXPIRED:	str="CE"; break;	case SSL3_AD_CERTIFICATE_UNKNOWN:	str="CU"; break;	case SSL3_AD_ILLEGAL_PARAMETER:		str="IP"; break;	case TLS1_AD_DECRYPTION_FAILED:		str="DC"; break;	case TLS1_AD_RECORD_OVERFLOW:		str="RO"; break;	case TLS1_AD_UNKNOWN_CA:		str="CA"; break;	case TLS1_AD_ACCESS_DENIED:		str="AD"; break;	case TLS1_AD_DECODE_ERROR:		str="DE"; break;	case TLS1_AD_DECRYPT_ERROR:		str="CY"; break;	case TLS1_AD_EXPORT_RESTRICTION:	str="ER"; break;	case TLS1_AD_PROTOCOL_VERSION:		str="PV"; break;	case TLS1_AD_INSUFFICIENT_SECURITY:	str="IS"; break;	case TLS1_AD_INTERNAL_ERROR:		str="IE"; break;	case TLS1_AD_USER_CANCELLED:		str="US"; break;	case TLS1_AD_NO_RENEGOTIATION:		str="NR"; break;	default:				str="UK"; break;		}	return(str);	}const char *SSL_alert_desc_string_long(int value)	{	const char *str;	switch (value & 0xff)		{	case SSL3_AD_CLOSE_NOTIFY:		str="close notify";		break;	case SSL3_AD_UNEXPECTED_MESSAGE:		str="unexpected_message";		break;	case SSL3_AD_BAD_RECORD_MAC:		str="bad record mac";		break;	case SSL3_AD_DECOMPRESSION_FAILURE:		str="decompression failure";		break;	case SSL3_AD_HANDSHAKE_FAILURE:		str="handshake failure";		break;	case SSL3_AD_NO_CERTIFICATE:		str="no certificate";		break;	case SSL3_AD_BAD_CERTIFICATE:		str="bad certificate";		break;	case SSL3_AD_UNSUPPORTED_CERTIFICATE:		str="unsupported certificate";		break;	case SSL3_AD_CERTIFICATE_REVOKED:		str="certificate revoked";		break;	case SSL3_AD_CERTIFICATE_EXPIRED:		str="certificate expired";		break;	case SSL3_AD_CERTIFICATE_UNKNOWN:		str="certificate unknown";		break;	case SSL3_AD_ILLEGAL_PARAMETER:		str="illegal parameter";		break;	case TLS1_AD_DECRYPTION_FAILED:		str="decryption failed";		break;	case TLS1_AD_RECORD_OVERFLOW:		str="record overflow";		break;	case TLS1_AD_UNKNOWN_CA:		str="unknown CA";		break;	case TLS1_AD_ACCESS_DENIED:		str="access denied";		break;	case TLS1_AD_DECODE_ERROR:		str="decode error";		break;	case TLS1_AD_DECRYPT_ERROR:		str="decrypt error";		break;	case TLS1_AD_EXPORT_RESTRICTION:		str="export restriction";		break;	case TLS1_AD_PROTOCOL_VERSION:		str="protocol version";		break;	case TLS1_AD_INSUFFICIENT_SECURITY:		str="insufficient security";		break;	case TLS1_AD_INTERNAL_ERROR:		str="internal error";		break;	case TLS1_AD_USER_CANCELLED:		str="user canceled";		break;	case TLS1_AD_NO_RENEGOTIATION:		str="no renegotiation";		break;	default: str="unknown"; break;		}	return(str);	}const char *SSL_rstate_string(const SSL *s)	{	const char *str;	switch (s->rstate)		{	case SSL_ST_READ_HEADER:str="RH"; break;	case SSL_ST_READ_BODY:	str="RB"; break;	case SSL_ST_READ_DONE:	str="RD"; break;	default: str="unknown"; break;		}	return(str);	}

⌨️ 快捷键说明

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