Back to index

openldap  2.4.31
Classes | Typedefs | Enumerations | Functions | Variables
TlsOptions.cpp File Reference
#include "TlsOptions.h"
#include "LDAPException.h"

Go to the source code of this file.

Classes

struct  tls_optmap

Typedefs

typedef struct tls_optmap tls_optmap_t

Enumerations

enum  opttype { INT = 0, STRING, OTHER }

Functions

static void checkOpt (TlsOptions::tls_option opt, opttype type)

Variables

static tls_optmap_t optmap []

Class Documentation

struct tls_optmap

Definition at line 16 of file TlsOptions.cpp.

Class Members
int optval
opttype type

Typedef Documentation

typedef struct tls_optmap tls_optmap_t

Enumeration Type Documentation

enum opttype
Enumerator:
INT 
STRING 
OTHER 

Definition at line 10 of file TlsOptions.cpp.

             {
    INT=0,
    STRING,
    OTHER
};

Function Documentation

static void checkOpt ( TlsOptions::tls_option  opt,
opttype  type 
) [static]

Definition at line 41 of file TlsOptions.cpp.

                                                               {
    if ( opt < TlsOptions::CACERTFILE || opt >= TlsOptions::LASTOPT ){
        throw( LDAPException( LDAP_PARAM_ERROR, "unknown Option" ) );
    }

    if ( optmap[opt].type != type ){
        throw( LDAPException( LDAP_PARAM_ERROR, "not a string option" ) );
    }
}

Here is the caller graph for this function:


Variable Documentation

tls_optmap_t optmap[] [static]