/*
 * =====================================================================================
 *
 *       Filename:  certRevocationList.h
 *
 *    Description:  Check revocation cert and prevent to install cert.
 *
 *        Version:  1.0
 *        Created:  09/12/2016 04:31:36 PM
 *       Compiler:  armcc
 *
 *         Author:  Dongwook Shim (), dw.shim@samsung.com
 *        Company:  Samsung Electronics
 *
 *        Copyright (c) 2016 by Samsung Electronics, All rights reserved. 
 *
 * =====================================================================================
 */

#ifndef __CERT_REVOCATION_LIST_H__
#define __CERT_REVOCATION_LIST_H__

#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include "x509/x509v3.h"

/**
 * Function : isAllowedUID()
 * Description : Check certificate is revoked or not with UID.
 * Parameters : @ uid - UID to check.
 *              @ uid_size - uid's length.
 * Return : true(1) if UID is valid. Or return false(0).
 */
bool isAllowedUID(char *uid, int uid_size);

#endif	// End of __CERT_REVOCATION_LIST_H__
