Mercurial > pidgin
comparison libpurple/certificate.h @ 17910:668a294f9a72
- Added certificate.[ch] and got them integrated into the build
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Fri, 01 Jun 2007 23:54:46 +0000 |
parents | |
children | 945b60f02767 |
comparison
equal
deleted
inserted
replaced
17909:f7bf776d628a | 17910:668a294f9a72 |
---|---|
1 /** | |
2 * @file certificate.h Public-Key Certificate API | |
3 * @ingroup core | |
4 */ | |
5 | |
6 /* | |
7 * | |
8 * purple | |
9 * | |
10 * Purple is the legal property of its developers, whose names are too numerous | |
11 * to list here. Please refer to the COPYRIGHT file distributed with this | |
12 * source distribution. | |
13 * | |
14 * This program is free software; you can redistribute it and/or modify | |
15 * it under the terms of the GNU General Public License as published by | |
16 * the Free Software Foundation; either version 2 of the License, or | |
17 * (at your option) any later version. | |
18 * | |
19 * This program is distributed in the hope that it will be useful, | |
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 * GNU General Public License for more details. | |
23 * | |
24 * You should have received a copy of the GNU General Public License | |
25 * along with this program; if not, write to the Free Software | |
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
27 */ | |
28 | |
29 #ifndef _PURPLE_CERTIFICATE_H | |
30 #define _PURPLE_CERTIFICATE_H | |
31 | |
32 #include <glib.h> | |
33 | |
34 #ifdef __cplusplus | |
35 extern "C" { | |
36 #endif /* __cplusplus */ | |
37 | |
38 typedef struct _CertificateScheme CertificateScheme; | |
39 | |
40 /** A certificate type | |
41 * | |
42 * A CertificateScheme must implement all of the fields in the structure, | |
43 * and register it using TODO:purple_register_certscheme() | |
44 * | |
45 * There may be only ONE | |
46 */ | |
47 struct _CertificateScheme | |
48 { | |
49 /** Name of the certificate type | |
50 * ex: "x509", "pgp", etc. | |
51 * This must be globally unique - you may not register more than one | |
52 * CertificateScheme of the same name at a time. | |
53 */ | |
54 gchar * name; | |
55 | |
56 /* TODO: Fill out this structure */ | |
57 }; | |
58 | |
59 | |
60 /*****************************************************************************/ | |
61 /** @name PurpleCertificate Subsystem API */ | |
62 /*****************************************************************************/ | |
63 /*@{*/ | |
64 | |
65 /* TODO: ADD STUFF HERE */ | |
66 | |
67 /*@}*/ | |
68 | |
69 | |
70 #ifdef __cplusplus | |
71 } | |
72 #endif /* __cplusplus */ | |
73 | |
74 #endif /* _PURPLE_CERTIFICATE_H */ |