81 |
|
" -in arg - input file - default stdin\n", |
82 |
|
" -out arg - output file - default stdout\n", |
83 |
|
" -hash - print hash value\n", |
84 |
+ |
#ifndef OPENSSL_NO_MD5 |
85 |
+ |
" -hash_old - print old-style (MD5) hash value\n", |
86 |
+ |
#endif |
87 |
|
" -fingerprint - print the crl fingerprint\n", |
88 |
|
" -issuer - print issuer DN\n", |
89 |
|
" -lastupdate - lastUpdate field\n", |
112 |
|
char *infile = NULL, *outfile = NULL; |
113 |
|
int hash = 0, issuer = 0, lastupdate = 0, nextupdate = 0, noout = |
114 |
|
0, text = 0; |
115 |
+ |
#ifndef OPENSSL_NO_MD5 |
116 |
+ |
int hash_old = 0; |
117 |
+ |
#endif |
118 |
|
int fingerprint = 0, crlnumber = 0; |
119 |
|
const char **pp; |
120 |
|
X509_STORE *store = NULL; |
193 |
|
text = 1; |
194 |
|
else if (strcmp(*argv, "-hash") == 0) |
195 |
|
hash = ++num; |
196 |
+ |
#ifndef OPENSSL_NO_MD5 |
197 |
+ |
else if (strcmp(*argv, "-hash_old") == 0) |
198 |
+ |
hash_old = ++num; |
199 |
+ |
#endif |
200 |
|
else if (strcmp(*argv, "-nameopt") == 0) { |
201 |
|
if (--argc < 1) |
202 |
|
goto bad; |
302 |
|
BIO_printf(bio_out, "%08lx\n", |
303 |
|
X509_NAME_hash(X509_CRL_get_issuer(x))); |
304 |
|
} |
305 |
+ |
#ifndef OPENSSL_NO_MD5 |
306 |
+ |
if (hash_old == i) { |
307 |
+ |
BIO_printf(bio_out, "%08lx\n", |
308 |
+ |
X509_NAME_hash_old(X509_CRL_get_issuer(x))); |
309 |
+ |
} |
310 |
+ |
#endif |
311 |
|
if (lastupdate == i) { |
312 |
|
BIO_printf(bio_out, "lastUpdate="); |
313 |
|
ASN1_TIME_print(bio_out, X509_CRL_get_lastUpdate(x)); |