diff options
author | Richard Levitte <levitte@openssl.org> | 2000-10-27 11:05:35 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-10-27 11:05:35 +0000 |
commit | eb64730b9cb6fe9cb5bfa4b0b54bf8c9193ced2b (patch) | |
tree | 0149f424193ee8b5cc38e590ba4766d829e8e2f7 /apps/x509.c | |
parent | 34a1488220e7b6338d750ae5a00853c4ee89d267 (diff) | |
download | openssl-eb64730b9cb6fe9cb5bfa4b0b54bf8c9193ced2b.tar.gz |
The majority of the OCSP code from CertCo.
Diffstat (limited to 'apps/x509.c')
-rw-r--r-- | apps/x509.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/x509.c b/apps/x509.c index 8712339717..ea5b0b8526 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -106,6 +106,7 @@ static char *x509_usage[]={ " -fingerprint - print the certificate fingerprint\n", " -alias - output certificate alias\n", " -noout - no certificate output\n", +" -ocspid - print OCSP hash values for the subject name and public key\n", " -trustout - output a \"trusted\" certificate\n", " -clrtrust - clear all trusted purposes\n", " -clrreject - clear all rejected purposes\n", @@ -163,6 +164,7 @@ int MAIN(int argc, char **argv) char *CAkeyfile=NULL,*CAserial=NULL; char *alias=NULL; int text=0,serial=0,hash=0,subject=0,issuer=0,startdate=0,enddate=0; + int ocspid=0; int noout=0,sign_flag=0,CA_flag=0,CA_createserial=0,email=0; int trustout=0,clrtrust=0,clrreject=0,aliasout=0,clrext=0; int C=0; @@ -412,6 +414,8 @@ int MAIN(int argc, char **argv) clrext = 1; } #endif + else if (strcmp(*argv,"-ocspid") == 0) + ocspid= ++num; else if ((md_alg=EVP_get_digestbyname(*argv + 1))) { /* ok */ @@ -917,6 +921,10 @@ bad: } noout=1; } + else if (ocspid == i) + { + X509_ocspid_print(out, x); + } } } |