comparison libpurple/certificate.h @ 18934:04be1b885ef3

- Add more to the Certificate struct
author William Ehlhardt <williamehlhardt@gmail.com>
date Thu, 21 Jun 2007 23:39:26 +0000
parents 6ed0cfe57453
children 895831f93380
comparison
equal deleted inserted replaced
18933:6ed0cfe57453 18934:04be1b885ef3
100 * @param crt Certificate instance to be destroyed. It WILL NOT be 100 * @param crt Certificate instance to be destroyed. It WILL NOT be
101 * destroyed if it is not of the correct 101 * destroyed if it is not of the correct
102 * CertificateScheme. Can be NULL 102 * CertificateScheme. Can be NULL
103 */ 103 */
104 void (* destroy_certificate)(PurpleCertificate * crt); 104 void (* destroy_certificate)(PurpleCertificate * crt);
105
106 /**
107 * Retrieves the certificate public key fingerprint using SHA1
108 *
109 * @param crt Certificate instance
110 * @return Binary representation of SHA1 hash
111 */
112 GByteArray * (* get_fingerprint_sha1)(PurpleCertificate *crt);
113
114 /**
115 * Reads "who the certificate is assigned to"
116 *
117 * For SSL X.509 certificates, this is something like
118 * "gmail.com" or "jabber.org"
119 *
120 * @param crt Certificate instance
121 * @return Newly allocated string specifying "whose certificate this
122 * is"
123 */
124 gchar * (* get_certificate_subject)(PurpleCertificate *crt);
125
126 /**
127 * Retrieves a unique certificate identifier
128 *
129 * @param crt Certificate instance
130 * @return Newly allocated string that can be used to uniquely
131 * identify the certificate.
132 */
133 gchar * (* get_unique_id)(PurpleCertificate *crt);
134
135 /**
136 * Retrieves a unique identifier for the certificate's issuer
137 *
138 * @param crt Certificate instance
139 * @return Newly allocated string that can be used to uniquely
140 * identify the issuer's certificate.
141 */
142 gchar * (* get_issuer_unique_id)(PurpleCertificate *crt);
143
105 144
106 /* TODO: Fill out this structure */ 145 /* TODO: Fill out this structure */
107 }; 146 };
108 147
109 /** A set of operations used to provide logic for verifying a Certificate's 148 /** A set of operations used to provide logic for verifying a Certificate's