Logo Search packages:      
Sourcecode: uaputl version File versions  Download package

int is_cipher_valid ( int  pairwisecipher,
int  groupcipher 
)

check cipher is valid or not

Parameters:
pairwisecipherpairwise cipher
groupciphergroup cipher
Returns:
UAP_SUCCESS or UAP_FAILURE

Definition at line 5491 of file uaputl.c.

References CIPHER_AES_CCMP, CIPHER_BITMAP, CIPHER_NONE, CIPHER_TKIP, UAP_FAILURE, and UAP_SUCCESS.

Referenced by apcmd_sys_cfg_cipher(), and apcmd_sys_config_profile().

{
    if ((pairwisecipher == CIPHER_NONE) && (groupcipher == CIPHER_NONE))
        return UAP_SUCCESS;
    if ((pairwisecipher == CIPHER_TKIP) && (groupcipher == CIPHER_TKIP))
        return UAP_SUCCESS;
    if ((pairwisecipher == CIPHER_AES_CCMP) && (groupcipher == CIPHER_AES_CCMP))
        return UAP_SUCCESS;
    if ((pairwisecipher == CIPHER_BITMAP) && (groupcipher == CIPHER_TKIP))
        return UAP_SUCCESS;
    return UAP_FAILURE;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index