4 * Copyright (C) 2010 Stefan Walter
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation; either version 2.1 of
9 * the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __GCR_TRUST_H__
23 #define __GCR_TRUST_H__
25 #include "gcr-types.h"
29 #define GCR_PURPOSE_SERVER_AUTH "1.3.6.1.5.5.7.3.1"
30 #define GCR_PURPOSE_CLIENT_AUTH "1.3.6.1.5.5.7.3.2"
31 #define GCR_PURPOSE_CODE_SIGNING "1.3.6.1.5.5.7.3.3"
32 #define GCR_PURPOSE_EMAIL "1.3.6.1.5.5.7.3.4"
34 gboolean gcr_trust_is_certificate_exception (GcrCertificate *cert,
40 void gcr_trust_is_certificate_exception_async (GcrCertificate *cert,
44 GAsyncReadyCallback callback,
47 gboolean gcr_trust_is_certificate_exception_finish (GAsyncResult *res,
50 gboolean gcr_trust_add_certificate_exception (GcrCertificate *cert,
56 void gcr_trust_add_certificate_exception_async (GcrCertificate *cert,
60 GAsyncReadyCallback callback,
63 gboolean gcr_trust_add_certificate_exception_finish (GAsyncResult *res,
66 gboolean gcr_trust_remove_certificate_exception (GcrCertificate *cert,
72 void gcr_trust_remove_certificate_exception_async (GcrCertificate *cert,
76 GAsyncReadyCallback callback,
79 gboolean gcr_trust_remove_certificate_exception_finish (GAsyncResult *res,
82 gboolean gcr_trust_is_certificate_anchor (GcrCertificate *cert,
87 void gcr_trust_is_certificate_anchor_async (GcrCertificate *cert,
90 GAsyncReadyCallback callback,
93 gboolean gcr_trust_is_certificate_anchor_finish (GAsyncResult *res,
98 #endif /* __GCR_TOKEN_MANAGER_H__ */