comparison libpurple/certificate.h @ 20096:2a9f3a499b0d

merge of '34d642b12b7215d55fd032cd513a7e225715f19a' and '7868c3b2b7d17c52916e4bb76305b7e3b68d3904'
author Richard Laager <rlaager@wiktel.com>
date Mon, 17 Sep 2007 03:47:45 +0000
parents 44b4e8bd759b
children 0077d3b6ecd2
comparison
equal deleted inserted replaced
19936:191fa8a8c0bc 20096:2a9f3a499b0d
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details. 22 * GNU General Public License for more details.
23 * 23 *
24 * You should have received a copy of the GNU General Public License 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 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 26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
27 */ 27 */
28 28
29 #ifndef _PURPLE_CERTIFICATE_H 29 #ifndef _PURPLE_CERTIFICATE_H
30 #define _PURPLE_CERTIFICATE_H 30 #define _PURPLE_CERTIFICATE_H
31 31
121 /** Delete a certificate from the pool */ 121 /** Delete a certificate from the pool */
122 gboolean (* delete_cert)(const gchar *id); 122 gboolean (* delete_cert)(const gchar *id);
123 123
124 /** Returns a list of IDs stored in the pool */ 124 /** Returns a list of IDs stored in the pool */
125 GList * (* get_idlist)(void); 125 GList * (* get_idlist)(void);
126
127 void (*_purple_reserved1)(void);
128 void (*_purple_reserved2)(void);
129 void (*_purple_reserved3)(void);
130 void (*_purple_reserved4)(void);
126 }; 131 };
127 132
128 /** A certificate type 133 /** A certificate type
129 * 134 *
130 * A CertificateScheme must implement all of the fields in the structure, 135 * A CertificateScheme must implement all of the fields in the structure,
239 gboolean (* check_subject_name)(PurpleCertificate *crt, const gchar *name); 244 gboolean (* check_subject_name)(PurpleCertificate *crt, const gchar *name);
240 245
241 /** Retrieve the certificate activation/expiration times */ 246 /** Retrieve the certificate activation/expiration times */
242 gboolean (* get_times)(PurpleCertificate *crt, time_t *activation, time_t *expiration); 247 gboolean (* get_times)(PurpleCertificate *crt, time_t *activation, time_t *expiration);
243 248
244 /* TODO: Fill out this structure */ 249 void (*_purple_reserved1)(void);
250 void (*_purple_reserved2)(void);
251 void (*_purple_reserved3)(void);
252 void (*_purple_reserved4)(void);
245 }; 253 };
246 254
247 /** A set of operations used to provide logic for verifying a Certificate's 255 /** A set of operations used to provide logic for verifying a Certificate's
248 * authenticity. 256 * authenticity.
249 * 257 *
284 * It should not call free(vrq) 292 * It should not call free(vrq)
285 * 293 *
286 * @param vrq Request to destroy 294 * @param vrq Request to destroy
287 */ 295 */
288 void (* destroy_request)(PurpleCertificateVerificationRequest *vrq); 296 void (* destroy_request)(PurpleCertificateVerificationRequest *vrq);
297
298 void (*_purple_reserved1)(void);
299 void (*_purple_reserved2)(void);
300 void (*_purple_reserved3)(void);
301 void (*_purple_reserved4)(void);
289 }; 302 };
290 303
291 /** Structure for a single certificate request 304 /** Structure for a single certificate request
292 * 305 *
293 * Useful for keeping track of the state of a verification that involves 306 * Useful for keeping track of the state of a verification that involves