ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/vendor-crypto/openssl/dist/apps/crl.c
(Generate patch)

Comparing vendor-crypto/openssl/dist/apps/crl.c (file contents):
Revision 7101 by laffer1, Fri Mar 20 00:01:13 2015 UTC vs.
Revision 7102 by laffer1, Fri Jul 17 14:04:28 2015 UTC

# Line 81 | Line 81 | static const char *crl_usage[] = {
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",
# Line 109 | Line 112 | int MAIN(int argc, char **argv)
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;
# Line 187 | Line 193 | int MAIN(int argc, char **argv)
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;
# Line 292 | Line 302 | int MAIN(int argc, char **argv)
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));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines