2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
20 * @brief This is part of C api for ValidationCore.
22 #ifndef _CERTSVC_CCRL_H_
23 #define _CERTSVC_CCRL_H_
27 #include <cert-svc/ccert.h>
33 #define CERTSVC_CRL_GOOD (1<<0)
34 #define CERTSVC_CRL_REVOKED (1<<1)
35 #define CERTSVC_CRL_VERIFICATION_ERROR (1<<3)
36 #define CERTSVC_CRL_NO_SUPPORT (1<<4)
38 typedef void (*CertSvcCrlCacheWrite)(
39 const char *distributionPoint,
42 time_t nextUpdateTime,
45 typedef int (*CertSvcCrlCacheRead)(
46 const char *distributionPoint,
49 time_t *nextUpdateTime,
52 typedef void (*CertSvcCrlFree)(
56 void certsvc_crl_cache_functions(
57 CertSvcInstance instance,
58 CertSvcCrlCacheWrite writePtr,
59 CertSvcCrlCacheRead readPtr,
60 CertSvcCrlFree freePtr);
62 int certsvc_crl_check(
63 CertSvcCertificate certificate,
64 CertSvcCertificate *trustedStore,