A brief file description. More...
#include "ink_config.h"
#include "P_Net.h"
#include "P_SSLNextProtocolSet.h"
#include "P_SSLUtils.h"
Go to the source code of this file.
Defines | |
#define | SSL_READ_ERROR_NONE 0 |
#define | SSL_READ_ERROR 1 |
#define | SSL_READ_READY 2 |
#define | SSL_READ_COMPLETE 3 |
#define | SSL_READ_WOULD_BLOCK 4 |
#define | SSL_READ_EOS 5 |
#define | SSL_HANDSHAKE_WANT_READ 6 |
#define | SSL_HANDSHAKE_WANT_WRITE 7 |
#define | SSL_HANDSHAKE_WANT_ACCEPT 8 |
#define | SSL_HANDSHAKE_WANT_CONNECT 9 |
#define | SSL_WRITE_WOULD_BLOCK 10 |
Functions | |
static SSL * | make_ssl_connection (SSL_CTX *ctx, SSLNetVConnection *netvc) |
static void | debug_certificate_name (const char *msg, X509_NAME *name) |
static int | do_SSL_write (SSL *ssl, void *buf, int size) |
static int | ssl_read_from_net (SSLNetVConnection *sslvc, EThread *lthread, int64_t &ret) |
Variables | |
ClassAllocator< SSLNetVConnection > | sslNetVCAllocator ("sslNetVCAllocator") |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file SSLNetVConnection.cc.
#define SSL_HANDSHAKE_WANT_ACCEPT 8 |
Definition at line 36 of file SSLNetVConnection.cc.
Referenced by SSLNetVConnection::net_read_io().
#define SSL_HANDSHAKE_WANT_CONNECT 9 |
Definition at line 37 of file SSLNetVConnection.cc.
Referenced by SSLNetVConnection::net_read_io().
#define SSL_HANDSHAKE_WANT_READ 6 |
Definition at line 34 of file SSLNetVConnection.cc.
Referenced by SSLNetVConnection::net_read_io().
#define SSL_HANDSHAKE_WANT_WRITE 7 |
Definition at line 35 of file SSLNetVConnection.cc.
Referenced by SSLNetVConnection::net_read_io().
#define SSL_READ_COMPLETE 3 |
Definition at line 31 of file SSLNetVConnection.cc.
Referenced by SSLNetVConnection::net_read_io().
#define SSL_READ_EOS 5 |
Definition at line 33 of file SSLNetVConnection.cc.
Referenced by SSLNetVConnection::net_read_io().
#define SSL_READ_ERROR 1 |
Definition at line 29 of file SSLNetVConnection.cc.
Referenced by SSLNetVConnection::net_read_io().
#define SSL_READ_ERROR_NONE 0 |
Definition at line 28 of file SSLNetVConnection.cc.
Referenced by SSLNetVConnection::net_read_io().
#define SSL_READ_READY 2 |
Definition at line 30 of file SSLNetVConnection.cc.
Referenced by SSLNetVConnection::net_read_io().
#define SSL_READ_WOULD_BLOCK 4 |
Definition at line 32 of file SSLNetVConnection.cc.
Referenced by SSLNetVConnection::net_read_io().
#define SSL_WRITE_WOULD_BLOCK 10 |
Definition at line 38 of file SSLNetVConnection.cc.
Referenced by SSLNetVConnection::net_read_io().
static void debug_certificate_name | ( | const char * | msg, | |
X509_NAME * | name | |||
) | [static] |
Definition at line 60 of file SSLNetVConnection.cc.
References Debug.
Referenced by SSLNetVConnection::sslClientHandShakeEvent(), and SSLNetVConnection::sslServerHandShakeEvent().
static int do_SSL_write | ( | SSL * | ssl, | |
void * | buf, | |||
int | size | |||
) | [inline, static] |
Definition at line 84 of file SSLNetVConnection.cc.
Referenced by SSLNetVConnection::load_buffer_and_write().
static SSL* make_ssl_connection | ( | SSL_CTX * | ctx, | |
SSLNetVConnection * | netvc | |||
) | [static] |
Definition at line 47 of file SSLNetVConnection.cc.
References UnixNetVConnection::get_socket(), and likely.
Referenced by SSLNetVConnection::sslStartHandShake().
static int ssl_read_from_net | ( | SSLNetVConnection * | sslvc, | |
EThread * | lthread, | |||
int64_t & | ret | |||
) | [static] |
Definition at line 102 of file SSLNetVConnection.cc.
References VIO::buffer, Debug, IOBufferBlock::end(), MIOBuffer::fill(), MIOBuffer::first_write_block(), ink_assert, VIO::ndone, UnixNetVConnection::netActivity(), IOBufferBlock::next, VIO::ntodo(), UnixNetVConnection::read, SSLNetVConnection::ssl, ssl_error_ssl, ssl_error_syscall, ssl_error_want_read, ssl_error_want_write, ssl_error_want_x509_lookup, ssl_error_zero_return, SSL_INCREMENT_DYN_STAT, SSLDebugBufferPrint(), NetState::vio, IOBufferBlock::write_avail(), and MIOBufferAccessor::writer().
Referenced by SSLNetVConnection::net_read_io().
ClassAllocator<SSLNetVConnection> sslNetVCAllocator("sslNetVCAllocator") |
Referenced by SSLNetProcessor::allocate_vc(), and SSLNetVConnection::free().