您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ ssl3_free函数代码示例

51自学网 2021-06-03 08:19:35
  C++
这篇教程C++ ssl3_free函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中ssl3_free函数的典型用法代码示例。如果您正苦于以下问题:C++ ssl3_free函数的具体用法?C++ ssl3_free怎么用?C++ ssl3_free使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了ssl3_free函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: dtls1_new

int dtls1_new(SSL *s) {  DTLS1_STATE *d1;  if (!ssl3_new(s)) {    return 0;  }  d1 = OPENSSL_malloc(sizeof *d1);  if (d1 == NULL) {    ssl3_free(s);    return 0;  }  memset(d1, 0, sizeof *d1);  d1->buffered_messages = pqueue_new();  d1->sent_messages = pqueue_new();  if (!d1->buffered_messages || !d1->sent_messages) {    pqueue_free(d1->buffered_messages);    pqueue_free(d1->sent_messages);    OPENSSL_free(d1);    ssl3_free(s);    return 0;  }  s->d1 = d1;  /* Set the version to the highest version for DTLS. This controls the initial   * state of |s->enc_method| and what the API reports as the version prior to   * negotiation.   *   * TODO(davidben): This is fragile and confusing. */  s->version = DTLS1_2_VERSION;  return 1;}
开发者ID:gotomypc,项目名称:tiny-webrtc-gw,代码行数:34,


示例2: dtls1_new

int dtls1_new(SSL *ssl) {  DTLS1_STATE *d1;  if (!ssl3_new(ssl)) {    return 0;  }  d1 = OPENSSL_malloc(sizeof *d1);  if (d1 == NULL) {    ssl3_free(ssl);    return 0;  }  memset(d1, 0, sizeof *d1);  d1->buffered_messages = pqueue_new();  d1->sent_messages = pqueue_new();  if (!d1->buffered_messages || !d1->sent_messages) {    pqueue_free(d1->buffered_messages);    pqueue_free(d1->sent_messages);    OPENSSL_free(d1);    ssl3_free(ssl);    return 0;  }  ssl->d1 = d1;  /* Set the version to the highest supported version.   *   * TODO(davidben): Move this field into |s3|, have it store the normalized   * protocol version, and implement this pre-negotiation quirk in |SSL_version|   * at the API boundary rather than in internal state. */  ssl->version = DTLS1_2_VERSION;  return 1;}
开发者ID:jianglei12138,项目名称:boringssl,代码行数:34,


示例3: dtls1_new

intdtls1_new(SSL *s){	DTLS1_STATE *d1;	if (!ssl3_new(s))		return (0);	if ((d1 = calloc(1, sizeof *d1)) == NULL) {		ssl3_free(s);		return (0);	}	/* d1->handshake_epoch=0; */	d1->unprocessed_rcds.q = pqueue_new();	d1->processed_rcds.q = pqueue_new();	d1->buffered_messages = pqueue_new();	d1->sent_messages = pqueue_new();	d1->buffered_app_data.q = pqueue_new();	if (s->server) {		d1->cookie_len = sizeof(s->d1->cookie);	}	if (!d1->unprocessed_rcds.q || !d1->processed_rcds.q ||	    !d1->buffered_messages || !d1->sent_messages ||	    !d1->buffered_app_data.q) {		if (d1->unprocessed_rcds.q)			pqueue_free(d1->unprocessed_rcds.q);		if (d1->processed_rcds.q)			pqueue_free(d1->processed_rcds.q);		if (d1->buffered_messages)			pqueue_free(d1->buffered_messages);		if (d1->sent_messages)			pqueue_free(d1->sent_messages);		if (d1->buffered_app_data.q)			pqueue_free(d1->buffered_app_data.q);		free(d1);		ssl3_free(s);		return (0);	}	s->d1 = d1;	s->method->ssl_clear(s);	return (1);}
开发者ID:Heratom,项目名称:Firefly-project,代码行数:46,


示例4: tls1_free

voidtls1_free(SSL *s){	if (s == NULL)		return;	free(s->internal->tlsext_session_ticket);	ssl3_free(s);}
开发者ID:bbbrumley,项目名称:openbsd,代码行数:9,


示例5: tls1_free

void tls1_free(SSL *s)	{#ifndef OPENSSL_NO_TLSEXT	if (s->tlsext_session_ticket)		{		OPENSSL_free(s->tlsext_session_ticket);		}#endif /* OPENSSL_NO_TLSEXT */	ssl3_free(s);	}
开发者ID:matti,项目名称:asuswrt-merlin,代码行数:10,


示例6: dtls1_free

void dtls1_free(SSL *ssl) {  ssl3_free(ssl);  if (ssl == NULL || ssl->d1 == NULL) {    return;  }  dtls_clear_incoming_messages(ssl);  dtls_clear_outgoing_messages(ssl);  OPENSSL_free(ssl->d1);  ssl->d1 = NULL;}
开发者ID:eggyo,项目名称:eggyo-node,代码行数:13,


示例7: dtls1_free

void dtls1_free(SSL *s){    DTLS_RECORD_LAYER_free(&s->rlayer);    ssl3_free(s);    dtls1_clear_queues(s);    pqueue_free(s->d1->buffered_messages);    pqueue_free(s->d1->sent_messages);    OPENSSL_free(s->d1);    s->d1 = NULL;}
开发者ID:nicholasmsanford,项目名称:openssl,代码行数:14,


示例8: dtls1_free

void dtls1_free(SSL *s)	{	ssl3_free(s);	dtls1_clear_queues(s);    pqueue_free(s->d1->unprocessed_rcds.q);    pqueue_free(s->d1->processed_rcds.q);    pqueue_free(s->d1->buffered_messages);	pqueue_free(s->d1->sent_messages);	pqueue_free(s->d1->buffered_app_data.q);	OPENSSL_free(s->d1);	}
开发者ID:735579768,项目名称:droidVncServer,代码行数:14,


示例9: dtls1_free

void dtls1_free(SSL *s)	{    pitem *item = NULL;    hm_fragment *frag = NULL;	ssl3_free(s);    while( (item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL)        {        OPENSSL_free(item->data);        pitem_free(item);        }    pqueue_free(s->d1->unprocessed_rcds.q);    while( (item = pqueue_pop(s->d1->processed_rcds.q)) != NULL)        {        OPENSSL_free(item->data);        pitem_free(item);        }    pqueue_free(s->d1->processed_rcds.q);    while( (item = pqueue_pop(s->d1->buffered_messages)) != NULL)        {        frag = (hm_fragment *)item->data;        OPENSSL_free(frag->fragment);        OPENSSL_free(frag);        pitem_free(item);        }    pqueue_free(s->d1->buffered_messages);    while ( (item = pqueue_pop(s->d1->sent_messages)) != NULL)        {        frag = (hm_fragment *)item->data;        OPENSSL_free(frag->fragment);        OPENSSL_free(frag);        pitem_free(item);        }	pqueue_free(s->d1->sent_messages);	while ( (item = pqueue_pop(s->d1->buffered_app_data.q)) != NULL)		{		frag = (hm_fragment *)item->data;		OPENSSL_free(frag->fragment);		OPENSSL_free(frag);		pitem_free(item);		}	pqueue_free(s->d1->buffered_app_data.q);	OPENSSL_free(s->d1);	}
开发者ID:dienbk7x,项目名称:NetmfSTM32,代码行数:50,


示例10: dtls1_free

void dtls1_free(SSL *s) {  ssl3_free(s);  if (s == NULL || s->d1 == NULL) {    return;  }  dtls1_clear_queues(s);  pqueue_free(s->d1->buffered_messages);  pqueue_free(s->d1->sent_messages);  OPENSSL_free(s->d1);  s->d1 = NULL;}
开发者ID:friends110110,项目名称:boringssl,代码行数:15,


示例11: dtls1_free

void dtls1_free(SSL *s)	{    pitem *item = NULL;    hm_fragment *frag = NULL;	ssl3_free(s);    while( (item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL)        {        OPENSSL_free(item->data);        pitem_free(item);        }    pqueue_free(s->d1->unprocessed_rcds.q);    while( (item = pqueue_pop(s->d1->processed_rcds.q)) != NULL)        {        OPENSSL_free(item->data);        pitem_free(item);        }    pqueue_free(s->d1->processed_rcds.q);    while( (item = pqueue_pop(s->d1->buffered_messages)) != NULL)        {        frag = (hm_fragment *)item->data;        OPENSSL_free(frag->fragment);        OPENSSL_free(frag);        pitem_free(item);        }    pqueue_free(s->d1->buffered_messages);    while ( (item = pqueue_pop(s->d1->sent_messages)) != NULL)        {        frag = (hm_fragment *)item->data;        OPENSSL_free(frag->fragment);        OPENSSL_free(frag);        pitem_free(item);        }	pqueue_free(s->d1->sent_messages);	pq_64bit_free(&(s->d1->bitmap.map));	pq_64bit_free(&(s->d1->bitmap.max_seq_num));	pq_64bit_free(&(s->d1->next_bitmap.map));	pq_64bit_free(&(s->d1->next_bitmap.max_seq_num));	OPENSSL_free(s->d1);	}
开发者ID:siredblood,项目名称:tree-bumpkin-project,代码行数:47,


示例12: dtls1_free

void dtls1_free(SSL *s)	{	ssl3_free(s);	dtls1_clear_queues(s);    pqueue_free(s->d1->unprocessed_rcds.q);    pqueue_free(s->d1->processed_rcds.q);    pqueue_free(s->d1->buffered_messages);	pqueue_free(s->d1->sent_messages);	pqueue_free(s->d1->buffered_app_data.q);		pq_64bit_free(&(s->d1->bitmap.map));	pq_64bit_free(&(s->d1->bitmap.max_seq_num));	pq_64bit_free(&(s->d1->next_bitmap.map));	pq_64bit_free(&(s->d1->next_bitmap.max_seq_num));	OPENSSL_free(s->d1);	}
开发者ID:RafaelRMachado,项目名称:MinnowBoard,代码行数:20,


示例13: dtls1_free

voiddtls1_free(SSL *s){	if (s == NULL)		return;	ssl3_free(s);	dtls1_clear_queues(s);	pqueue_free(D1I(s)->unprocessed_rcds.q);	pqueue_free(D1I(s)->processed_rcds.q);	pqueue_free(D1I(s)->buffered_messages);	pqueue_free(s->d1->sent_messages);	pqueue_free(D1I(s)->buffered_app_data.q);	explicit_bzero(s->d1->internal, sizeof(*s->d1->internal));	free(s->d1->internal);	explicit_bzero(s->d1, sizeof(*s->d1));	free(s->d1);	s->d1 = NULL;}
开发者ID:2trill2spill,项目名称:nextgen,代码行数:24,


示例14: tls1_free

void tls1_free(SSL *s)	{	ssl3_free(s);	}
开发者ID:millken,项目名称:zhuxianB30,代码行数:4,


示例15: ssl23_get_client_hello

//.........这里部分代码省略.........		*(d++)=1;		*(d++)=0;				i = (d-(unsigned char *)s->init_buf->data) - 4;		l2n3((long)i, d_len);		/* get the data reused from the init_buf */		s->s3->tmp.reuse_message=1;		s->s3->tmp.message_type=SSL3_MT_CLIENT_HELLO;		s->s3->tmp.message_size=i;		}	/* imaginary new state (for program structure): */	/* s->state = SSL23_SR_CLNT_HELLO_C */	if (type == 1)		{#ifdef OPENSSL_NO_SSL2		SSLerr(SSL_F_SSL23_GET_CLIENT_HELLO,SSL_R_UNSUPPORTED_PROTOCOL);		goto err;#else		/* we are talking sslv2 */		/* we need to clean up the SSLv3/TLSv1 setup and put in the		 * sslv2 stuff. */		if (s->s2 == NULL)			{			if (!ssl2_new(s))				goto err;			}		else			ssl2_clear(s);		if (s->s3 != NULL) ssl3_free(s);		if (!BUF_MEM_grow_clean(s->init_buf,			SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER))			{			goto err;			}		s->state=SSL2_ST_GET_CLIENT_HELLO_A;		if (s->options & SSL_OP_NO_TLSv1 && s->options & SSL_OP_NO_SSLv3)			s->s2->ssl2_rollback=0;		else			/* reject SSL 2.0 session if client supports SSL 3.0 or TLS 1.0			 * (SSL 3.0 draft/RFC 2246, App. E.2) */			s->s2->ssl2_rollback=1;		/* setup the n bytes we have read so we get them from		 * the sslv2 buffer */		s->rstate=SSL_ST_READ_HEADER;		s->packet_length=n;		s->packet= &(s->s2->rbuf[0]);		memcpy(s->packet,buf,n);		s->s2->rbuf_left=n;		s->s2->rbuf_offs=0;		s->method=SSLv2_server_method();		s->handshake_func=s->method->ssl_accept;#endif		}	if ((type == 2) || (type == 3))		{		/* we have SSLv3/TLSv1 (type 2: SSL2 style, type 3: SSL3/TLS style) */
开发者ID:1310701102,项目名称:sl4a,代码行数:67,



注:本文中的ssl3_free函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ ssl3_init_finished_mac函数代码示例
C++ ssl3_finish_mac函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。