]> git.sur5r.net Git - openldap/commitdiff
s/tls/starttls/
authorKurt Zeilenga <kurt@openldap.org>
Tue, 10 Jun 2003 18:33:44 +0000 (18:33 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 10 Jun 2003 18:33:44 +0000 (18:33 +0000)
s/master/provider/

servers/slapd/config.c
servers/slapd/slap.h

index e3b04a9023ea7facf008feecd52bce6bb7da320b..1efb7070b56dc5e2e2e6a51b103ec00e58282774 100644 (file)
@@ -2748,9 +2748,9 @@ parse_syncrepl_line(
                        val = cargv[ i ] + sizeof( IDSTR );
                        si->id = atoi( val );
                        gots |= GOT_ID;
-               } else if ( !strncasecmp( cargv[ i ], MASTERSTR,
-                                       sizeof( MASTERSTR ) - 1 )) {
-                       val = cargv[ i ] + sizeof( MASTERSTR );
+               } else if ( !strncasecmp( cargv[ i ], PROVIDERSTR,
+                                       sizeof( PROVIDERSTR ) - 1 )) {
+                       val = cargv[ i ] + sizeof( PROVIDERSTR );
                        si->masteruri = ch_strdup( val );
                        if (( hp = strchr( val, ':' )) != NULL ) {
                                if ( *( hp + 1 ) == '/' ) {
@@ -2778,9 +2778,11 @@ parse_syncrepl_line(
                        si->master_bv[1].bv_len = 0;
                        si->master_bv[1].bv_val = NULL;
                        gots |= GOT_HOST;
-               } else if ( !strncasecmp( cargv[ i ], TLSSTR, sizeof( TLSSTR ) - 1 ) ) {
-                       val = cargv[ i ] + sizeof( TLSSTR );
-                       if( !strcasecmp( val, TLSCRITICALSTR ) ) {
+               } else if ( !strncasecmp( cargv[ i ], STARTTLSSTR,
+                       sizeof(STARTTLSSTR) - 1 ) )
+               {
+                       val = cargv[ i ] + sizeof( STARTTLSSTR );
+                       if( !strcasecmp( val, CRITICALSTR ) ) {
                                si->tls = TLS_CRITICAL;
                        } else {
                                si->tls = TLS_ON;
index e931a7d800cc5df1d8692d89d69b363146f3f193..5bf92657e9b51466f2701d29e71f7f4b46f1f7fc 100644 (file)
@@ -302,7 +302,7 @@ typedef struct slap_syntax {
        LDAPSyntax                      ssyn_syn;
 #define ssyn_oid               ssyn_syn.syn_oid
 #define ssyn_desc              ssyn_syn.syn_desc
-#define ssyn_extensions                ssyn_syn.syn_extensions
+#define ssyn_extensions        ssyn_syn.syn_extensions
        /*
         * Note: the former
        ber_len_t       ssyn_oidlen;
@@ -1341,7 +1341,7 @@ typedef struct syncinfo_s {
 } syncinfo_t;
 
 #define IDSTR           "id"
-#define MASTERSTR       "master"
+#define PROVIDERSTR     "provider"
 #define SUFFIXSTR       "suffix"
 #define UPDATEDNSTR            "updatedn"
 #define BINDDNSTR       "binddn"
@@ -1356,8 +1356,8 @@ typedef struct syncinfo_s {
 #define SASLMECHSTR     "saslmech"
 #define REALMSTR        "realm"
 #define SECPROPSSTR     "secprops"
-#define TLSSTR          "tls"
-#define TLSCRITICALSTR  "critical"
+#define STARTTLSSTR     "starttls"
+#define CRITICALSTR     "critical"
 
 #define FILTERSTR       "filter"
 #define SEARCHBASESTR   "searchbase"