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 #if !defined (__GCR_H_INSIDE__) && !defined (GCR_COMPILATION)
23 #error "Only <gcr/gcr.h> can be included directly."
26 #ifndef __GCR_TRUST_H__
27 #define __GCR_TRUST_H__
29 #include "gcr-types.h"
33 #define GCR_PURPOSE_SERVER_AUTH "1.3.6.1.5.5.7.3.1"
34 #define GCR_PURPOSE_CLIENT_AUTH "1.3.6.1.5.5.7.3.2"
35 #define GCR_PURPOSE_CODE_SIGNING "1.3.6.1.5.5.7.3.3"
36 #define GCR_PURPOSE_EMAIL "1.3.6.1.5.5.7.3.4"
38 gboolean gcr_trust_is_certificate_exception (GcrCertificate *certificate,
41 GCancellable *cancellable,
44 void gcr_trust_is_certificate_exception_async (GcrCertificate *certificate,
47 GCancellable *cancellable,
48 GAsyncReadyCallback callback,
51 gboolean gcr_trust_is_certificate_exception_finish (GAsyncResult *result,
54 gboolean gcr_trust_add_certificate_exception (GcrCertificate *certificate,
57 GCancellable *cancellable,
60 void gcr_trust_add_certificate_exception_async (GcrCertificate *certificate,
63 GCancellable *cancellable,
64 GAsyncReadyCallback callback,
67 gboolean gcr_trust_add_certificate_exception_finish (GAsyncResult *result,
70 gboolean gcr_trust_remove_certificate_exception (GcrCertificate *certificate,
73 GCancellable *cancellable,
76 void gcr_trust_remove_certificate_exception_async (GcrCertificate *certificate,
79 GCancellable *cancellable,
80 GAsyncReadyCallback callback,
83 gboolean gcr_trust_remove_certificate_exception_finish (GAsyncResult *result,
86 gboolean gcr_trust_is_certificate_anchor (GcrCertificate *certificate,
88 GCancellable *cancellable,
91 void gcr_trust_is_certificate_anchor_async (GcrCertificate *certificate,
93 GCancellable *cancellable,
94 GAsyncReadyCallback callback,
97 gboolean gcr_trust_is_certificate_anchor_finish (GAsyncResult *result,
102 #endif /* __GCR_TOKEN_MANAGER_H__ */