Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed May 9, 2024
1 parent 7453dfe commit b8ea32d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/openssl/ossl_x509cert.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ ossl_x509_eq(VALUE self, VALUE other)
/*
* call-seq:
* cert.tbs_bytes => string
*
*
* Returns the DER-encoded bytes of the certificate's to be signed certificate.
* This is mainly useful for validating embedded certificate transparency signatures.
*/
Expand All @@ -720,7 +720,7 @@ ossl_x509_tbs_bytes(VALUE self)
{
X509 *x509;
int len;
unsigned char *p0, *p1;
unsigned char *p0;
VALUE str;

GetX509(self, x509);
Expand All @@ -729,7 +729,7 @@ ossl_x509_tbs_bytes(VALUE self)
ossl_raise(eX509CertError, "i2d_re_X509_tbs");
}
str = rb_str_new(NULL, len);
p0 = p1 = (unsigned char *)RSTRING_PTR(str);
p0 = (unsigned char *)RSTRING_PTR(str);
if (i2d_re_X509_tbs(x509, &p0) <= 0) {
ossl_raise(eX509CertError, "i2d_re_X509_tbs");
}
Expand Down

0 comments on commit b8ea32d

Please sign in to comment.