Hi!

I've been pouring over the online documentation somewhat, but I'm afraid
that I've been running in circles and I'm hoping that someone can give
me a clue or point me in the right direction.

My ultimate goal is to get the openssh client to authenticate to a
server using a private key (DSA format for now) stored on a smarcard,
specifically the GPK8000 if anyone is interested, but this shouldn't
change anything.

My problem is that to give the key to the openssh client, it has to be
in evp format, or I have to use the DSA *PEM_read_bio_DSA_PUBKEY(BIO
*bp, DSA **x, pem_password_cb *cb, void *u); function to read the key in
(I retrieve it from the card in unsigned char format) and I'm having
difficulty understanding what BIO *bp is, and how I can fabricate it.

Would DSA *PEM_read_bio_DSA_PUBKEY(NULL, (DSA *)unsigned char
*mykeyfromcard, NULL, NULL); work? How do I turn my unsigned char into a
DSA or evp_pkey format otherwise?

Please let me know if you can shed soem light onto any of this!
Thank you,
Gila.
--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--
Gila Sheftel                          [EMAIL PROTECTED]
Fearless Geek                                    (514)732-2459
Advanced Projects Group                       Gemplus Software

You *can* go home again.  Just type "cd ~".


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to