comparison libpurple/certificate.c @ 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 6831c126bcf3
children 7b03727b10b4
comparison
equal deleted inserted replaced
18961:fa138dbacff5 18962:fcd05c39803e
137 g_return_val_if_fail(scheme->get_fingerprint_sha1, NULL); 137 g_return_val_if_fail(scheme->get_fingerprint_sha1, NULL);
138 138
139 fpr = (scheme->get_fingerprint_sha1)(crt); 139 fpr = (scheme->get_fingerprint_sha1)(crt);
140 140
141 return fpr; 141 return fpr;
142 }
143
144 gchar *
145 purple_certificate_get_subject_name(PurpleCertificate *crt)
146 {
147 PurpleCertificateScheme *scheme;
148 gchar *subject_name;
149
150 g_return_val_if_fail(crt, NULL);
151 g_return_val_if_fail(crt->scheme, NULL);
152
153 scheme = crt->scheme;
154
155 g_return_val_if_fail(scheme->get_subject_name, NULL);
156
157 subject_name = (scheme->get_subject_name)(crt);
158
159 return subject_name;
142 } 160 }
143 161
144 /****************************************************************************/ 162 /****************************************************************************/
145 /* Builtin Verifiers, Pools, etc. */ 163 /* Builtin Verifiers, Pools, etc. */
146 /****************************************************************************/ 164 /****************************************************************************/