X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Fapps.c;h=68331084abc50385afd23c389c0b2c2f853b5e1f;hp=629b297917d80aa73f202fc92dd3dffd2d057f53;hb=05ccd698b986131a217f85281977e767673b27d1;hpb=af29811edd8fd05003e4118b31084ae0f22d68b3 diff --git a/apps/apps.c b/apps/apps.c index 629b297917..68331084ab 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -325,13 +325,16 @@ int app_init(long mesgwin) } #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; +}