projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RAND_load_file(..., -1) now means "read the complete file";
[openssl.git]
/
apps
/
apps.c
diff --git
a/apps/apps.c
b/apps/apps.c
index 629b297917d80aa73f202fc92dd3dffd2d057f53..68331084abc50385afd23c389c0b2c2f853b5e1f 100644
(file)
--- a/
apps/apps.c
+++ b/
apps/apps.c
@@
-325,13
+325,16
@@
int app_init(long mesgwin)
}
#endif
}
#endif
-int MS_CALLBACK key_cb(char *buf, int len, int verify, void *key)
- {
- int i;
+int dump_cert_text (BIO *out, X509 *x)
+{
+ char buf[256];
+ X509_NAME_oneline(X509_get_subject_name(x),buf,256);
+ BIO_puts(out,"subject=");
+ BIO_puts(out,buf);
-
if (key == NULL) return(0
);
-
i=strlen(key
);
-
i=(i > len)?len:i
;
-
memcpy(buf,key,i
);
-
return(i)
;
-
}
+
X509_NAME_oneline(X509_get_issuer_name(x),buf,256
);
+
BIO_puts(out,"\nissuer= "
);
+
BIO_puts(out,buf)
;
+
BIO_puts(out,"\n"
);
+
return 0
;
+}