MCPcopy Create free account
hub / github.com/acl-dev/acl / handle_ssl_handshake

Method handle_ssl_handshake

lib_acl_cpp/src/http/http_aclient.cpp:438–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438bool http_aclient::handle_ssl_handshake()
439{
440 // �������ǵ�һ�ν��� SSL ���ֽ׶ε� IO ����
441 sslbase_io* ssl_io = (sslbase_io*) conn_->get_hook();
442 if (ssl_io == NULL) {
443 logger_error("no ssl_io hooked!");
444 return false;
445 }
446
447 if (!ssl_io->handshake()) {
448 logger_error("ssl handshake error!");
449 return false;
450 }
451
452 // SSL ���ֳɹ��󣬻ص����ӳɹ�������֪ͨ������Է�����������
453 if (ssl_io->handshake_ok()) {
454 conn_->del_read_callback(this);
455 conn_->disable_read();
456 return this->on_connect();
457 }
458
459 // ���� SSL ���ֹ���
460 return true;
461}
462
463bool http_aclient::read_callback(char* data, int len)
464{

Callers

nothing calls this directly

Calls 5

del_read_callbackMethod · 0.80
disable_readMethod · 0.80
get_hookMethod · 0.45
handshakeMethod · 0.45
on_connectMethod · 0.45

Tested by

no test coverage detected