comparison libpurple/certificate.h @ 18962:fcd05c39803e

- Add purple_certificate_get_subject_name and associated libpurple machinery
author William Ehlhardt <williamehlhardt@gmail.com>
date Wed, 27 Jun 2007 03:39:19 +0000
parents 9205841eed06
children 3d63bd78675d
comparison
equal deleted inserted replaced
18961:fa138dbacff5 18962:fcd05c39803e
149 * @return Newly allocated string that can be used to uniquely 149 * @return Newly allocated string that can be used to uniquely
150 * identify the issuer's certificate. 150 * identify the issuer's certificate.
151 */ 151 */
152 gchar * (* get_issuer_unique_id)(PurpleCertificate *crt); 152 gchar * (* get_issuer_unique_id)(PurpleCertificate *crt);
153 153
154 154 /**
155 * Gets the certificate subject's name
156 *
157 * For X.509, this is the "Common Name" field, as we're only using it
158 * for hostname verification at the moment
159 *
160 * @see purple_certificate_get_subject_name()
161 *
162 * @param crt Certificate instance
163 * @return Newly allocated string with the certificate subject.
164 */
165 gchar * (* get_subject_name)(PurpleCertificate *crt);
155 /* TODO: Fill out this structure */ 166 /* TODO: Fill out this structure */
156 }; 167 };
157 168
158 /** A set of operations used to provide logic for verifying a Certificate's 169 /** A set of operations used to provide logic for verifying a Certificate's
159 * authenticity. 170 * authenticity.
304 * @see purple_base16_encode_chunked() 315 * @see purple_base16_encode_chunked()
305 */ 316 */
306 GByteArray * 317 GByteArray *
307 purple_certificate_get_fingerprint_sha1(PurpleCertificate *crt); 318 purple_certificate_get_fingerprint_sha1(PurpleCertificate *crt);
308 319
320
321 /**
322 * Gets the certificate subject's name
323 *
324 * For X.509, this is the "Common Name" field, as we're only using it
325 * for hostname verification at the moment
326 *
327 * @param crt Certificate instance
328 * @return Newly allocated string with the certificate subject.
329 */
330 gchar *
331 purple_certificate_get_subject_name(PurpleCertificate *crt);
332
309 /*@}*/ 333 /*@}*/
310 334
311 /*****************************************************************************/ 335 /*****************************************************************************/
312 /** @name PurpleCertificate Subsystem API */ 336 /** @name PurpleCertificate Subsystem API */
313 /*****************************************************************************/ 337 /*****************************************************************************/