Defines | Functions | Variables

SSLNetVConnection.cc File Reference

A brief file description. More...

#include "ink_config.h"
#include "P_Net.h"
#include "P_SSLNextProtocolSet.h"
#include "P_SSLUtils.h"
Include dependency graph for SSLNetVConnection.cc:

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< SSLNetVConnectionsslNetVCAllocator ("sslNetVCAllocator")

Detailed Description

A brief file description.

License

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 Documentation

#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().


Function Documentation

static void debug_certificate_name ( const char *  msg,
X509_NAME *  name 
) [static]
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]

Variable Documentation