summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/t_crl.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-12-14 00:53:10 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-12-14 00:53:10 +0000
commitde487514aeb2a43fefe0d9c7cf697ff4f5e9be5f (patch)
tree6eec6edcb5768cebd9a5fbe144f49ffeca3348b0 /crypto/asn1/t_crl.c
parent06db4253e2eb1208b60b5107c6a02d385a0e2129 (diff)
New function X509_signature_print() to remove some duplicate
code from certificate, CRL and request printing routines.
Diffstat (limited to 'crypto/asn1/t_crl.c')
-rw-r--r--crypto/asn1/t_crl.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/crypto/asn1/t_crl.c b/crypto/asn1/t_crl.c
index d78e4a8f88..3a1443386d 100644
--- a/crypto/asn1/t_crl.c
+++ b/crypto/asn1/t_crl.c
@@ -86,7 +86,6 @@ int X509_CRL_print_fp(FILE *fp, X509_CRL *x)
int X509_CRL_print(BIO *out, X509_CRL *x)
{
char buf[256];
- unsigned char *s;
STACK_OF(X509_REVOKED) *rev;
X509_REVOKED *r;
long l;
@@ -131,19 +130,7 @@ int X509_CRL_print(BIO *out, X509_CRL *x)
for(j = 0; j < X509_REVOKED_get_ext_count(r); j++)
ext_print(out, X509_REVOKED_get_ext(r, j));
}
-
- i=OBJ_obj2nid(x->sig_alg->algorithm);
- BIO_printf(out," Signature Algorithm: %s",
- (i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i));
-
- s = x->signature->data;
- n = x->signature->length;
- for (i=0; i<n; i++, s++)
- {
- if ((i%18) == 0) BIO_write(out,"\n ",9);
- BIO_printf(out,"%02x%s",*s, ((i+1) == n)?"":":");
- }
- BIO_write(out,"\n",1);
+ X509_signature_print(out, x->sig_alg, x->signature);
return 1;