X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=crypto%2Focsp%2Focsp_prn.c;h=ff006cb892a6035fc8b4ac7499e93116923995ad;hb=0d4fb8439092ff8253af72ac6bc193e77ebbcf2f;hp=f0b44ce748e59e61ca786e4edb6f532be0f9fdfd;hpb=a332635ea0ec7dab14d550c2f151bb4ea8c64f78;p=openssl.git diff --git a/crypto/ocsp/ocsp_prn.c b/crypto/ocsp/ocsp_prn.c index f0b44ce748..ff006cb892 100644 --- a/crypto/ocsp/ocsp_prn.c +++ b/crypto/ocsp/ocsp_prn.c @@ -1,11 +1,10 @@ -/* ocsp_prn.c */ /* * Written by Tom Titchener for the OpenSSL * project. */ /* - * History: This file was originally part of ocsp.c and was transfered to + * History: This file was originally part of ocsp.c and was transferred to * Richard Levitte from CertCo by Kathy Weinhold in mid-spring 2000 to be * included in OpenSSL or released as a patch kit. */ @@ -77,11 +76,11 @@ static int ocsp_certid_print(BIO *bp, OCSP_CERTID *a, int indent) BIO_printf(bp, "%*sHash Algorithm: ", indent, ""); i2a_ASN1_OBJECT(bp, a->hashAlgorithm.algorithm); BIO_printf(bp, "\n%*sIssuer Name Hash: ", indent, ""); - i2a_ASN1_STRING(bp, a->issuerNameHash, V_ASN1_OCTET_STRING); + i2a_ASN1_STRING(bp, &a->issuerNameHash, V_ASN1_OCTET_STRING); BIO_printf(bp, "\n%*sIssuer Key Hash: ", indent, ""); - i2a_ASN1_STRING(bp, a->issuerKeyHash, V_ASN1_OCTET_STRING); + i2a_ASN1_STRING(bp, &a->issuerKeyHash, V_ASN1_OCTET_STRING); BIO_printf(bp, "\n%*sSerial Number: ", indent, ""); - i2a_ASN1_INTEGER(bp, a->serialNumber); + i2a_ASN1_INTEGER(bp, &a->serialNumber); BIO_printf(bp, "\n"); return 1; } @@ -213,7 +212,6 @@ int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags) return 1; } - i = ASN1_STRING_length(rb->response); if ((br = OCSP_response_get1_basic(o)) == NULL) goto err; rd = &br->tbsResponseData;