Changeset 4789:eb0ba8b673c1 in roaraudio


Ignore:
Timestamp:
03/11/11 10:53:13 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for --new-authfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r4788 r4789  
    200200        " --authfile-acclev ACCLEV\n" 
    201201        "                       - Sets the access level for authfile\n" 
     202        " --new-authfile        - Parameters for new authfile follow\n" 
    202203       ); 
    203204 
     
    328329        "     --list-proto      - List supported protocols\n" 
    329330        "     --list-profiles   - List supported profiles for --proto-profile\n" 
    330         "     --new-sock        - Parameters for new socket follows\n" 
     331        "     --new-sock        - Parameters for new socket follow\n" 
    331332#ifdef ROAR_HAVE_LIBSLP 
    332333        "     --slp             - Enable OpenSLP support\n" 
     
    19921993   _CKHAVEARGS(1); 
    19931994   af_acclev = clients_str2acclev(argv[++i]); 
     1995  } else if ( strcmp(k, "--new-authfile") == 0 ) { 
     1996   if ( af_mode != AF_MODE_NONE ) { 
     1997    if ( add_authfile(af_file, af_type, af_mode, af_acclev) == -1 ) { 
     1998     ROAR_ERR("main(*): adding authfile '%s' failed!", af_file); 
     1999    } 
     2000   } 
     2001   af_file   = NULL; 
     2002   af_type   = NULL; 
     2003   af_mode   = AF_MODE_NONE; 
     2004   af_acclev = ACCLEV_ALL; 
    19942005 
    19952006  } else if ( strcmp(k, "--list-cf") == 0 ) { 
Note: See TracChangeset for help on using the changeset viewer.