Re: Using an internal password

2007-11-06 Thread Dr. Stephen Henson
On Tue, Nov 06, 2007, John T. Cox wrote: > So, I went back and put in the ERR_print_errors and got this: > > 19239:error:0906B072:lib(9):func(107):reason(114):pem_lib.c:481: > > The online manual page describes what each field is. But, I cannot find any > documentation that explains what the err

Re: Using an internal password

2007-11-06 Thread John T. Cox
That was the problem. Thank you very much! On 11/6/07, Tim Hudson <[EMAIL PROTECTED]> wrote: > > John T. Cox wrote: > > So, I went back and put in the ERR_print_errors and got this: > > > > 19239:error:0906B072:lib(9):func(107):reason(114):pem_lib.c:481: > > > > The online manual page describes w

Re: Using an internal password

2007-11-06 Thread Tim Hudson
John T. Cox wrote: So, I went back and put in the ERR_print_errors and got this: 19239:error:0906B072:lib(9):func(107):reason(114):pem_lib.c:481: The online manual page describes what each field is. But, I cannot find any documentation that explains what the error code (19239) or reason strin

Re: Using an internal password

2007-11-06 Thread John T. Cox
So, I went back and put in the ERR_print_errors and got this: 19239:error:0906B072:lib(9):func(107):reason(114):pem_lib.c:481: The online manual page describes what each field is. But, I cannot find any documentation that explains what the error code (19239) or reason string (reason(114)) means.

Re: Using an internal password

2007-11-06 Thread John T. Cox
Thanks for pointing me in the right direction. I am only using RSA for this implementation. So, using those routines, keeps things simpler. I believe what I have now should. But, my read is returning a NULL. char keyfile[] = "/path/file" char *pass = get_pass() pkey = BIO_new_file(keyfile, "rb")

Re: Using an internal password

2007-11-06 Thread Dr. Stephen Henson
On Tue, Nov 06, 2007, John T. Cox wrote: > 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 *?

Re: Using an internal password

2007-11-06 Thread John T. Cox
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

Using an internal password

2007-11-06 Thread John T. Cox
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 t