mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
silenced compiler warning
This commit is contained in:
parent
be72826917
commit
4ea6beae06
@ -39,7 +39,7 @@ static tls_optmap_t optmap[] = {
|
||||
#endif
|
||||
|
||||
void checkOpt( TlsOptions::tls_option opt, opttype type ){
|
||||
if ( opt >= sizeof(optmap) ){
|
||||
if ( opt < TlsOptions::CACERTFILE || opt >= TlsOptions::LASTOPT ){
|
||||
throw( LDAPException( LDAP_PARAM_ERROR, "unknown Option" ) );
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,8 @@ class TlsOptions {
|
||||
RANDOM_FILE,
|
||||
CRLCHECK,
|
||||
DHFILE,
|
||||
NEWCTX
|
||||
NEWCTX,
|
||||
LASTOPT /* dummy */
|
||||
};
|
||||
|
||||
TlsOptions( LDAP* ld=NULL );
|
||||
|
Loading…
Reference in New Issue
Block a user