/**
* @file netssl.h
*
* @brief SSL driver for NetEndPoint (connection setup)
* NetSslEndPoint - a TCP subclass of NetTcpEndPoint
*
* Threading: underlying SSL library contains threading
*
* @invariants:
*
* Copyright (c) 2011 Perforce Software
* Confidential. All Rights Reserved.
* @author Wendy Heffner
*
* Creation Date: August 19, 2011
*/
/*
* These headers are required to be included before
* including netsslendpoint.h
*
* extern "C" { // OpenSSL
*
* # include "openssl/bio.h"
* # include "openssl/ssl.h"
* # include "openssl/err.h"
*
* }
*
* # include "netsupport.h"
* # include "netport.h"
* # include "netaddrinfo.h"
* # include "netportparser.h"
* # include "netconnect.h"
* # include "nettcpendpoint.h"
* # include "nettcptransport.h"
*/
#ifdef USE_SSL
class NetSslEndPoint : public NetTcpEndPoint
{
public:
NetSslEndPoint( Error *e )
: NetTcpEndPoint(e)
{
serverCredentials = NULL;
}
virtual ~NetSslEndPoint()
{
if ( serverCredentials )
delete serverCredentials;
}
void Listen( Error *e );
void ListenCheck( Error *e );
NetTransport * Connect( Error *e );
NetTransport * Accept( Error *e );
virtual void GetMyFingerprint(StrBuf &value);
virtual void GetExpiration( StrBuf &buf );
private:
/*
* serverCredentials only used if this is a server side
* NetSslEndpoint, otherwise this is NULL. Client-side
* credentials are NetSslTransport data members instead.
*/
NetSslCredentials *serverCredentials;
} ;
# endif //USE_SSL
# |
Change |
User |
Description |
Committed |
|
#1
|
15902 |
Matt Attaway |
A second renaming that I will not obliterate as a badge of shame |
|
|
//guest/perforce_software/p4/2014_1/net/netsslendpoint.h |
#1
|
15901 |
Matt Attaway |
Clean up code to fit modern Workshop naming standards |
|
|
//guest/perforce_software/p4/2014.1/net/netsslendpoint.h |
#1
|
12188 |
Matt Attaway |
Move 'main' p4 into a release specific directory in prep for new releases |
|
|
//guest/perforce_software/p4/net/netsslendpoint.h |
#1
|
9129 |
Matt Attaway |
Initial commit of the 2014.1 p4/p4api source code |
|
|