method
new
v1_9_2_180 -
Show latest stable
-
0 notes -
Class: CertificateId
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (0)
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (0)
- 2_2_9 (38)
- 2_4_6 (17)
- 2_5_5 (2)
- 2_6_3 (0)
- What's this?
new(p1, p2)
public
Hide source
static VALUE ossl_ocspcid_initialize(VALUE self, VALUE subject, VALUE issuer) { OCSP_CERTID *id, *newid; X509 *x509s, *x509i; x509s = GetX509CertPtr(subject); /* NO NEED TO DUP */ x509i = GetX509CertPtr(issuer); /* NO NEED TO DUP */ if(!(newid = OCSP_cert_to_id(NULL, x509s, x509i))) ossl_raise(eOCSPError, NULL); GetOCSPCertId(self, id); OCSP_CERTID_free(id); RDATA(self)->data = newid; return self; }