• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ BIO_callback_ctrl函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: linebreak_callback_ctrl

static long linebreak_callback_ctrl(BIO *b, int cmd, bio_info_cb *cb)
{
  if (b->next_bio == NULL)
    return 0;
  else
    return BIO_callback_ctrl(b->next_bio, cmd, cb);
}
开发者ID:dragonresearch,项目名称:rpki.net,代码行数:7,代码来源:bio_f_linebreak.c


示例2: bio_zlib_callback_ctrl

static long bio_zlib_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
{
    BIO *next = BIO_next(b);
    if (next == NULL)
        return 0;
    return BIO_callback_ctrl(next, cmd, fp);
}
开发者ID:qloong,项目名称:openssl,代码行数:7,代码来源:c_zlib.c


示例3: bio_zlib_callback_ctrl

static long
bio_zlib_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
{
	if (!b->next_bio)
		return 0;
	return BIO_callback_ctrl(b->next_bio, cmd, fp);
}
开发者ID:soundsrc,项目名称:git-lfs-server,代码行数:7,代码来源:c_zlib.c


示例4: bio_rdp_tls_callback_ctrl

static long bio_rdp_tls_callback_ctrl(BIO* bio, int cmd, bio_info_cb* fp)
{
	int status = 0;
	BIO_RDP_TLS* tls;

	if (!bio)
		return 0;

	tls = (BIO_RDP_TLS*) BIO_get_data(bio);

	if (!tls)
		return 0;

	switch (cmd)
	{
		case BIO_CTRL_SET_CALLBACK:
			SSL_set_info_callback(tls->ssl, (void (*)(const SSL*, int, int)) fp);
			status = 1;
			break;

		default:
			status = BIO_callback_ctrl(SSL_get_rbio(tls->ssl), cmd, fp);
			break;
	}

	return status;
}
开发者ID:dcatonR1,项目名称:FreeRDP,代码行数:27,代码来源:tls.c


示例5: dwrap_callback_ctrl

static long dwrap_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp) {  // NOLINT(runtime/int)
  long ret;  // NOLINT(runtime/int)

  ret = BIO_callback_ctrl(b->next_bio, cmd, fp);

  return ret;
}
开发者ID:thehunmonkgroup,项目名称:licode,代码行数:7,代码来源:bf_dwrap.c


示例6: replace_callback_ctrl

static long replace_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp) {
   //DEBUG_MSG(D_DEBUG, "%s", __FUNCTION__);

   if (b->next_bio == NULL)
      return (0);

   return (BIO_callback_ctrl(b->next_bio, cmd, fp));
}
开发者ID:BwRy,项目名称:vector-ipa,代码行数:8,代码来源:bio_replacer.c


示例7: t_callback_ctrl

long t_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
{
	//printf("t_callback_ctrl %d\n",cmd);

    if (b->next_bio == NULL)
        return (0);

    return BIO_callback_ctrl(b->next_bio, cmd, fp);
}
开发者ID:luzi82,项目名称:codelog.crypto,代码行数:9,代码来源:c008.cpp


示例8: transport_connect_tls

BOOL transport_connect_tls(rdpTransport* transport)
{
	int tlsStatus;
	rdpTls* tls = NULL;
	rdpContext* context = transport->context;
	rdpSettings* settings = transport->settings;

	if (!(tls = tls_new(settings)))
		return FALSE;

	transport->tls = tls;

	if (transport->GatewayEnabled)
		transport->layer = TRANSPORT_LAYER_TSG_TLS;
	else
		transport->layer = TRANSPORT_LAYER_TLS;

	tls->hostname = settings->ServerHostname;
	tls->port = settings->ServerPort;

	if (tls->port == 0)
		tls->port = 3389;

	tls->isGatewayTransport = FALSE;
	tlsStatus = tls_connect(tls, transport->frontBio);

	if (tlsStatus < 1)
	{
		if (tlsStatus < 0)
		{
			if (!freerdp_get_last_error(context))
				freerdp_set_last_error(context, FREERDP_ERROR_TLS_CONNECT_FAILED);
		}
		else
		{
			if (!freerdp_get_last_error(context))
				freerdp_set_last_error(context, FREERDP_ERROR_CONNECT_CANCELLED);
		}

		return FALSE;
	}

	transport->frontBio = tls->bio;

	BIO_callback_ctrl(tls->bio, BIO_CTRL_SET_CALLBACK, (bio_info_cb*) transport_ssl_cb);
	SSL_set_app_data(tls->ssl, transport);

	if (!transport->frontBio)
	{
		WLog_ERR(TAG, "unable to prepend a filtering TLS bio");
		return FALSE;
	}

	return TRUE;
}
开发者ID:Graf3x,项目名称:FreeRDP,代码行数:55,代码来源:transport.c


示例9: b64_callback_ctrl

static long b64_callback_ctrl(BIO *b, int cmd, bio_info_cb fp) {
  long ret = 1;

  if (b->next_bio == NULL) {
    return 0;
  }
  switch (cmd) {
    default:
      ret = BIO_callback_ctrl(b->next_bio, cmd, fp);
      break;
  }
  return ret;
}
开发者ID:0x64616E69656C,项目名称:boringssl,代码行数:13,代码来源:base64_bio.c


示例10: crlfbuffer_callback_ctrl

static long crlfbuffer_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
	{
	long ret=1;

	if (b->next_bio == NULL) return(0);
	//switch (cmd)
		//{
	//default:
		ret=BIO_callback_ctrl(b->next_bio,cmd,fp);
		//break;
		//}
	return(ret);
	}
开发者ID:SpareSimian,项目名称:mulberry-main,代码行数:13,代码来源:bf_crlfbuf.c


示例11: nullf_callback_ctrl

static long nullf_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
{
    long ret = 1;

    if (b->next_bio == NULL)
        return 0;
    switch (cmd) {
    default:
        ret = BIO_callback_ctrl(b->next_bio, cmd, fp);
        break;
    }
    return ret;
}
开发者ID:nmathewson,项目名称:openssl,代码行数:13,代码来源:bf_null.c


示例12: ber_callback_ctrl

static long ber_callback_ctrl(BIO *b, int cmd, void *(*fp)())
	{
	long ret=1;

	if (b->next_bio == NULL) return(0);
	switch (cmd)
		{
	default:
		ret=BIO_callback_ctrl(b->next_bio,cmd,fp);
		break;
		}
	return(ret);
	}
开发者ID:RafaelRMachado,项目名称:MinnowBoard,代码行数:13,代码来源:bio_ber.c


示例13: ssl_callback_ctrl

static long ssl_callback_ctrl(BIO *bio, int cmd, bio_info_cb fp) {
  SSL *ssl = bio->ptr;
  if (ssl == NULL) {
    return 0;
  }

  switch (cmd) {
    case BIO_CTRL_SET_CALLBACK:
      return -1;

    default:
      return BIO_callback_ctrl(ssl->rbio, cmd, fp);
  }
}
开发者ID:alagoutte,项目名称:proto-quic,代码行数:14,代码来源:bio_ssl.c


示例14: enc_callback_ctrl

static long enc_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
{
    long ret = 1;
    BIO *next = BIO_next(b);

    if (next == NULL)
        return (0);
    switch (cmd) {
    default:
        ret = BIO_callback_ctrl(next, cmd, fp);
        break;
    }
    return (ret);
}
开发者ID:Muffo,项目名称:openssl,代码行数:14,代码来源:bio_enc.c


示例15: b64_callback_ctrl

static long b64_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
{
    long ret = 1;
    BIO *next = BIO_next(b);

    if (next == NULL)
        return 0;
    switch (cmd) {
    default:
        ret = BIO_callback_ctrl(next, cmd, fp);
        break;
    }
    return ret;
}
开发者ID:cedral,项目名称:openssl,代码行数:14,代码来源:bio_b64.c


示例16: ssl_callback_ctrl

static long ssl_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
	{
	SSL *ssl;
	BIO_SSL *bs;
	long ret=1;

	bs=(BIO_SSL *)b->ptr;
	ssl=bs->ssl;
	switch (cmd)
		{
	case BIO_CTRL_SET_CALLBACK:
		{
		/* FIXME: setting this via a completely different prototype
		   seems like a crap idea */
		SSL_set_info_callback(ssl,(void (*)(const SSL *,int,int))fp);
		}
		break;
	default:
		ret=BIO_callback_ctrl(ssl->rbio,cmd,fp);
		break;
		}
	return(ret);
	}
开发者ID:neominds,项目名称:ric13351,代码行数:23,代码来源:bio_ssl.c


示例17: tap_callback_ctrl

static long tap_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
{
    return BIO_callback_ctrl(BIO_next(b), cmd, fp);
}
开发者ID:IIJ-NetBSD,项目名称:netbsd-src,代码行数:4,代码来源:tap_bio.c


示例18: proxy_callback_ctrl

long proxy_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
{
  if (!b->next_bio)
    return 0;
  return BIO_callback_ctrl(b->next_bio, cmd, fp);
}
开发者ID:AlexeySalmin,项目名称:tlsdate,代码行数:6,代码来源:proxy-bio-plan9.c


示例19: asn1_bio_callback_ctrl

static long asn1_bio_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
{
    if (b->next_bio == NULL)
        return (0);
    return BIO_callback_ctrl(b->next_bio, cmd, fp);
}
开发者ID:AnClark,项目名称:openssl,代码行数:6,代码来源:bio_asn1.c


示例20: bsegs_callback_ctrl

static long bsegs_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
{
	return BIO_callback_ctrl(b->next_bio, cmd, fp);
}
开发者ID:n1tehawk,项目名称:mupdf,代码行数:4,代码来源:pdf-pkcs7.c



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ BIO_copy_next_retry函数代码示例发布时间:2022-05-30
下一篇:
C++ BIOS_start函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap