LibreOffice Module ucb (master)  1
Classes | Namespaces | Macros | Typedefs | Functions
NeonSession.cxx File Reference
#include <unordered_map>
#include <vector>
#include <string.h>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <osl/time.h>
#include <ne_socket.h>
#include <ne_auth.h>
#include <ne_redirect.h>
#include <ne_ssl.h>
#include <ne_compress.h>
#include <libxml/parser.h>
#include <comphelper/sequence.hxx>
#include <ucbhelper/simplecertificatevalidationrequest.hxx>
#include "DAVAuthListener.hxx"
#include "NeonTypes.hxx"
#include "NeonSession.hxx"
#include "NeonInputStream.hxx"
#include "NeonPropFindRequest.hxx"
#include "NeonHeadRequest.hxx"
#include "NeonUri.hxx"
#include "LinkSequence.hxx"
#include "UCBDeadPropertyValue.hxx"
#include <officecfg/Inet.hxx>
#include <com/sun/star/io/BufferSizeExceededException.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/io/NotConnectedException.hpp>
#include <com/sun/star/xml/crypto/XSecurityEnvironment.hpp>
#include <com/sun/star/security/XCertificate.hpp>
#include <com/sun/star/security/CertificateValidity.hpp>
#include <com/sun/star/security/CertificateContainerStatus.hpp>
#include <com/sun/star/security/CertificateContainer.hpp>
#include <com/sun/star/security/XCertificateContainer.hpp>
#include <com/sun/star/ucb/Lock.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/xml/crypto/SEInitializer.hpp>
Include dependency graph for NeonSession.cxx:

Go to the source code of this file.

Classes

struct  RequestData
 
struct  equalPtr
 
struct  hashPtr
 
struct  NeonRequestContext
 

Namespaces

 webdav_ucp
 

Macros

#define EOL   "\r\n"
 

Typedefs

typedef std::unordered_map< ne_request *, RequestData, hashPtr, equalPtrRequestDataMap
 

Functions

static sal_uInt16 makeStatusCode (const OUString &rStatusText)
 
static bool noKeepAlive (const uno::Sequence< beans::NamedValue > &rFlags)
 
static int NeonSession_ResponseBlockReader (void *inUserData, const char *inBuf, size_t inLen)
 
static int NeonSession_ResponseBlockWriter (void *inUserData, const char *inBuf, size_t inLen)
 
static int NeonSession_NeonAuth (void *inUserData, const char *inRealm, int attempt, char *inoutUserName, char *inoutPassWord)
 
static int NeonSession_CertificationNotify (void *userdata, int, const ne_ssl_certificate *cert)
 
static void NeonSession_PreSendRequest (ne_request *req, void *userdata, ne_buffer *headers)
 
osl::Mutex & webdav_ucp::getGlobalNeonMutex ()
 

Macro Definition Documentation

#define EOL   "\r\n"

Definition at line 79 of file NeonSession.cxx.

Referenced by webdav_ucp::NeonSession::PreSendRequest().

Typedef Documentation

typedef std::unordered_map< ne_request*, RequestData, hashPtr, equalPtr> RequestDataMap

Definition at line 117 of file NeonSession.cxx.

Function Documentation

static sal_uInt16 makeStatusCode ( const OUString &  rStatusText)
static

Definition at line 119 of file NeonSession.cxx.

References nPos, and SAL_WARN.

Referenced by webdav_ucp::NeonSession::HandleError().

static int NeonSession_CertificationNotify ( void userdata,
int  ,
const ne_ssl_certificate *  cert 
)
static
static int NeonSession_NeonAuth ( void inUserData,
const char *  inRealm,
int  attempt,
char *  inoutUserName,
char *  inoutPassWord 
)
static

Definition at line 226 of file NeonSession.cxx.

References webdav_ucp::NeonSession::NeonAuth().

Referenced by webdav_ucp::NeonSession::Init().

static void NeonSession_PreSendRequest ( ne_request *  req,
void userdata,
ne_buffer *  headers 
)
static

Definition at line 536 of file NeonSession.cxx.

References webdav_ucp::NeonSession::PreSendRequest().

Referenced by webdav_ucp::NeonSession::Init().

static int NeonSession_ResponseBlockReader ( void inUserData,
const char *  inBuf,
size_t  inLen 
)
static

Definition at line 199 of file NeonSession.cxx.

References NeonRequestContext::ResponseBlockReader().

Referenced by webdav_ucp::NeonSession::GET().

static int NeonSession_ResponseBlockWriter ( void inUserData,
const char *  inBuf,
size_t  inLen 
)
static

Definition at line 213 of file NeonSession.cxx.

References NeonRequestContext::ResponseBlockWriter().

static bool noKeepAlive ( const uno::Sequence< beans::NamedValue > &  rFlags)
static

Definition at line 140 of file NeonSession.cxx.

Referenced by webdav_ucp::NeonSession::Init().