Mercurial > pidgin
diff libpurple/certificate.h @ 17913:55a0b0a42000
- Exposed the _Certificate struct definition in certificate.h
- Added import_from_file and destroy_certificate functions for GnuTLS
X.509 scheme implementation.
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Sat, 02 Jun 2007 05:56:15 +0000 |
parents | 945b60f02767 |
children | e6271671eb24 |
line wrap: on
line diff
--- a/libpurple/certificate.h Sat Jun 02 04:35:44 2007 +0000 +++ b/libpurple/certificate.h Sat Jun 02 05:56:15 2007 +0000 @@ -35,8 +35,22 @@ extern "C" { #endif /* __cplusplus */ +typedef struct _Certificate Certificate; typedef struct _CertificateScheme CertificateScheme; +/** A certificate instance + * + * An opaque data structure representing a single certificate under some + * CertificateScheme + */ +struct _Certificate +{ + /** Scheme this certificate is under */ + CertificateScheme * scheme; + /** Opaque pointer to internal data */ + gpointer data; +}; + /** A certificate type * * A CertificateScheme must implement all of the fields in the structure,