这篇教程C++ BIO_callback_ctrl函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中BIO_callback_ctrl函数的典型用法代码示例。如果您正苦于以下问题:C++ BIO_callback_ctrl函数的具体用法?C++ BIO_callback_ctrl怎么用?C++ BIO_callback_ctrl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了BIO_callback_ctrl函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: linebreak_callback_ctrlstatic 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,
示例2: bio_zlib_callback_ctrlstatic 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,
示例3: bio_zlib_callback_ctrlstatic longbio_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,
示例4: bio_rdp_tls_callback_ctrlstatic 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,
示例5: dwrap_callback_ctrlstatic 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,
示例6: replace_callback_ctrlstatic 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,
示例7: t_callback_ctrllong 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,
示例8: transport_connect_tlsBOOL 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,
示例9: b64_callback_ctrlstatic 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,
示例10: crlfbuffer_callback_ctrlstatic 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,
示例11: nullf_callback_ctrlstatic 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,
示例12: ber_callback_ctrlstatic 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,
示例13: ssl_callback_ctrlstatic 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,
示例14: enc_callback_ctrlstatic 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,
示例15: b64_callback_ctrlstatic 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,
示例16: ssl_callback_ctrlstatic 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,
示例17: tap_callback_ctrlstatic 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,
示例18: proxy_callback_ctrllong 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,
示例19: asn1_bio_callback_ctrlstatic 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,
示例20: bsegs_callback_ctrlstatic 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,
注:本文中的BIO_callback_ctrl函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ BIO_copy_next_retry函数代码示例 C++ BIOS_start函数代码示例 |