source:
branches/locker-dev/server/common/patches/openafs-pts-encrypt.patch
@
2571
Last change on this file since 2571 was 907, checked in by andersk, 16 years ago | |
---|---|
File size: 1.6 KB |
-
src/ptserver/pts.c
diff --git a/src/ptserver/pts.c b/src/ptserver/pts.c index 7b90a92..1a329c1 100644
a b GetGlobals(struct cmd_syndesc *as, void *arock) 176 176 changed = 1; 177 177 sec = 1; 178 178 } 179 if (as->parms[22].items) { /* -encrypt */ 180 changed = 1; 181 sec = 3; 182 } 179 183 if (as->parms[18].items || as->parms[20].items) { /* -test, -localauth */ 180 184 changed = 1; 181 185 confdir = AFSDIR_SERVER_ETC_DIRPATH; … … add_std_args(register struct cmd_syndesc *ts) 1022 1026 "use local authentication"); 1023 1027 cmd_AddParm(ts, "-auth", CMD_FLAG, CMD_OPTIONAL, 1024 1028 "use user's authentication (default)"); 1029 cmd_AddParm(ts, "-encrypt", CMD_FLAG, CMD_OPTIONAL, 1030 "encrypt commands"); 1025 1031 } 1026 1032 1027 1033 /* -
src/ptserver/ptuser.c
diff --git a/src/ptserver/ptuser.c b/src/ptserver/ptuser.c index fcd9d69..a5f7d16 100644
a b pr_Initialize(IN afs_int32 secLevel, IN char *confDir, IN char *cell) 203 203 code = ktc_GetToken(&sname, &ttoken, sizeof(ttoken), NULL); 204 204 if (code) { 205 205 afs_com_err(whoami, code, "(getting token)"); 206 if (secLevel > 1) 207 return code; 206 208 scIndex = 0; 207 209 } else { 208 210 if (ttoken.kvno >= 0 && ttoken.kvno <= 256) … … pr_Initialize(IN afs_int32 secLevel, IN char *confDir, IN char *cell) 215 217 scIndex = 2; 216 218 } 217 219 sc[2] = 218 rxkad_NewClientSecurityObject(rxkad_clear, &ttoken.sessionKey, 220 rxkad_NewClientSecurityObject((secLevel > 1) ? rxkad_crypt : 221 rxkad_clear, &ttoken.sessionKey, 219 222 ttoken.kvno, ttoken.ticketLen, 220 223 ttoken.ticket); 221 224 }
Note: See TracBrowser
for help on using the repository browser.