projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fe5adc
)
Do a proof of concept. "openssl genrsa" will make the name of the
author
Richard Levitte
<levitte@openssl.org>
Tue, 19 Jun 2001 16:34:53 +0000
(16:34 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Tue, 19 Jun 2001 16:34:53 +0000
(16:34 +0000)
file part of the password prompt unless it's standard input...
More will be added...
apps/genrsa.c
patch
|
blob
|
history
diff --git
a/apps/genrsa.c
b/apps/genrsa.c
index 5d7fca404d2639c973eb3a16dd79c01279efbf46..dfcb523ebabae0375308753a2494b7eb25d65043 100644
(file)
--- a/
apps/genrsa.c
+++ b/
apps/genrsa.c
@@
-226,8
+226,14
@@
bad:
l+=rsa->e->d[i];
}
BIO_printf(bio_err,"e is %ld (0x%lX)\n",l,l);
- if (!PEM_write_bio_RSAPrivateKey(out,rsa,enc,NULL,0,NULL, passout))
+ {
+ PW_CB_DATA cb_data;
+ cb_data.password = passout;
+ cb_data.prompt_info = outfile;
+ if (!PEM_write_bio_RSAPrivateKey(out,rsa,enc,NULL,0,
+ (pem_password_cb *)password_callback,&cb_data))
goto err;
+ }
ret=0;
err: