Lines Matching refs:sessionId
90 int sessionId = -1;
104 sessionId = candidateSessionId;
115 return sessionId;
126 int sessionId = -1;
136 sessionId = candidateSessionId;
145 return sessionId;
151 * @param[in] sessionID A session ID.
153 static void FwdLockFile_ReleaseSession(int sessionId) {
155 assert(0 <= sessionId && sessionId < MAX_NUM_SESSIONS && sessionPtrs[sessionId] != NULL);
156 free(sessionPtrs[sessionId]->pContentType);
157 free(sessionPtrs[sessionId]->pEncryptedSessionKey);
158 memset(sessionPtrs[sessionId], 0, sizeof *sessionPtrs[sessionId]); // Zero out key data.
159 free(sessionPtrs[sessionId]);
160 sessionPtrs[sessionId] = NULL;
259 int sessionId = FwdLockFile_AcquireSession(fileDesc);
260 if (sessionId >= 0) {
261 FwdLockFile_Session_t *pSession = sessionPtrs[sessionId];
292 FwdLockFile_ReleaseSession(sessionId);
293 sessionId = -1;
296 return (sessionId >= 0) ? 0 : -1;
301 int sessionId = FwdLockFile_FindSession(fileDesc);
302 if (sessionId < 0) {
305 FwdLockFile_Session_t *pSession = sessionPtrs[sessionId];
318 int sessionId = FwdLockFile_FindSession(fileDesc);
319 if (sessionId < 0) {
322 FwdLockFile_Session_t *pSession = sessionPtrs[sessionId];
356 int sessionId = FwdLockFile_FindSession(fileDesc);
357 if (sessionId < 0) {
360 HMAC_CTX_cleanup(&sessionPtrs[sessionId]->signingContext);
361 FwdLockFile_ReleaseSession(sessionId);
371 int sessionId = FwdLockFile_FindSession(fileDesc);
372 if (sessionId < 0) {
382 FwdLockFile_Session_t *pSession = sessionPtrs[sessionId];
412 int sessionId = FwdLockFile_FindSession(fileDesc);
413 if (sessionId < 0) {
416 FwdLockFile_Session_t *pSession = sessionPtrs[sessionId];
438 int sessionId = FwdLockFile_FindSession(fileDesc);
439 if (sessionId < 0) {
442 return sessionPtrs[sessionId]->pContentType;