当前位置: 首页>>代码示例>>C++>>正文


C++ BIO_callback_ctrl函数代码示例

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


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


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