Mixes for Privacy and Anonymity in the Internet
Macros | Functions
CAAccountingInstance.cpp File Reference

Macros

#define JAP_DIGEST_LENGTH   28
 

Functions

bool testAndSetLoginOwner (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef)
 if the current login entry isn't locked by a login thread the calling login-thread obtains ownership More...
 
bool resetLoginOngoing (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef)
 indicates that the ongoing login process for this entry is finished but doesn't reset ownership. More...
 
bool testLoginEntryOwner (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef)
 tests whether the corresponding ownerEntry owns this loginEntry. More...
 
bool isLoginOngoing (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef)
 test whether this entry is currently resrved by an ongoing login process. More...
 
bool testLoginEntryOwner_internal (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef)
 

Macro Definition Documentation

◆ JAP_DIGEST_LENGTH

#define JAP_DIGEST_LENGTH   28

Function Documentation

◆ isLoginOngoing()

bool isLoginOngoing ( struct AccountLoginHashEntry loginEntry,
fmHashTableEntry ownerRef 
)

test whether this entry is currently resrved by an ongoing login process.

References CAMutex::lock(), AccountLoginHashEntry::loginOngoing, AccountLoginHashEntry::ownerLock, and CAMutex::unlock().

Referenced by CAAccountingInstance::cleanupTableEntry().

◆ resetLoginOngoing()

bool resetLoginOngoing ( struct AccountLoginHashEntry loginEntry,
fmHashTableEntry ownerRef 
)

indicates that the ongoing login process for this entry is finished but doesn't reset ownership.

References CAMutex::lock(), AccountLoginHashEntry::loginOngoing, AccountLoginHashEntry::ownerLock, testLoginEntryOwner_internal(), and CAMutex::unlock().

Referenced by CAAccountingInstance::unlockLogin().

◆ testAndSetLoginOwner()

bool testAndSetLoginOwner ( struct AccountLoginHashEntry loginEntry,
fmHashTableEntry ownerRef 
)

if the current login entry isn't locked by a login thread the calling login-thread obtains ownership

References CAMutex::lock(), AccountLoginHashEntry::loginOngoing, AccountLoginHashEntry::ownerLock, AccountLoginHashEntry::ownerRef, and CAMutex::unlock().

Referenced by CAAccountingInstance::handleChallengeResponse_internal().

◆ testLoginEntryOwner()

bool testLoginEntryOwner ( struct AccountLoginHashEntry loginEntry,
fmHashTableEntry ownerRef 
)

tests whether the corresponding ownerEntry owns this loginEntry.

References CAMutex::lock(), AccountLoginHashEntry::ownerLock, testLoginEntryOwner_internal(), and CAMutex::unlock().

Referenced by CAAccountingInstance::cleanupTableEntry().

◆ testLoginEntryOwner_internal()

bool testLoginEntryOwner_internal ( struct AccountLoginHashEntry loginEntry,
fmHashTableEntry ownerRef 
)