Attached is patch with which the ssh-agent will use the optional PKCS#15 private key label (if existing) as the comment for the smartcard key (instead of the standard comment "smartcard key"). In case sc_get_key_label returns NULL the standard comment is used. Comments etc. are welcome, Nils
Created attachment 325 [details] suggested patch
Created attachment 326 [details] changes to openbsd. i've commited this to openbsd. ssh and ssh-agent assume that sc_get_key_label() always return a xfree()-able string.
Hi Markus, applying your patch to the portable cvs version and patching scard-opensc.c with my patch (plus removing the 'const' in the sc_get_key_label argument in scard-opensc.c) works fine for me with OpenSC.
Created attachment 329 [details] new patch for the portable release (based on Markus openbsd patch)
Created attachment 330 [details] fix: sc_get_key_label should *not* return NULL
Applied - thanks.
Mass change of VERIFIED bugs to CLOSED