Changeset 2116 for box/trunk/lib/server


Ignore:
Timestamp:
28/03/2008 22:59:28 (4 years ago)
Author:
chris
Message:

Allow configuration of the server port that the client will connect to
(bbackupd and bbackupquery).

Redesign ConfigurationVerify? to use classes instead of structs.

Use port 22011 instead of 2201 during tests, to reduce the chances of
conflicting with a running bbstored or other process.

Ignore autogen_* in svn:ignore everywhere instead of individual per-file
ignores.

Location:
box/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • box/trunk

    • Property svn:ignore
      •  

        old new  
        1111release 
        1212runtest.pl 
         13.hg 
  • box/trunk/lib/server

    • Property svn:ignore
      •  

        old new  
        1 autogen_ConnectionException.cpp 
        2 autogen_ConnectionException.h 
        3 autogen_ServerException.cpp 
        4 autogen_ServerException.h 
         1autogen_* 
        52Makefile 
        63makeprotocol.pl 
  • box/trunk/lib/server/Daemon.h

    r2099 r2116  
    9393}; 
    9494 
    95 #define DAEMON_VERIFY_SERVER_KEYS       {"PidFile", 0, ConfigTest_Exists, 0}, \ 
    96                                                                         {"User", 0, ConfigTest_LastEntry, 0} 
     95#define DAEMON_VERIFY_SERVER_KEYS \ 
     96        ConfigurationVerifyKey("PidFile", ConfigTest_Exists), \ 
     97        ConfigurationVerifyKey("User", ConfigTest_LastEntry) 
    9798 
    9899#endif // DAEMON__H 
  • box/trunk/lib/server/ServerStream.h

    r2114 r2116  
    366366 
    367367#define SERVERSTREAM_VERIFY_SERVER_KEYS(DEFAULT_ADDRESSES) \ 
    368                                                                                         {"ListenAddresses", DEFAULT_ADDRESSES, 0, 0}, \ 
    369                                                                                         DAEMON_VERIFY_SERVER_KEYS  
     368        ConfigurationVerifyKey("ListenAddresses", 0, DEFAULT_ADDRESSES), \ 
     369        DAEMON_VERIFY_SERVER_KEYS  
    370370 
    371371#include "MemLeakFindOff.h" 
  • box/trunk/lib/server/ServerTLS.h

    r217 r2116  
    7171 
    7272#define SERVERTLS_VERIFY_SERVER_KEYS(DEFAULT_ADDRESSES) \ 
    73                                                                                         {"CertificateFile", 0, ConfigTest_Exists, 0}, \ 
    74                                                                                         {"PrivateKeyFile", 0, ConfigTest_Exists, 0}, \ 
    75                                                                                         {"TrustedCAsFile", 0, ConfigTest_Exists, 0}, \ 
    76                                                                                         SERVERSTREAM_VERIFY_SERVER_KEYS(DEFAULT_ADDRESSES) 
    77  
     73        ConfigurationVerifyKey("CertificateFile", ConfigTest_Exists), \ 
     74        ConfigurationVerifyKey("PrivateKeyFile", ConfigTest_Exists), \ 
     75        ConfigurationVerifyKey("TrustedCAsFile", ConfigTest_Exists), \ 
     76        SERVERSTREAM_VERIFY_SERVER_KEYS(DEFAULT_ADDRESSES) 
    7877 
    7978#endif // SERVERTLS__H 
Note: See TracChangeset for help on using the changeset viewer.