On Wednesday 14 February 2007 12:30:00 you wrote: > Hi, > > how can I load a public key from a char array into an RSA* stucture? > > char pubkey[] = "Xajztuaewfbfsg765tewaufe78..."; > The key does not have any PEM headers. > That all depends on what format the string is... if it is base64 encoded (doesn't look like it is - the first few characters are wrong), then you should just decode it into an unsigned char*, and use that (I think, it's been a while, and I'm feeling lazy) in d2i_RSA_key().
If it is some other encoding, then I have no idea - it will all depend on what the representation and the encoding of that string is. -- Patrick Patterson Chief PKI Architect, Carillon Information Security Inc. http://www.carillon.ca ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]