Mercurial > pidgin
comparison libpurple/certificate.c @ 18990:3f2944bdb404
- Finish tls_peers get_cert
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Fri, 06 Jul 2007 00:31:24 +0000 |
parents | 43d1ee6a3ed5 |
children | 7a144f2229c6 |
comparison
equal
deleted
inserted
replaced
18989:43d1ee6a3ed5 | 18990:3f2944bdb404 |
---|---|
351 x509 = purple_certificate_find_scheme("x509"); | 351 x509 = purple_certificate_find_scheme("x509"); |
352 g_return_val_if_fail(x509, NULL); | 352 g_return_val_if_fail(x509, NULL); |
353 | 353 |
354 /* Okay, now find and load that key */ | 354 /* Okay, now find and load that key */ |
355 keypath = purple_certificate_pool_mkpath(&x509_tls_peers, id); | 355 keypath = purple_certificate_pool_mkpath(&x509_tls_peers, id); |
356 | 356 crt = purple_certificate_import(x509, keypath); |
357 /* TODO: finish this */ | 357 |
358 | 358 g_free(keypath); |
359 return NULL; | 359 |
360 return crt; | |
360 } | 361 } |
361 | 362 |
362 static gboolean | 363 static gboolean |
363 x509_tls_peers_put_cert(const gchar *id, PurpleCertificate *crt) | 364 x509_tls_peers_put_cert(const gchar *id, PurpleCertificate *crt) |
364 { | 365 { |