Nevermind, Upon further review I realized I need to just NOT use load_key().
I probably need to use something like PEM_reas_bio_RSAPrivateKey(). I assume I can replace pem_password_cb *cb with my password function which returns a char *? On 11/6/07, John T. Cox <[EMAIL PROTECTED]> wrote: > > I have need for an application to be able to decrypt messages public key > encrypted messages. > > Instead of using a source file for the private key password, it is > assembled inside the application. Normally you would use the load_key() > function to load the private key from a file. And if you supply the password > from a source file you would use app_passwd() to populate passin: > > app_passwd(bio_err, passargin, NULL, &passin, NULL) > load_key(bio_err, keyfile, keyform, 0, passin, e, "Private Key"); > > So, if I have a function which returns the password as a char pointer, is > that what is expected for passin or do I need to do something else to > populate passin properly? Essentially, do I drop the app_passwd() call and > just use my char pointer as passin or do I need another call to populate > passin? > > Thanks! > -- > > ============================================================================== > John T. Cox > e-mail [EMAIL PROTECTED] > www http://members.iglou.com/vampire > > ============================================================================== > -- ============================================================================== John T. Cox e-mail [EMAIL PROTECTED] www http://members.iglou.com/vampire ==============================================================================