Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

Location:
vendor/current/source4/heimdal/kuser
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/heimdal/kuser/kinit.c

    r740 r988  
    9797     */
    9898    { "afslog",         0  , arg_flag, &do_afslog,
    99       NP_("obtain afs tokens", "")  },
     99      NP_("obtain afs tokens", ""), NULL },
    100100
    101101    { "cache",          'c', arg_string, &cred_cache,
     
    103103
    104104    { "forwardable",    0, arg_negative_flag, &forwardable_flag,
    105       NP_("get tickets not forwardable", "")},
     105      NP_("get tickets not forwardable", ""), NULL },
    106106
    107107    { NULL,             'f', arg_flag, &forwardable_flag,
    108       NP_("get forwardable tickets", "")},
     108      NP_("get forwardable tickets", ""), NULL },
    109109
    110110    { "keytab",         't', arg_string, &keytab_str,
     
    112112
    113113    { "lifetime",       'l', arg_string, &lifetime,
    114       NP_("lifetime of tickets", ""), "time"},
     114      NP_("lifetime of tickets", ""), "time" },
    115115
    116116    { "proxiable",      'p', arg_flag, &proxiable_flag,
    117       NP_("get proxiable tickets", "") },
     117      NP_("get proxiable tickets", ""), NULL },
    118118
    119119    { "renew",          'R', arg_flag, &renew_flag,
    120       NP_("renew TGT", "") },
     120      NP_("renew TGT", ""), NULL },
    121121
    122122    { "renewable",      0,   arg_flag, &renewable_flag,
    123       NP_("get renewable tickets", "") },
     123      NP_("get renewable tickets", ""), NULL },
    124124
    125125    { "renewable-life", 'r', arg_string, &renew_life,
     
    133133
    134134    { "use-keytab",     'k', arg_flag, &use_keytab,
    135       NP_("get key from keytab", "") },
     135      NP_("get key from keytab", ""), NULL },
    136136
    137137    { "validate",       'v', arg_flag, &validate_flag,
    138       NP_("validate TGT", "") },
     138      NP_("validate TGT", ""), NULL },
    139139
    140140    { "enctypes",       'e', arg_strings, &etype_str,
     
    142142
    143143    { "fcache-version", 0,   arg_integer, &fcache_version,
    144       NP_("file cache version to create", "") },
     144      NP_("file cache version to create", ""), NULL },
    145145
    146146    { "addresses",      'A',   arg_negative_flag,       &addrs_flag,
    147       NP_("request a ticket with no addresses", "") },
     147      NP_("request a ticket with no addresses", ""), NULL },
    148148
    149149    { "extra-addresses",'a', arg_strings,       &extra_addresses,
     
    151151
    152152    { "anonymous",      0,   arg_flag,  &anonymous_flag,
    153       NP_("request an anonymous ticket", "") },
     153      NP_("request an anonymous ticket", ""), NULL },
    154154
    155155    { "request-pac",    0,   arg_flag,  &pac_flag,
    156       NP_("request a Windows PAC", "") },
     156      NP_("request a Windows PAC", ""), NULL },
    157157
    158158    { "password-file",  0,   arg_string, &password_file,
    159       NP_("read the password from a file", "") },
     159      NP_("read the password from a file", ""), NULL },
    160160
    161161    { "canonicalize",0,   arg_flag, &canonicalize_flag,
    162       NP_("canonicalize client principal", "") },
     162      NP_("canonicalize client principal", ""), NULL },
    163163
    164164    { "enterprise",0,   arg_flag, &enterprise_flag,
    165       NP_("parse principal as a KRB5-NT-ENTERPRISE name", "") },
     165      NP_("parse principal as a KRB5-NT-ENTERPRISE name", ""), NULL },
    166166#ifdef PKINIT
    167167    { "pk-enterprise",  0,      arg_flag,       &pk_enterprise_flag,
    168       NP_("use enterprise name from certificate", "") },
     168      NP_("use enterprise name from certificate", ""), NULL },
    169169
    170170    { "pk-user",        'C',    arg_string,     &pk_user_id,
     
    175175
    176176    { "pk-use-enckey",  0,  arg_flag, &pk_use_enckey,
    177       NP_("Use RSA encrypted reply (instead of DH)", "") },
     177      NP_("Use RSA encrypted reply (instead of DH)", ""), NULL },
    178178#endif
    179179#ifndef NO_NTLM
     
    183183
    184184    { "change-default",  0,  arg_negative_flag, &switch_cache_flags,
    185       NP_("switch the default cache to the new credentials cache", "") },
     185      NP_("switch the default cache to the new credentials cache", ""), NULL },
    186186
    187187    { "ok-as-delegate", 0,  arg_flag, &ok_as_delegate_flag,
    188       NP_("honor ok-as-delegate on tickets", "") },
     188      NP_("honor ok-as-delegate on tickets", ""), NULL },
    189189
    190190    { "use-referrals",  0,  arg_flag, &use_referrals_flag,
    191       NP_("only use referrals, no dns canalisation", "") },
     191      NP_("only use referrals, no dns canalisation", ""), NULL },
    192192
    193193    { "windows",        0,  arg_flag, &windows_flag,
    194       NP_("get windows behavior", "") },
    195 
    196     { "version",        0,   arg_flag, &version_flag },
    197     { "help",           0,   arg_flag, &help_flag }
     194      NP_("get windows behavior", ""), NULL },
     195
     196    { "version",        0,   arg_flag, &version_flag, NULL, NULL },
     197    { "help",           0,   arg_flag, &help_flag, NULL, NULL }
    198198};
    199199
     
    358358    krb5_deltat start_time = 0;
    359359    krb5_deltat renew = 0;
    360     char *renewstr = NULL;
     360    const char *renewstr = NULL;
    361361    krb5_enctype *enctype = NULL;
    362362    krb5_ccache tempccache;
     
    435435    if (canonicalize_flag)
    436436        krb5_get_init_creds_opt_set_canonicalize(context, opt, TRUE);
    437     if ((pk_enterprise_flag || enterprise_flag || canonicalize_flag) && windows_flag)
     437    if (pk_enterprise_flag || enterprise_flag || canonicalize_flag || windows_flag)
    438438        krb5_get_init_creds_opt_set_win2k(context, opt, TRUE);
    439439    if (pk_user_id || ent_user_id || anonymous_flag) {
     
    467467        if (renew < 0)
    468468            errx (1, "unparsable time: %s", renewstr);
    469        
     469
    470470        krb5_get_init_creds_opt_set_renew_life (opt, renew);
    471471    }
     
    533533        if (passwd[0] == '\0') {
    534534            char *p, *prompt;
    535        
     535
    536536            krb5_unparse_name (context, principal, &p);
    537537            asprintf (&prompt, N_("%s's Password: ", ""), p);
    538538            free (p);
    539        
     539
    540540            if (UI_UTIL_read_pw_string(passwd, sizeof(passwd)-1, prompt, 0)){
    541541                memset(passwd, 0, sizeof(passwd));
     
    545545        }
    546546
    547        
     547
    548548        ret = krb5_get_init_creds_password (context,
    549549                                            &cred,
     
    593593            unparse_time_approx(cred.times.renew_till - cred.times.starttime,
    594594                                life, sizeof(life));
    595             krb5_warnx(context, 
     595            krb5_warnx(context,
    596596                       N_("NOTICE: ticket renewable lifetime is %s", ""),
    597597                       life);
     
    774774
    775775        ret = krb5_make_principal(context, &principal, argv[0],
    776                                   KRB5_WELLKNOWN_NAME, KRB5_ANON_NAME, 
     776                                  KRB5_WELLKNOWN_NAME, KRB5_ANON_NAME,
    777777                                  NULL);
    778778        if (ret)
     
    826826                    krb5_err (context, 1, ret, N_("resolving credentials cache", ""));
    827827
    828                 /* 
     828                /*
    829829                 * Check if the type support switching, and we do,
    830830                 * then do that instead over overwriting the current
     
    905905        else if(ret == EX_NOTFOUND)
    906906            krb5_warnx(context, N_("command not found: %s", ""), argv[1]);
    907        
     907
    908908        krb5_cc_destroy(context, ccache);
    909909#ifndef NO_AFS
Note: See TracChangeset for help on using the changeset viewer.