[19259] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: differentiating Heimdal and MIT libraries

daemon@ATHENA.MIT.EDU (Brandon Allbery)
Tue Sep 15 15:18:04 2015

From: Brandon Allbery <ballbery@sinenomine.net>
To: "krbdev@mit.edu" <krbdev@mit.edu>
Date: Tue, 15 Sep 2015 19:17:55 +0000
Message-ID: <1442344675.8881.0.camel@hilfy.kf8nh.com>
In-Reply-To: <CACK7m-_kyZX_Au=2t60L-wju7zTyTNYBbwXg=OrMtVjAGDbVPw@mail.gmail.com>
Content-Language: en-US
Content-ID: <BA212A0503658B40B65364B2DC401215@mex05.mlsrvr.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu

On Tue, 2015-09-15 at 12:05 -0700, Nate Rosenblum wrote:
> Hi all,
> 
> For several unpleasant reasons that I'll avoid going into, I need to
> determine whether a Linux application is linking against the Heimdal or MIT
> kerberos libraries at runtime. I'd hoped that I could use
> http://web.mit.edu/kerberos/krb5-devel/doc/appdev/h5l_mit_apidiff.html, and
> in particular the different signature of krb5_cccol_last_change_time, but
> it turns out that this isn't an exported symbol for libkrb5.so.
> 
> Does anybody have a good technique for doing this?

dlsym(RTLD_DEFAULT, "heimdal_version") ?

-- 
brandon s allbery kf8nh                           sine nomine associates
allbery.b@gmail.com                              ballbery@sinenomine.net
unix openafs kerberos infrastructure xmonad        http://sinenomine.net

_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post