Ignore:
Timestamp:
Oct 1, 2008, 8:23:57 PM (14 years ago)
Author:
charles
Message:

#1309: Web/RPC interface ACL ignored

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r6801 r6823  
    130130#define TR_DEFAULT_RPC_PORT_STR             "9091"
    131131/** @see tr_sessionInitFull */
    132 #define TR_DEFAULT_RPC_ACL                  "+127.0.0.1"
     132#define TR_DEFAULT_RPC_WHITELIST            "127.0.0.1"
    133133/** @see tr_sessionInitFull */
    134134#define TR_DEFAULT_PROXY_ENABLED            0
     
    237237 *  The port on which to listen for incoming RPC requests
    238238 *
    239  * @param rpcACL
    240  *  The access control list for allowing/denying RPC requests
    241  *  from specific IP ranges.
    242  *  @see tr_sessionSetRPCACL()
     239 * @param rpcWhitelist
     240 *  The list of IP addresses allowed to make RPC connections.
     241 *  @see tr_sessionSetRPCWhitelist()
    243242 *
    244243 * @see TR_DEFAULT_PEER_SOCKET_TOS
     
    246245 * @see TR_DEFAULT_RPC_ENABLED
    247246 * @see TR_DEFAULT_RPC_PORT
    248  * @see TR_DEFAULT_RPC_ACL
     247 * @see TR_DEFAULT_RPC_WHITELIST
    249248 * @see tr_sessionClose()
    250249 */
     
    268267                                int                rpcIsEnabled,
    269268                                uint16_t           rpcPort,
    270                                 const char *       rpcAccessControlList,
     269                                const char *       rpcWhitelist,
    271270                                int                rpcPasswordIsEnabled,
    272271                                const char *       rpcUsername,
     
    347346
    348347/**
    349  * @brief Specify access control list (ACL).
    350  *
    351  * ACL is a comma-delimited list of dotted-quad IP addresses, each preceded
    352  * by a '+' or '-' sign to denote 'allow' or 'deny'.  Wildmat notation is
    353  * supported, meaning that '?' is interpreted as a single-character wildcard
    354  * and '*' is interprted as a multi-character wildcard.
    355  */
    356 void   tr_sessionSetRPCACL( tr_session * session,
    357                             const char * acl );
     348 * @brief Specify a whitelist for remote RPC access
     349 *
     350 * The whitelist is a comma-separated list of dotted-quad IP addresses
     351 * to be allowed.  Wildmat notation is supported, meaning that
     352 * '?' is interpreted as a single-character wildcard and
     353 * '*' is interprted as a multi-character wildcard.
     354 */
     355void   tr_sessionSetRPCWhitelist( tr_session * session,
     356                                  const char * whitelist );
    358357
    359358/** @brief get the Access Control List for allowing/denying RPC requests.
    360     @return a comma-separated string of ACL rules.  tr_free() when done.
     359    @return a comma-separated string of whitelist domains.  tr_free() when done.
    361360    @see tr_sessionInitFull
    362     @see tr_sessionSetRPCACL */
    363 char* tr_sessionGetRPCACL( const tr_session * );
     361    @see tr_sessionSetRPCWhitelist */
     362char* tr_sessionGetRPCWhitelist( const tr_session * );
    364363
    365364void  tr_sessionSetRPCPassword( tr_session * session,
Note: See TracChangeset for help on using the changeset viewer.