4u2change/msdb.c
short msdb_communityGetCertUri(
    const uint8_t *community,
    uint8_t       *cert_uri) {
    FILE          *fp      = NULL;
    short          ret_val = MSDB_FAILURE;

    if (NULL == community) {
        MSDB_ERROR("%s", "MSDB Community Get CertUri, no community specified!");
    } else if (NULL != (fp = openCommunityFile(community))) {
        if (!parseDataAttribute(fp, "CertUri:", cert_uri)) {
            ret_val = MSDB_SUCCESS;
        }
        else {
            MSDB_ERROR("MSDB Community Get CertUri, unable to get CertUri from community <%s>!",
                community);
        }
        fclose(fp);
    }
    else {
        MSDB_ERROR("%s", "MSDB Community Get CertUri, failed to retrieve CertUri!");
    }

    return ret_val;
}
/***************************************************************************/
/**
 * Get the stored CertUri for the specified community.
 *
 * @param[in]  community The name of the community from which to get the 
 *                       CertUri.
 * @param[out] cert_uri  The CertUri, on success.
 *
 * @return MSDB_SUCCESS or MSDB_FAILURE
 ******************************************************************************/
Get the stored CertUri for the specified community.
@param[in]  community The name of the community from which to get the
CertUri.


Get the stored CertUri for the specified community . @param [ in ] community The name of the community from which to get the CertUri .
short msdb_communityGetCertUri(
    const uint8_t *community,
    uint8_t       *cert_uri) {
    FILE          *fp      = NULL;
    short          ret_val = MSDB_FAILURE;
    if (NULL == community) {
        MSDB_ERROR("%s", "MSDB Community Get CertUri, no community specified!");
    } else if (NULL != (fp = openCommunityFile(community))) {
        if (!parseDataAttribute(fp, "CertUri:", cert_uri)) {
            ret_val = MSDB_SUCCESS;
        }
        else {
            MSDB_ERROR("MSDB Community Get CertUri, unable to get CertUri from community <%s>!",
                community);
        }
        fclose(fp);
    }
    else {
        MSDB_ERROR("%s", "MSDB Community Get CertUri, failed to retrieve CertUri!");
    }
    return ret_val;
}
short msdb_communityGetCertUri ( const uint8_t * community , uint8_t * cert_uri ) { FILE * fp = NULL ; short ret_val = MSDB_FAILURE ; if ( NULL == community ) { MSDB_ERROR ( " " , " " ) ; } else if ( NULL != ( fp = openCommunityFile ( community ) ) ) { if ( ! parseDataAttribute ( fp , " " , cert_uri ) ) { ret_val = MSDB_SUCCESS ; } else { MSDB_ERROR ( " " , community ) ; } fclose ( fp ) ; } else { MSDB_ERROR ( " " , " " ) ; } return ret_val ; }
Get the stored CertUri for the specified community.
Get the stored CertUri for the specified community .