libpurple 32414:590f15aee045: Changed PurpleSslConnection and th...
commits at adium.im
commits at adium.im
Tue Oct 16 19:47:38 UTC 2012
details: http://hg.adium.im/libpurple/rev/590f15aee045
revision: 32414:590f15aee045
branch: adium
author: Evan Kinney <emkinney at gmail.com>
date: Tue Oct 16 21:46:12 2012 +0200
Changed PurpleSslConnection and the SSL connection functions to include a reference to the underlying PurpleAccount
diffs (33 lines):
diff -r 15f40873cec2 -r 590f15aee045 libpurple/sslconn.c
--- a/libpurple/sslconn.c Fri Aug 10 18:01:55 2012 +0200
+++ b/libpurple/sslconn.c Tue Oct 16 21:46:12 2012 +0200
@@ -144,6 +144,8 @@
return NULL;
}
+ gsc->account = account;
+
return (PurpleSslConnection *)gsc;
}
@@ -225,6 +227,7 @@
/* TODO: Move this elsewhere */
gsc->verifier = purple_certificate_find_verifier("x509","tls_cached");
+ gsc->account = account;
ops = purple_ssl_get_ops();
ops->connectfunc(gsc);
diff -r 15f40873cec2 -r 590f15aee045 libpurple/sslconn.h
--- a/libpurple/sslconn.h Fri Aug 10 18:01:55 2012 +0200
+++ b/libpurple/sslconn.h Tue Oct 16 21:46:12 2012 +0200
@@ -77,6 +77,9 @@
/** Verifier to use in authenticating the peer */
PurpleCertificateVerifier *verifier;
+
+ /** Handle to the account for which this connection is being made. Can be NULL. */
+ PurpleAccount *account;
};
/**
More information about the commits
mailing list